@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSnapshotsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateSnapshotsRequest>
NOOP
Constructor and Description |
---|
CreateSnapshotsRequest() |
Modifier and Type | Method and Description |
---|---|
CreateSnapshotsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getCopyTagsFromSource()
Copies the tags from the specified volume to corresponding snapshot.
|
String |
getDescription()
A description propagated to every snapshot specified by the instance.
|
Request<CreateSnapshotsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
InstanceSpecification |
getInstanceSpecification()
The instance to specify which volumes should be included in the snapshots.
|
String |
getOutpostArn()
The Amazon Resource Name (ARN) of the Outpost on which to create the local snapshots.
|
List<TagSpecification> |
getTagSpecifications()
Tags to apply to every snapshot specified by the instance.
|
int |
hashCode() |
void |
setCopyTagsFromSource(String copyTagsFromSource)
Copies the tags from the specified volume to corresponding snapshot.
|
void |
setDescription(String description)
A description propagated to every snapshot specified by the instance.
|
void |
setInstanceSpecification(InstanceSpecification instanceSpecification)
The instance to specify which volumes should be included in the snapshots.
|
void |
setOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost on which to create the local snapshots.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
Tags to apply to every snapshot specified by the instance.
|
String |
toString()
Returns a string representation of this object.
|
CreateSnapshotsRequest |
withCopyTagsFromSource(CopyTagsFromSource copyTagsFromSource)
Copies the tags from the specified volume to corresponding snapshot.
|
CreateSnapshotsRequest |
withCopyTagsFromSource(String copyTagsFromSource)
Copies the tags from the specified volume to corresponding snapshot.
|
CreateSnapshotsRequest |
withDescription(String description)
A description propagated to every snapshot specified by the instance.
|
CreateSnapshotsRequest |
withInstanceSpecification(InstanceSpecification instanceSpecification)
The instance to specify which volumes should be included in the snapshots.
|
CreateSnapshotsRequest |
withOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost on which to create the local snapshots.
|
CreateSnapshotsRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
Tags to apply to every snapshot specified by the instance.
|
CreateSnapshotsRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
Tags to apply to every snapshot specified by the instance.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setDescription(String description)
A description propagated to every snapshot specified by the instance.
description
- A description propagated to every snapshot specified by the instance.public String getDescription()
A description propagated to every snapshot specified by the instance.
public CreateSnapshotsRequest withDescription(String description)
A description propagated to every snapshot specified by the instance.
description
- A description propagated to every snapshot specified by the instance.public void setInstanceSpecification(InstanceSpecification instanceSpecification)
The instance to specify which volumes should be included in the snapshots.
instanceSpecification
- The instance to specify which volumes should be included in the snapshots.public InstanceSpecification getInstanceSpecification()
The instance to specify which volumes should be included in the snapshots.
public CreateSnapshotsRequest withInstanceSpecification(InstanceSpecification instanceSpecification)
The instance to specify which volumes should be included in the snapshots.
instanceSpecification
- The instance to specify which volumes should be included in the snapshots.public void setOutpostArn(String 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 EBS User Guide.
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 EBS User Guide.
public String getOutpostArn()
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 EBS 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 EBS User Guide.
public CreateSnapshotsRequest withOutpostArn(String 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 EBS User Guide.
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 EBS User Guide.
public List<TagSpecification> getTagSpecifications()
Tags to apply to every snapshot specified by the instance.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
Tags to apply to every snapshot specified by the instance.
tagSpecifications
- Tags to apply to every snapshot specified by the instance.public CreateSnapshotsRequest withTagSpecifications(TagSpecification... tagSpecifications)
Tags to apply to every snapshot specified by the instance.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- Tags to apply to every snapshot specified by the instance.public CreateSnapshotsRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
Tags to apply to every snapshot specified by the instance.
tagSpecifications
- Tags to apply to every snapshot specified by the instance.public void setCopyTagsFromSource(String copyTagsFromSource)
Copies the tags from the specified volume to corresponding snapshot.
copyTagsFromSource
- Copies the tags from the specified volume to corresponding snapshot.CopyTagsFromSource
public String getCopyTagsFromSource()
Copies the tags from the specified volume to corresponding snapshot.
CopyTagsFromSource
public CreateSnapshotsRequest withCopyTagsFromSource(String copyTagsFromSource)
Copies the tags from the specified volume to corresponding snapshot.
copyTagsFromSource
- Copies the tags from the specified volume to corresponding snapshot.CopyTagsFromSource
public CreateSnapshotsRequest withCopyTagsFromSource(CopyTagsFromSource copyTagsFromSource)
Copies the tags from the specified volume to corresponding snapshot.
copyTagsFromSource
- Copies the tags from the specified volume to corresponding snapshot.CopyTagsFromSource
public Request<CreateSnapshotsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateSnapshotsRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateSnapshotsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()