Example usage for com.amazonaws.services.ec2.model Snapshot setOwnerAlias

List of usage examples for com.amazonaws.services.ec2.model Snapshot setOwnerAlias

Introduction

In this page you can find the example usage for com.amazonaws.services.ec2.model Snapshot setOwnerAlias.

Prototype


public void setOwnerAlias(String ownerAlias) 

Source Link

Document

Value from an Amazon-maintained list (amazon | self | all | aws-marketplace | microsoft) of snapshot owners.

Usage

From source file:jp.primecloud.auto.aws.typica.converter.SnapshotConverter.java

License:Open Source License

@Override
protected Snapshot convertObject(SnapshotInfo from) {
    Snapshot to = new Snapshot();

    to.setSnapshotId(from.getSnapshotId());
    to.setVolumeId(from.getVolumeId());/*from   w  w  w .  j  a  v a2  s. c om*/
    to.setState(from.getStatus());
    to.setStartTime(from.getStartTime().getTime());
    to.setProgress(from.getProgress());

    //         
    to.setOwnerId(null);
    to.setDescription(null);
    to.setVolumeSize(null);
    to.setOwnerAlias(null);
    to.setTags(null);

    return to;
}