Example usage for com.amazonaws.services.ec2.model DescribeSnapshotsRequest getSnapshotIds

List of usage examples for com.amazonaws.services.ec2.model DescribeSnapshotsRequest getSnapshotIds

Introduction

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

Prototype


public java.util.List<String> getSnapshotIds() 

Source Link

Document

The snapshot IDs.

Usage

From source file:jp.primecloud.auto.aws.typica.EucaEc2Client.java

License:Open Source License

@Override
public DescribeSnapshotsResult describeSnapshots(DescribeSnapshotsRequest describeSnapshotsRequest) {
    try {//from w  w  w . j ava  2 s .c  o  m
        List<SnapshotInfo> infos = jec2.describeSnapshots(describeSnapshotsRequest.getSnapshotIds());
        List<Snapshot> snapshots = new SnapshotConverter().convert(infos);
        return new DescribeSnapshotsResult().withSnapshots(snapshots);
    } catch (EC2Exception e) {
        throw new AmazonClientException(e);
    }
}