@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ExportImageRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ExportImageRequest>
NOOP
Constructor and Description |
---|
ExportImageRequest() |
Modifier and Type | Method and Description |
---|---|
ExportImageRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
Token to enable idempotency for export image requests.
|
String |
getDescription()
A description of the image being exported.
|
String |
getDiskImageFormat()
The disk image format.
|
Request<ExportImageRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getImageId()
The ID of the image.
|
String |
getRoleName()
The name of the role that grants VM Import/Export permission to export images to your Amazon S3 bucket.
|
ExportTaskS3LocationRequest |
getS3ExportLocation()
The Amazon S3 bucket for the destination image.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the export image task during creation.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
Token to enable idempotency for export image requests.
|
void |
setDescription(String description)
A description of the image being exported.
|
void |
setDiskImageFormat(String diskImageFormat)
The disk image format.
|
void |
setImageId(String imageId)
The ID of the image.
|
void |
setRoleName(String roleName)
The name of the role that grants VM Import/Export permission to export images to your Amazon S3 bucket.
|
void |
setS3ExportLocation(ExportTaskS3LocationRequest s3ExportLocation)
The Amazon S3 bucket for the destination image.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the export image task during creation.
|
String |
toString()
Returns a string representation of this object.
|
ExportImageRequest |
withClientToken(String clientToken)
Token to enable idempotency for export image requests.
|
ExportImageRequest |
withDescription(String description)
A description of the image being exported.
|
ExportImageRequest |
withDiskImageFormat(DiskImageFormat diskImageFormat)
The disk image format.
|
ExportImageRequest |
withDiskImageFormat(String diskImageFormat)
The disk image format.
|
ExportImageRequest |
withImageId(String imageId)
The ID of the image.
|
ExportImageRequest |
withRoleName(String roleName)
The name of the role that grants VM Import/Export permission to export images to your Amazon S3 bucket.
|
ExportImageRequest |
withS3ExportLocation(ExportTaskS3LocationRequest s3ExportLocation)
The Amazon S3 bucket for the destination image.
|
ExportImageRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the export image task during creation.
|
ExportImageRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the export image task during creation.
|
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 setClientToken(String clientToken)
Token to enable idempotency for export image requests.
clientToken
- Token to enable idempotency for export image requests.public String getClientToken()
Token to enable idempotency for export image requests.
public ExportImageRequest withClientToken(String clientToken)
Token to enable idempotency for export image requests.
clientToken
- Token to enable idempotency for export image requests.public void setDescription(String description)
A description of the image being exported. The maximum length is 255 characters.
description
- A description of the image being exported. The maximum length is 255 characters.public String getDescription()
A description of the image being exported. The maximum length is 255 characters.
public ExportImageRequest withDescription(String description)
A description of the image being exported. The maximum length is 255 characters.
description
- A description of the image being exported. The maximum length is 255 characters.public void setDiskImageFormat(String diskImageFormat)
The disk image format.
diskImageFormat
- The disk image format.DiskImageFormat
public String getDiskImageFormat()
The disk image format.
DiskImageFormat
public ExportImageRequest withDiskImageFormat(String diskImageFormat)
The disk image format.
diskImageFormat
- The disk image format.DiskImageFormat
public ExportImageRequest withDiskImageFormat(DiskImageFormat diskImageFormat)
The disk image format.
diskImageFormat
- The disk image format.DiskImageFormat
public void setImageId(String imageId)
The ID of the image.
imageId
- The ID of the image.public String getImageId()
The ID of the image.
public ExportImageRequest withImageId(String imageId)
The ID of the image.
imageId
- The ID of the image.public void setS3ExportLocation(ExportTaskS3LocationRequest s3ExportLocation)
The Amazon S3 bucket for the destination image. The destination bucket must exist.
s3ExportLocation
- The Amazon S3 bucket for the destination image. The destination bucket must exist.public ExportTaskS3LocationRequest getS3ExportLocation()
The Amazon S3 bucket for the destination image. The destination bucket must exist.
public ExportImageRequest withS3ExportLocation(ExportTaskS3LocationRequest s3ExportLocation)
The Amazon S3 bucket for the destination image. The destination bucket must exist.
s3ExportLocation
- The Amazon S3 bucket for the destination image. The destination bucket must exist.public void setRoleName(String roleName)
The name of the role that grants VM Import/Export permission to export images to your Amazon S3 bucket. If this parameter is not specified, the default role is named 'vmimport'.
roleName
- The name of the role that grants VM Import/Export permission to export images to your Amazon S3 bucket. If
this parameter is not specified, the default role is named 'vmimport'.public String getRoleName()
The name of the role that grants VM Import/Export permission to export images to your Amazon S3 bucket. If this parameter is not specified, the default role is named 'vmimport'.
public ExportImageRequest withRoleName(String roleName)
The name of the role that grants VM Import/Export permission to export images to your Amazon S3 bucket. If this parameter is not specified, the default role is named 'vmimport'.
roleName
- The name of the role that grants VM Import/Export permission to export images to your Amazon S3 bucket. If
this parameter is not specified, the default role is named 'vmimport'.public List<TagSpecification> getTagSpecifications()
The tags to apply to the export image task during creation.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the export image task during creation.
tagSpecifications
- The tags to apply to the export image task during creation.public ExportImageRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the export image task 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 export image task during creation.public ExportImageRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the export image task during creation.
tagSpecifications
- The tags to apply to the export image task during creation.public Request<ExportImageRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ExportImageRequest>
public String toString()
toString
in class Object
Object.toString()
public ExportImageRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()