/*
* 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.ec2.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.Request;
import com.amazonaws.services.ec2.model.transform.CreateSnapshotRequestMarshaller;
/**
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest
* A description for the snapshot.
*
* The Amazon Resource Name (ARN) of the Outpost on which to create a local snapshot.
*
* To create a snapshot of a volume in a Region, omit this parameter. The snapshot is created in the same Region as
* the volume.
*
* To create a snapshot of a volume on an Outpost and store the snapshot in the Region, omit this parameter. The
* snapshot is created in the Region for the Outpost.
*
* To create a snapshot of a volume on an Outpost and store the snapshot on an Outpost, specify the ARN of the
* destination Outpost. The snapshot must be created on the same Outpost as the volume.
*
* For more information, see Create local
* snapshots from volumes on an Outpost in the Amazon Elastic Compute Cloud User Guide.
*
* The ID of the Amazon EBS volume.
*
* The tags to apply to the snapshot during creation.
*
* A description for the snapshot.
*
* A description for the snapshot.
*
* A description for the snapshot.
*
* The Amazon Resource Name (ARN) of the Outpost on which to create a local snapshot.
*
* To create a snapshot of a volume in a Region, omit this parameter. The snapshot is created in the same Region as
* the volume.
*
* To create a snapshot of a volume on an Outpost and store the snapshot in the Region, omit this parameter. The
* snapshot is created in the Region for the Outpost.
*
* To create a snapshot of a volume on an Outpost and store the snapshot on an Outpost, specify the ARN of the
* destination Outpost. The snapshot must be created on the same Outpost as the volume.
*
* For more information, see Create local
* snapshots from volumes on an Outpost in the Amazon Elastic Compute Cloud User Guide.
*
*
*
*
*
* To create a snapshot of a volume in a Region, omit this parameter. The snapshot is created in the same * Region as the volume. *
** To create a snapshot of a volume on an Outpost and store the snapshot in the Region, omit this parameter. * The snapshot is created in the Region for the Outpost. *
** To create a snapshot of a volume on an Outpost and store the snapshot on an Outpost, specify the ARN of * the destination Outpost. The snapshot must be created on the same Outpost as the volume. *
** For more information, see Create * local snapshots from volumes on an Outpost in the Amazon Elastic Compute Cloud User Guide. */ public void setOutpostArn(String outpostArn) { this.outpostArn = outpostArn; } /** *
* The Amazon Resource Name (ARN) of the Outpost on which to create a local snapshot. *
** To create a snapshot of a volume in a Region, omit this parameter. The snapshot is created in the same Region as * the volume. *
** To create a snapshot of a volume on an Outpost and store the snapshot in the Region, omit this parameter. The * snapshot is created in the Region for the Outpost. *
** To create a snapshot of a volume on an Outpost and store the snapshot on an Outpost, specify the ARN of the * destination Outpost. The snapshot must be created on the same Outpost as the volume. *
** For more information, see Create local * snapshots from volumes on an Outpost in the Amazon Elastic Compute Cloud User Guide. *
* * @return The Amazon Resource Name (ARN) of the Outpost on which to create a local snapshot. ** To create a snapshot of a volume in a Region, omit this parameter. The snapshot is created in the same * Region as the volume. *
** To create a snapshot of a volume on an Outpost and store the snapshot in the Region, omit this parameter. * The snapshot is created in the Region for the Outpost. *
** To create a snapshot of a volume on an Outpost and store the snapshot on an Outpost, specify the ARN of * the destination Outpost. The snapshot must be created on the same Outpost as the volume. *
** For more information, see Create * local snapshots from volumes on an Outpost in the Amazon Elastic Compute Cloud User Guide. */ public String getOutpostArn() { return this.outpostArn; } /** *
* The Amazon Resource Name (ARN) of the Outpost on which to create a local snapshot. *
** To create a snapshot of a volume in a Region, omit this parameter. The snapshot is created in the same Region as * the volume. *
** To create a snapshot of a volume on an Outpost and store the snapshot in the Region, omit this parameter. The * snapshot is created in the Region for the Outpost. *
** To create a snapshot of a volume on an Outpost and store the snapshot on an Outpost, specify the ARN of the * destination Outpost. The snapshot must be created on the same Outpost as the volume. *
** For more information, see Create local * snapshots from volumes on an Outpost in the Amazon Elastic Compute Cloud User Guide. *
* * @param outpostArn * The Amazon Resource Name (ARN) of the Outpost on which to create a local snapshot. ** To create a snapshot of a volume in a Region, omit this parameter. The snapshot is created in the same * Region as the volume. *
** To create a snapshot of a volume on an Outpost and store the snapshot in the Region, omit this parameter. * The snapshot is created in the Region for the Outpost. *
** To create a snapshot of a volume on an Outpost and store the snapshot on an Outpost, specify the ARN of * the destination Outpost. The snapshot must be created on the same Outpost as the volume. *
** For more information, see Create * local snapshots from volumes on an Outpost in the Amazon Elastic Compute Cloud User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSnapshotRequest withOutpostArn(String outpostArn) { setOutpostArn(outpostArn); return this; } /** *
* The ID of the Amazon EBS volume. *
* * @param volumeId * The ID of the Amazon EBS volume. */ public void setVolumeId(String volumeId) { this.volumeId = volumeId; } /** ** The ID of the Amazon EBS volume. *
* * @return The ID of the Amazon EBS volume. */ public String getVolumeId() { return this.volumeId; } /** ** The ID of the Amazon EBS volume. *
* * @param volumeId * The ID of the Amazon EBS volume. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSnapshotRequest withVolumeId(String volumeId) { setVolumeId(volumeId); return this; } /** ** The tags to apply to the snapshot during creation. *
* * @return The tags to apply to the snapshot during creation. */ public java.util.List* The tags to apply to the snapshot during creation. *
* * @param tagSpecifications * The tags to apply to the snapshot during creation. */ public void setTagSpecifications(java.util.Collection* The tags to apply to the snapshot during creation. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTagSpecifications(java.util.Collection)} or {@link #withTagSpecifications(java.util.Collection)} if * you want to override the existing values. *
* * @param tagSpecifications * The tags to apply to the snapshot during creation. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSnapshotRequest withTagSpecifications(TagSpecification... tagSpecifications) { if (this.tagSpecifications == null) { setTagSpecifications(new com.amazonaws.internal.SdkInternalList* The tags to apply to the snapshot during creation. *
* * @param tagSpecifications * The tags to apply to the snapshot during creation. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSnapshotRequest withTagSpecifications(java.util.Collection