コード例 #1
0
  @Override
  public SnapshotCollection getSnapshots(DescribeSnapshotsRequest request) {
    ResourceCollectionImpl result = resource.getCollection("Snapshots", request);

    if (result == null) return null;
    return new SnapshotCollectionImpl(result);
  }
コード例 #2
0
  @Override
  public AttachVolumeResult attachToInstance(
      AttachVolumeRequest request, ResultCapture<AttachVolumeResult> extractor) {

    ActionResult result = resource.performAction("AttachToInstance", request, extractor);

    if (result == null) return null;
    return (AttachVolumeResult) result.getData();
  }
コード例 #3
0
  @Override
  public DescribeVolumeStatusResult describeStatus(
      DescribeVolumeStatusRequest request, ResultCapture<DescribeVolumeStatusResult> extractor) {

    ActionResult result = resource.performAction("DescribeStatus", request, extractor);

    if (result == null) return null;
    return (DescribeVolumeStatusResult) result.getData();
  }
コード例 #4
0
  @Override
  public Snapshot createSnapshot(
      CreateSnapshotRequest request, ResultCapture<CreateSnapshotResult> extractor) {

    ActionResult result = resource.performAction("CreateSnapshot", request, extractor);

    if (result == null) return null;
    return new SnapshotImpl(result.getResource());
  }
コード例 #5
0
  @Override
  public DetachVolumeResult detachFromInstance(
      DetachVolumeRequest request, ResultCapture<DetachVolumeResult> extractor) {

    ActionResult result = resource.performAction("DetachFromInstance", request, extractor);

    if (result == null) return null;
    return (DetachVolumeResult) result.getData();
  }
コード例 #6
0
  @Override
  public List<com.amazonaws.resources.ec2.Tag> createTags(
      CreateTagsRequest request, ResultCapture<Void> extractor) {

    ActionResult result = resource.performAction("CreateTags", request, extractor);

    if (result == null) return null;
    return CodecUtils.transform(result.getResources(), TagImpl.CODEC);
  }
コード例 #7
0
 @Override
 public String getId() {
   return (String) resource.getIdentifier("Id");
 }
コード例 #8
0
  @Override
  public boolean load(
      DescribeVolumesRequest request, ResultCapture<DescribeVolumesResult> extractor) {

    return resource.load(request, extractor);
  }
コード例 #9
0
 @Override
 public boolean isLoaded() {
   return resource.isLoaded();
 }
コード例 #10
0
  @Override
  public void enableIo(EnableVolumeIORequest request, ResultCapture<Void> extractor) {

    resource.performAction("EnableIo", request, extractor);
  }
コード例 #11
0
 @Override
 public Date getCreateTime() {
   return (Date) resource.getAttribute("CreateTime");
 }
コード例 #12
0
 @Override
 public String getVolumeType() {
   return (String) resource.getAttribute("VolumeType");
 }
コード例 #13
0
 @Override
 public List<Tag> getTags() {
   return (List<Tag>) resource.getAttribute("Tags");
 }
コード例 #14
0
 @Override
 public String getSnapshotId() {
   return (String) resource.getAttribute("SnapshotId");
 }
コード例 #15
0
 @Override
 public Integer getSize() {
   return (Integer) resource.getAttribute("Size");
 }
コード例 #16
0
 @Override
 public List<VolumeAttachment> getAttachments() {
   return (List<VolumeAttachment>) resource.getAttribute("Attachments");
 }
コード例 #17
0
 @Override
 public String getAvailabilityZone() {
   return (String) resource.getAttribute("AvailabilityZone");
 }
コード例 #18
0
 @Override
 public Boolean getEncrypted() {
   return (Boolean) resource.getAttribute("Encrypted");
 }
コード例 #19
0
 @Override
 public String getState() {
   return (String) resource.getAttribute("State");
 }
コード例 #20
0
  @Override
  public void modifyAttribute(ModifyVolumeAttributeRequest request, ResultCapture<Void> extractor) {

    resource.performAction("ModifyAttribute", request, extractor);
  }
コード例 #21
0
 @Override
 public String getKmsKeyId() {
   return (String) resource.getAttribute("KmsKeyId");
 }
コード例 #22
0
 @Override
 public Integer getIops() {
   return (Integer) resource.getAttribute("Iops");
 }