/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.fsx.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RestoreVolumeFromSnapshotRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { private String clientRequestToken; /** *
* The ID of the volume that you are restoring. *
*/ private String volumeId; /** ** The ID of the source snapshot. Specifies the snapshot that you are restoring from. *
*/ private String snapshotId; /** ** The settings used when restoring the specified volume from snapshot. *
*
* DELETE_INTERMEDIATE_SNAPSHOTS
- Deletes snapshots between the current state and the specified
* snapshot. If there are intermediate snapshots and this option isn't used, RestoreVolumeFromSnapshot
* fails.
*
* DELETE_CLONED_VOLUMES
- Deletes any dependent clone volumes created from intermediate snapshots. If
* there are any dependent clone volumes and this option isn't used, RestoreVolumeFromSnapshot
fails.
*
* The ID of the volume that you are restoring. *
* * @param volumeId * The ID of the volume that you are restoring. */ public void setVolumeId(String volumeId) { this.volumeId = volumeId; } /** ** The ID of the volume that you are restoring. *
* * @return The ID of the volume that you are restoring. */ public String getVolumeId() { return this.volumeId; } /** ** The ID of the volume that you are restoring. *
* * @param volumeId * The ID of the volume that you are restoring. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreVolumeFromSnapshotRequest withVolumeId(String volumeId) { setVolumeId(volumeId); return this; } /** ** The ID of the source snapshot. Specifies the snapshot that you are restoring from. *
* * @param snapshotId * The ID of the source snapshot. Specifies the snapshot that you are restoring from. */ public void setSnapshotId(String snapshotId) { this.snapshotId = snapshotId; } /** ** The ID of the source snapshot. Specifies the snapshot that you are restoring from. *
* * @return The ID of the source snapshot. Specifies the snapshot that you are restoring from. */ public String getSnapshotId() { return this.snapshotId; } /** ** The ID of the source snapshot. Specifies the snapshot that you are restoring from. *
* * @param snapshotId * The ID of the source snapshot. Specifies the snapshot that you are restoring from. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreVolumeFromSnapshotRequest withSnapshotId(String snapshotId) { setSnapshotId(snapshotId); return this; } /** ** The settings used when restoring the specified volume from snapshot. *
*
* DELETE_INTERMEDIATE_SNAPSHOTS
- Deletes snapshots between the current state and the specified
* snapshot. If there are intermediate snapshots and this option isn't used, RestoreVolumeFromSnapshot
* fails.
*
* DELETE_CLONED_VOLUMES
- Deletes any dependent clone volumes created from intermediate snapshots. If
* there are any dependent clone volumes and this option isn't used, RestoreVolumeFromSnapshot
fails.
*
* DELETE_INTERMEDIATE_SNAPSHOTS
- Deletes snapshots between the current state and the
* specified snapshot. If there are intermediate snapshots and this option isn't used,
* RestoreVolumeFromSnapshot
fails.
*
* DELETE_CLONED_VOLUMES
- Deletes any dependent clone volumes created from intermediate
* snapshots. If there are any dependent clone volumes and this option isn't used,
* RestoreVolumeFromSnapshot
fails.
*
* The settings used when restoring the specified volume from snapshot. *
*
* DELETE_INTERMEDIATE_SNAPSHOTS
- Deletes snapshots between the current state and the specified
* snapshot. If there are intermediate snapshots and this option isn't used, RestoreVolumeFromSnapshot
* fails.
*
* DELETE_CLONED_VOLUMES
- Deletes any dependent clone volumes created from intermediate snapshots. If
* there are any dependent clone volumes and this option isn't used, RestoreVolumeFromSnapshot
fails.
*
* DELETE_INTERMEDIATE_SNAPSHOTS
- Deletes snapshots between the current state and the specified
* snapshot. If there are intermediate snapshots and this option isn't used,
* RestoreVolumeFromSnapshot
fails.
*
* DELETE_CLONED_VOLUMES
- Deletes any dependent clone volumes created from intermediate
* snapshots. If there are any dependent clone volumes and this option isn't used,
* RestoreVolumeFromSnapshot
fails.
*
* The settings used when restoring the specified volume from snapshot. *
*
* DELETE_INTERMEDIATE_SNAPSHOTS
- Deletes snapshots between the current state and the specified
* snapshot. If there are intermediate snapshots and this option isn't used, RestoreVolumeFromSnapshot
* fails.
*
* DELETE_CLONED_VOLUMES
- Deletes any dependent clone volumes created from intermediate snapshots. If
* there are any dependent clone volumes and this option isn't used, RestoreVolumeFromSnapshot
fails.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setOptions(java.util.Collection)} or {@link #withOptions(java.util.Collection)} if you want to override * the existing values. *
* * @param options * The settings used when restoring the specified volume from snapshot. *
* DELETE_INTERMEDIATE_SNAPSHOTS
- Deletes snapshots between the current state and the specified
* snapshot. If there are intermediate snapshots and this option isn't used,
* RestoreVolumeFromSnapshot
fails.
*
* DELETE_CLONED_VOLUMES
- Deletes any dependent clone volumes created from intermediate
* snapshots. If there are any dependent clone volumes and this option isn't used,
* RestoreVolumeFromSnapshot
fails.
*
* The settings used when restoring the specified volume from snapshot. *
*
* DELETE_INTERMEDIATE_SNAPSHOTS
- Deletes snapshots between the current state and the specified
* snapshot. If there are intermediate snapshots and this option isn't used, RestoreVolumeFromSnapshot
* fails.
*
* DELETE_CLONED_VOLUMES
- Deletes any dependent clone volumes created from intermediate snapshots. If
* there are any dependent clone volumes and this option isn't used, RestoreVolumeFromSnapshot
fails.
*
* DELETE_INTERMEDIATE_SNAPSHOTS
- Deletes snapshots between the current state and the specified
* snapshot. If there are intermediate snapshots and this option isn't used,
* RestoreVolumeFromSnapshot
fails.
*
* DELETE_CLONED_VOLUMES
- Deletes any dependent clone volumes created from intermediate
* snapshots. If there are any dependent clone volumes and this option isn't used,
* RestoreVolumeFromSnapshot
fails.
*
* The settings used when restoring the specified volume from snapshot. *
*
* DELETE_INTERMEDIATE_SNAPSHOTS
- Deletes snapshots between the current state and the specified
* snapshot. If there are intermediate snapshots and this option isn't used, RestoreVolumeFromSnapshot
* fails.
*
* DELETE_CLONED_VOLUMES
- Deletes any dependent clone volumes created from intermediate snapshots. If
* there are any dependent clone volumes and this option isn't used, RestoreVolumeFromSnapshot
fails.
*
* DELETE_INTERMEDIATE_SNAPSHOTS
- Deletes snapshots between the current state and the specified
* snapshot. If there are intermediate snapshots and this option isn't used,
* RestoreVolumeFromSnapshot
fails.
*
* DELETE_CLONED_VOLUMES
- Deletes any dependent clone volumes created from intermediate
* snapshots. If there are any dependent clone volumes and this option isn't used,
* RestoreVolumeFromSnapshot
fails.
*