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

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

Introduction

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

Prototype


public void setOwnerId(String ownerId) 

Source Link

Document

The AWS account ID of the EBS snapshot owner.

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   www  . jav a  2s.c o m
    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;
}