Class DescribeSnapshotsOptions

  • All Implemented Interfaces:
    HttpRequestOptions

    public class DescribeSnapshotsOptions
    extends BaseEC2RequestOptions
    Contains options supported in the Form API for the DescribeSnapshots operation.

    Usage

    The recommended way to instantiate a DescribeSnapshotsOptions object is to statically import DescribeSnapshotsOptions.Builder.* and invoke a static creation method followed by an instance mutator (if needed):

    import static org.jclouds.ec2.options.DescribeSnapshotsOptions.Builder.*

    EC2Api connection = // get connection Set snapshots = connection.getElasticBlockStoreApi().get().describeSnapshots(restorableBy("123125").snapshotIds(1000, 1004));

    See Also:
    • Constructor Detail

      • DescribeSnapshotsOptions

        public DescribeSnapshotsOptions()
    • Method Detail

      • restorableBy

        public DescribeSnapshotsOptions restorableBy​(String... accountIds)
        Account ID of a user that can create volumes from the snapshot.
      • getRestorableBy

        public String getRestorableBy()
      • getSnapshotIds

        public Set<String> getSnapshotIds()
      • ownedBy

        public DescribeSnapshotsOptions ownedBy​(String... owners)
        Returns snapshots owned by the specified owner. Multiple owners can be specified.

        Valid Values: self | amazon | AWS Account ID