@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateRestoreImageTaskRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateRestoreImageTaskRequest>
NOOP
Constructor and Description |
---|
CreateRestoreImageTaskRequest() |
Modifier and Type | Method and Description |
---|---|
CreateRestoreImageTaskRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getBucket()
The name of the Amazon S3 bucket that contains the stored AMI object.
|
Request<CreateRestoreImageTaskRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getName()
The name for the restored AMI.
|
String |
getObjectKey()
The name of the stored AMI object in the bucket.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the AMI and snapshots on restoration.
|
int |
hashCode() |
void |
setBucket(String bucket)
The name of the Amazon S3 bucket that contains the stored AMI object.
|
void |
setName(String name)
The name for the restored AMI.
|
void |
setObjectKey(String objectKey)
The name of the stored AMI object in the bucket.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the AMI and snapshots on restoration.
|
String |
toString()
Returns a string representation of this object.
|
CreateRestoreImageTaskRequest |
withBucket(String bucket)
The name of the Amazon S3 bucket that contains the stored AMI object.
|
CreateRestoreImageTaskRequest |
withName(String name)
The name for the restored AMI.
|
CreateRestoreImageTaskRequest |
withObjectKey(String objectKey)
The name of the stored AMI object in the bucket.
|
CreateRestoreImageTaskRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the AMI and snapshots on restoration.
|
CreateRestoreImageTaskRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the AMI and snapshots on restoration.
|
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 setBucket(String bucket)
The name of the Amazon S3 bucket that contains the stored AMI object.
bucket
- The name of the Amazon S3 bucket that contains the stored AMI object.public String getBucket()
The name of the Amazon S3 bucket that contains the stored AMI object.
public CreateRestoreImageTaskRequest withBucket(String bucket)
The name of the Amazon S3 bucket that contains the stored AMI object.
bucket
- The name of the Amazon S3 bucket that contains the stored AMI object.public void setObjectKey(String objectKey)
The name of the stored AMI object in the bucket.
objectKey
- The name of the stored AMI object in the bucket.public String getObjectKey()
The name of the stored AMI object in the bucket.
public CreateRestoreImageTaskRequest withObjectKey(String objectKey)
The name of the stored AMI object in the bucket.
objectKey
- The name of the stored AMI object in the bucket.public void setName(String name)
The name for the restored AMI. The name must be unique for AMIs in the Region for this account. If you do not provide a name, the new AMI gets the same name as the original AMI.
name
- The name for the restored AMI. The name must be unique for AMIs in the Region for this account. If you do
not provide a name, the new AMI gets the same name as the original AMI.public String getName()
The name for the restored AMI. The name must be unique for AMIs in the Region for this account. If you do not provide a name, the new AMI gets the same name as the original AMI.
public CreateRestoreImageTaskRequest withName(String name)
The name for the restored AMI. The name must be unique for AMIs in the Region for this account. If you do not provide a name, the new AMI gets the same name as the original AMI.
name
- The name for the restored AMI. The name must be unique for AMIs in the Region for this account. If you do
not provide a name, the new AMI gets the same name as the original AMI.public List<TagSpecification> getTagSpecifications()
The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, the snapshots, or both.
To tag the AMI, the value for ResourceType
must be image
.
To tag the snapshots, the value for ResourceType
must be snapshot
. The same tag is
applied to all of the snapshots that are created.
To tag the AMI, the value for ResourceType
must be image
.
To tag the snapshots, the value for ResourceType
must be snapshot
. The same tag
is applied to all of the snapshots that are created.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, the snapshots, or both.
To tag the AMI, the value for ResourceType
must be image
.
To tag the snapshots, the value for ResourceType
must be snapshot
. The same tag is
applied to all of the snapshots that are created.
tagSpecifications
- The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, the snapshots, or
both.
To tag the AMI, the value for ResourceType
must be image
.
To tag the snapshots, the value for ResourceType
must be snapshot
. The same tag
is applied to all of the snapshots that are created.
public CreateRestoreImageTaskRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, the snapshots, or both.
To tag the AMI, the value for ResourceType
must be image
.
To tag the snapshots, the value for ResourceType
must be snapshot
. The same tag is
applied to all of the snapshots that are created.
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 AMI and snapshots on restoration. You can tag the AMI, the snapshots, or
both.
To tag the AMI, the value for ResourceType
must be image
.
To tag the snapshots, the value for ResourceType
must be snapshot
. The same tag
is applied to all of the snapshots that are created.
public CreateRestoreImageTaskRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, the snapshots, or both.
To tag the AMI, the value for ResourceType
must be image
.
To tag the snapshots, the value for ResourceType
must be snapshot
. The same tag is
applied to all of the snapshots that are created.
tagSpecifications
- The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, the snapshots, or
both.
To tag the AMI, the value for ResourceType
must be image
.
To tag the snapshots, the value for ResourceType
must be snapshot
. The same tag
is applied to all of the snapshots that are created.
public Request<CreateRestoreImageTaskRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateRestoreImageTaskRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateRestoreImageTaskRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()