@Override public CopySnapshotResult copy(CopySnapshotRequest request, ResultCapture<CopySnapshotResult> extractor) { ActionResult result = resource.performAction("Copy", request, extractor); if (result == null) return null; return (CopySnapshotResult) result.getData(); }
@Override public CopySnapshotResult copySnapshot(CopySnapshotRequest copySnapshotRequest) throws AmazonServiceException, AmazonClientException { throw new UnsupportedOperationException("Not supported in mock"); }
@Override public CopySnapshotResult copy(CopySnapshotRequest request) { return copy(request, null); }
/** * Performs the <code>Copy</code> action. * * <p> * The following request parameters will be populated from the data of this * <code>Snapshot</code> resource, and any conflicting parameter value set * in the request will be overridden: * <ul> * <li> * <b><code>SourceSnapshotId</code></b> * - mapped from the <code>Id</code> identifier. * </li> * </ul> * * <p> * * @return The response of the low-level client operation associated with * this resource action. * @see CopySnapshotRequest */ CopySnapshotResult copy(CopySnapshotRequest request);
/** * Performs the <code>Copy</code> action and use a ResultCapture to retrieve * the low-level client response. * * <p> * The following request parameters will be populated from the data of this * <code>Snapshot</code> resource, and any conflicting parameter value set * in the request will be overridden: * <ul> * <li> * <b><code>SourceSnapshotId</code></b> * - mapped from the <code>Id</code> identifier. * </li> * </ul> * * <p> * * @return The response of the low-level client operation associated with * this resource action. * @see CopySnapshotRequest */ CopySnapshotResult copy(CopySnapshotRequest request, ResultCapture<CopySnapshotResult> extractor);