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

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

Introduction

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

Prototype


public void setVolumeId(String volumeId) 

Source Link

Document

The ID of the volume that was used to create the snapshot.

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());
    to.setState(from.getStatus());/* ww w.j av  a 2  s  .c  om*/
    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;
}