|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.CopyImageRequest
public class CopyImageRequest
Container for the parameters to the CopyImage operation
.
Initiates the copy of an AMI from the specified source region to the region in which the request was made. You specify the destination region by using its endpoint when making the request. AMIs that use encrypted Amazon EBS snapshots cannot be copied with this method.
For more information, see Copying AMIs in the Amazon Elastic Compute Cloud User Guide .
AmazonEC2.copyImage(CopyImageRequest)
,
Serialized FormConstructor Summary | |
---|---|
CopyImageRequest()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getClientToken()
Unique, case-sensitive identifier you provide to ensure idempotency of the request. |
java.lang.String |
getDescription()
A description for the new AMI in the destination region. |
Request<CopyImageRequest> |
getDryRunRequest()
This method is intended for internal use only. |
java.lang.String |
getName()
The name of the new AMI in the destination region. |
java.lang.String |
getSourceImageId()
The ID of the AMI to copy. |
java.lang.String |
getSourceRegion()
The name of the region that contains the AMI to copy. |
int |
hashCode()
|
void |
setClientToken(java.lang.String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request. |
void |
setDescription(java.lang.String description)
A description for the new AMI in the destination region. |
void |
setName(java.lang.String name)
The name of the new AMI in the destination region. |
void |
setSourceImageId(java.lang.String sourceImageId)
The ID of the AMI to copy. |
void |
setSourceRegion(java.lang.String sourceRegion)
The name of the region that contains the AMI to copy. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
CopyImageRequest |
withClientToken(java.lang.String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request. |
CopyImageRequest |
withDescription(java.lang.String description)
A description for the new AMI in the destination region. |
CopyImageRequest |
withName(java.lang.String name)
The name of the new AMI in the destination region. |
CopyImageRequest |
withSourceImageId(java.lang.String sourceImageId)
The ID of the AMI to copy. |
CopyImageRequest |
withSourceRegion(java.lang.String sourceRegion)
The name of the region that contains the AMI to copy. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CopyImageRequest()
Method Detail |
---|
public java.lang.String getSourceRegion()
public void setSourceRegion(java.lang.String sourceRegion)
sourceRegion
- The name of the region that contains the AMI to copy.public CopyImageRequest withSourceRegion(java.lang.String sourceRegion)
Returns a reference to this object so that method calls can be chained together.
sourceRegion
- The name of the region that contains the AMI to copy.
public java.lang.String getSourceImageId()
public void setSourceImageId(java.lang.String sourceImageId)
sourceImageId
- The ID of the AMI to copy.public CopyImageRequest withSourceImageId(java.lang.String sourceImageId)
Returns a reference to this object so that method calls can be chained together.
sourceImageId
- The ID of the AMI to copy.
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name of the new AMI in the destination region.public CopyImageRequest withName(java.lang.String name)
Returns a reference to this object so that method calls can be chained together.
name
- The name of the new AMI in the destination region.
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- A description for the new AMI in the destination region.public CopyImageRequest withDescription(java.lang.String description)
Returns a reference to this object so that method calls can be chained together.
description
- A description for the new AMI in the destination region.
public java.lang.String getClientToken()
public void setClientToken(java.lang.String clientToken)
clientToken
- Unique, case-sensitive identifier you provide to ensure idempotency of
the request. For more information, see How
to Ensure Idempotency in the Amazon Elastic Compute Cloud User
Guide.public CopyImageRequest withClientToken(java.lang.String clientToken)
Returns a reference to this object so that method calls can be chained together.
clientToken
- Unique, case-sensitive identifier you provide to ensure idempotency of
the request. For more information, see How
to Ensure Idempotency in the Amazon Elastic Compute Cloud User
Guide.
public Request<CopyImageRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CopyImageRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |