コード例 #1
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);
  }
コード例 #2
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());
  }
コード例 #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 AttachVolumeResult attachToInstance(
      AttachVolumeRequest request, ResultCapture<AttachVolumeResult> extractor) {

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

    if (result == null) return null;
    return (AttachVolumeResult) result.getData();
  }
コード例 #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 void enableIo(EnableVolumeIORequest request, ResultCapture<Void> extractor) {

    resource.performAction("EnableIo", request, extractor);
  }
コード例 #7
0
  @Override
  public void modifyAttribute(ModifyVolumeAttributeRequest request, ResultCapture<Void> extractor) {

    resource.performAction("ModifyAttribute", request, extractor);
  }