/* * 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. *

* */ private java.util.List options; /** * @param clientRequestToken */ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** * @return */ public String getClientRequestToken() { return this.clientRequestToken; } /** * @param clientRequestToken * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreVolumeFromSnapshotRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); return this; } /** *

* 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. *

* * * @return The settings used when restoring the specified volume from snapshot.

*