/*
* 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.CreateSnapshotsRequestMarshaller;
/**
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateSnapshotsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest
* A description propagated to every snapshot specified by the instance.
*
* The instance to specify which volumes should be included in the snapshots.
*
* The Amazon Resource Name (ARN) of the Outpost on which to create the local snapshots.
*
* To create snapshots from an instance in a Region, omit this parameter. The snapshots are created in the same
* Region as the instance.
*
* To create snapshots from an instance on an Outpost and store the snapshots in the Region, omit this parameter.
* The snapshots are created in the Region for the Outpost.
*
* To create snapshots from an instance on an Outpost and store the snapshots on an Outpost, specify the ARN of the
* destination Outpost. The snapshots must be created on the same Outpost as the instance.
*
* For more information, see
* Create multi-volume local snapshots from instances on an Outpost in the Amazon Elastic Compute Cloud User
* Guide.
*
* Tags to apply to every snapshot specified by the instance.
*
* Copies the tags from the specified volume to corresponding snapshot.
*
* A description propagated to every snapshot specified by the instance.
*
* A description propagated to every snapshot specified by the instance.
*
* A description propagated to every snapshot specified by the instance.
*
* The instance to specify which volumes should be included in the snapshots.
*
* The instance to specify which volumes should be included in the snapshots.
*
* The instance to specify which volumes should be included in the snapshots.
*
* The Amazon Resource Name (ARN) of the Outpost on which to create the local snapshots.
*
* To create snapshots from an instance in a Region, omit this parameter. The snapshots are created in the same
* Region as the instance.
*
* To create snapshots from an instance on an Outpost and store the snapshots in the Region, omit this parameter.
* The snapshots are created in the Region for the Outpost.
*
* To create snapshots from an instance on an Outpost and store the snapshots on an Outpost, specify the ARN of the
* destination Outpost. The snapshots must be created on the same Outpost as the instance.
*
* For more information, see
* Create multi-volume local snapshots from instances on an Outpost in the Amazon Elastic Compute Cloud User
* Guide.
*
*
*
*
*
* To create snapshots from an instance in a Region, omit this parameter. The snapshots are created in the * same Region as the instance. *
** To create snapshots from an instance on an Outpost and store the snapshots in the Region, omit this * parameter. The snapshots are created in the Region for the Outpost. *
** To create snapshots from an instance on an Outpost and store the snapshots on an Outpost, specify the ARN * of the destination Outpost. The snapshots must be created on the same Outpost as the instance. *
** For more information, see * Create multi-volume local snapshots from instances 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 the local snapshots. *
** To create snapshots from an instance in a Region, omit this parameter. The snapshots are created in the same * Region as the instance. *
** To create snapshots from an instance on an Outpost and store the snapshots in the Region, omit this parameter. * The snapshots are created in the Region for the Outpost. *
** To create snapshots from an instance on an Outpost and store the snapshots on an Outpost, specify the ARN of the * destination Outpost. The snapshots must be created on the same Outpost as the instance. *
** For more information, see * Create multi-volume local snapshots from instances on an Outpost in the Amazon Elastic Compute Cloud User * Guide. *
* * @return The Amazon Resource Name (ARN) of the Outpost on which to create the local snapshots. ** To create snapshots from an instance in a Region, omit this parameter. The snapshots are created in the * same Region as the instance. *
** To create snapshots from an instance on an Outpost and store the snapshots in the Region, omit this * parameter. The snapshots are created in the Region for the Outpost. *
** To create snapshots from an instance on an Outpost and store the snapshots on an Outpost, specify the ARN * of the destination Outpost. The snapshots must be created on the same Outpost as the instance. *
** For more information, see * Create multi-volume local snapshots from instances 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 the local snapshots. *
** To create snapshots from an instance in a Region, omit this parameter. The snapshots are created in the same * Region as the instance. *
** To create snapshots from an instance on an Outpost and store the snapshots in the Region, omit this parameter. * The snapshots are created in the Region for the Outpost. *
** To create snapshots from an instance on an Outpost and store the snapshots on an Outpost, specify the ARN of the * destination Outpost. The snapshots must be created on the same Outpost as the instance. *
** For more information, see * Create multi-volume local snapshots from instances 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 the local snapshots. ** To create snapshots from an instance in a Region, omit this parameter. The snapshots are created in the * same Region as the instance. *
** To create snapshots from an instance on an Outpost and store the snapshots in the Region, omit this * parameter. The snapshots are created in the Region for the Outpost. *
** To create snapshots from an instance on an Outpost and store the snapshots on an Outpost, specify the ARN * of the destination Outpost. The snapshots must be created on the same Outpost as the instance. *
** For more information, see * Create multi-volume local snapshots from instances 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 CreateSnapshotsRequest withOutpostArn(String outpostArn) { setOutpostArn(outpostArn); return this; } /** *
* Tags to apply to every snapshot specified by the instance. *
* * @return Tags to apply to every snapshot specified by the instance. */ public java.util.List* Tags to apply to every snapshot specified by the instance. *
* * @param tagSpecifications * Tags to apply to every snapshot specified by the instance. */ public void setTagSpecifications(java.util.Collection* Tags to apply to every snapshot specified by the instance. *
** 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 * Tags to apply to every snapshot specified by the instance. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSnapshotsRequest withTagSpecifications(TagSpecification... tagSpecifications) { if (this.tagSpecifications == null) { setTagSpecifications(new com.amazonaws.internal.SdkInternalList* Tags to apply to every snapshot specified by the instance. *
* * @param tagSpecifications * Tags to apply to every snapshot specified by the instance. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSnapshotsRequest withTagSpecifications(java.util.Collection* Copies the tags from the specified volume to corresponding snapshot. *
* * @param copyTagsFromSource * Copies the tags from the specified volume to corresponding snapshot. * @see CopyTagsFromSource */ public void setCopyTagsFromSource(String copyTagsFromSource) { this.copyTagsFromSource = copyTagsFromSource; } /** ** Copies the tags from the specified volume to corresponding snapshot. *
* * @return Copies the tags from the specified volume to corresponding snapshot. * @see CopyTagsFromSource */ public String getCopyTagsFromSource() { return this.copyTagsFromSource; } /** ** Copies the tags from the specified volume to corresponding snapshot. *
* * @param copyTagsFromSource * Copies the tags from the specified volume to corresponding snapshot. * @return Returns a reference to this object so that method calls can be chained together. * @see CopyTagsFromSource */ public CreateSnapshotsRequest withCopyTagsFromSource(String copyTagsFromSource) { setCopyTagsFromSource(copyTagsFromSource); return this; } /** ** Copies the tags from the specified volume to corresponding snapshot. *
* * @param copyTagsFromSource * Copies the tags from the specified volume to corresponding snapshot. * @return Returns a reference to this object so that method calls can be chained together. * @see CopyTagsFromSource */ public CreateSnapshotsRequest withCopyTagsFromSource(CopyTagsFromSource copyTagsFromSource) { this.copyTagsFromSource = copyTagsFromSource.toString(); return this; } /** * This method is intended for internal use only. Returns the marshaled request configured with additional * parameters to enable operation dry-run. */ @Override public Request