@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateSnapshotRequest>
NOOP
Constructor and Description |
---|
CreateSnapshotRequest()
Default constructor for CreateSnapshotRequest object.
|
CreateSnapshotRequest(String volumeId,
String description)
Constructs a new CreateSnapshotRequest object.
|
Modifier and Type | Method and Description |
---|---|
CreateSnapshotRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDescription()
A description for the snapshot.
|
Request<CreateSnapshotRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getOutpostArn()
The Amazon Resource Name (ARN) of the Outpost on which to create a local snapshot.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the snapshot during creation.
|
String |
getVolumeId()
The ID of the Amazon EBS volume.
|
int |
hashCode() |
void |
setDescription(String description)
A description for the snapshot.
|
void |
setOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost on which to create a local snapshot.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the snapshot during creation.
|
void |
setVolumeId(String volumeId)
The ID of the Amazon EBS volume.
|
String |
toString()
Returns a string representation of this object.
|
CreateSnapshotRequest |
withDescription(String description)
A description for the snapshot.
|
CreateSnapshotRequest |
withOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost on which to create a local snapshot.
|
CreateSnapshotRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the snapshot during creation.
|
CreateSnapshotRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the snapshot during creation.
|
CreateSnapshotRequest |
withVolumeId(String volumeId)
The ID of the Amazon EBS volume.
|
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 CreateSnapshotRequest()
public CreateSnapshotRequest(String volumeId, String description)
volumeId
- The ID of the Amazon EBS volume.description
- A description for the snapshot.public void setDescription(String description)
A description for the snapshot.
description
- A description for the snapshot.public String getDescription()
A description for the snapshot.
public CreateSnapshotRequest withDescription(String description)
A description for the snapshot.
description
- A description for the snapshot.public void setOutpostArn(String 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 EBS User Guide.
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 EBS User Guide.
public String getOutpostArn()
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 EBS 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 EBS User Guide.
public CreateSnapshotRequest withOutpostArn(String 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 EBS User Guide.
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 EBS User Guide.
public void setVolumeId(String volumeId)
The ID of the Amazon EBS volume.
volumeId
- The ID of the Amazon EBS volume.public String getVolumeId()
The ID of the Amazon EBS volume.
public CreateSnapshotRequest withVolumeId(String volumeId)
The ID of the Amazon EBS volume.
volumeId
- The ID of the Amazon EBS volume.public List<TagSpecification> getTagSpecifications()
The tags to apply to the snapshot during creation.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the snapshot during creation.
tagSpecifications
- The tags to apply to the snapshot during creation.public CreateSnapshotRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the snapshot during creation.
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
- The tags to apply to the snapshot during creation.public CreateSnapshotRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the snapshot during creation.
tagSpecifications
- The tags to apply to the snapshot during creation.public Request<CreateSnapshotRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateSnapshotRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateSnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()