public class ExportToS3TaskSpecification
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an instance export task.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
containerFormat
The container format used to combine disk images with metadata (such as
OVF).
|
private java.lang.String |
diskImageFormat
The format for the exported image.
|
private java.lang.String |
s3Bucket
The S3 bucket for the destination image.
|
private java.lang.String |
s3Prefix
The image is written to a single object in the S3 bucket at the S3 key
s3prefix + exportTaskId + '.' + diskImageFormat.
|
Constructor and Description |
---|
ExportToS3TaskSpecification() |
Modifier and Type | Method and Description |
---|---|
ExportToS3TaskSpecification |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getContainerFormat()
The container format used to combine disk images with metadata (such as
OVF).
|
java.lang.String |
getDiskImageFormat()
The format for the exported image.
|
java.lang.String |
getS3Bucket()
The S3 bucket for the destination image.
|
java.lang.String |
getS3Prefix()
The image is written to a single object in the S3 bucket at the S3 key
s3prefix + exportTaskId + '.' + diskImageFormat.
|
int |
hashCode() |
void |
setContainerFormat(ContainerFormat containerFormat)
The container format used to combine disk images with metadata (such as
OVF).
|
void |
setContainerFormat(java.lang.String containerFormat)
The container format used to combine disk images with metadata (such as
OVF).
|
void |
setDiskImageFormat(DiskImageFormat diskImageFormat)
The format for the exported image.
|
void |
setDiskImageFormat(java.lang.String diskImageFormat)
The format for the exported image.
|
void |
setS3Bucket(java.lang.String s3Bucket)
The S3 bucket for the destination image.
|
void |
setS3Prefix(java.lang.String s3Prefix)
The image is written to a single object in the S3 bucket at the S3 key
s3prefix + exportTaskId + '.' + diskImageFormat.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ExportToS3TaskSpecification |
withContainerFormat(ContainerFormat containerFormat)
The container format used to combine disk images with metadata (such as
OVF).
|
ExportToS3TaskSpecification |
withContainerFormat(java.lang.String containerFormat)
The container format used to combine disk images with metadata (such as
OVF).
|
ExportToS3TaskSpecification |
withDiskImageFormat(DiskImageFormat diskImageFormat)
The format for the exported image.
|
ExportToS3TaskSpecification |
withDiskImageFormat(java.lang.String diskImageFormat)
The format for the exported image.
|
ExportToS3TaskSpecification |
withS3Bucket(java.lang.String s3Bucket)
The S3 bucket for the destination image.
|
ExportToS3TaskSpecification |
withS3Prefix(java.lang.String s3Prefix)
The image is written to a single object in the S3 bucket at the S3 key
s3prefix + exportTaskId + '.' + diskImageFormat.
|
private java.lang.String diskImageFormat
The format for the exported image.
private java.lang.String containerFormat
The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.
private java.lang.String s3Bucket
The S3 bucket for the destination image. The destination bucket must
exist and grant WRITE and READ_ACP permissions to the AWS account
vm-import-export@amazon.com
.
private java.lang.String s3Prefix
The image is written to a single object in the S3 bucket at the S3 key s3prefix + exportTaskId + '.' + diskImageFormat.
public void setDiskImageFormat(java.lang.String diskImageFormat)
The format for the exported image.
diskImageFormat
- The format for the exported image.DiskImageFormat
public java.lang.String getDiskImageFormat()
The format for the exported image.
DiskImageFormat
public ExportToS3TaskSpecification withDiskImageFormat(java.lang.String diskImageFormat)
The format for the exported image.
diskImageFormat
- The format for the exported image.DiskImageFormat
public void setDiskImageFormat(DiskImageFormat diskImageFormat)
The format for the exported image.
diskImageFormat
- The format for the exported image.DiskImageFormat
public ExportToS3TaskSpecification withDiskImageFormat(DiskImageFormat diskImageFormat)
The format for the exported image.
diskImageFormat
- The format for the exported image.DiskImageFormat
public void setContainerFormat(java.lang.String containerFormat)
The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.
containerFormat
- The container format used to combine disk images with metadata
(such as OVF). If absent, only the disk image is exported.ContainerFormat
public java.lang.String getContainerFormat()
The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.
ContainerFormat
public ExportToS3TaskSpecification withContainerFormat(java.lang.String containerFormat)
The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.
containerFormat
- The container format used to combine disk images with metadata
(such as OVF). If absent, only the disk image is exported.ContainerFormat
public void setContainerFormat(ContainerFormat containerFormat)
The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.
containerFormat
- The container format used to combine disk images with metadata
(such as OVF). If absent, only the disk image is exported.ContainerFormat
public ExportToS3TaskSpecification withContainerFormat(ContainerFormat containerFormat)
The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.
containerFormat
- The container format used to combine disk images with metadata
(such as OVF). If absent, only the disk image is exported.ContainerFormat
public void setS3Bucket(java.lang.String s3Bucket)
The S3 bucket for the destination image. The destination bucket must
exist and grant WRITE and READ_ACP permissions to the AWS account
vm-import-export@amazon.com
.
s3Bucket
- The S3 bucket for the destination image. The destination bucket
must exist and grant WRITE and READ_ACP permissions to the AWS
account vm-import-export@amazon.com
.public java.lang.String getS3Bucket()
The S3 bucket for the destination image. The destination bucket must
exist and grant WRITE and READ_ACP permissions to the AWS account
vm-import-export@amazon.com
.
vm-import-export@amazon.com
.public ExportToS3TaskSpecification withS3Bucket(java.lang.String s3Bucket)
The S3 bucket for the destination image. The destination bucket must
exist and grant WRITE and READ_ACP permissions to the AWS account
vm-import-export@amazon.com
.
s3Bucket
- The S3 bucket for the destination image. The destination bucket
must exist and grant WRITE and READ_ACP permissions to the AWS
account vm-import-export@amazon.com
.public void setS3Prefix(java.lang.String s3Prefix)
The image is written to a single object in the S3 bucket at the S3 key s3prefix + exportTaskId + '.' + diskImageFormat.
s3Prefix
- The image is written to a single object in the S3 bucket at the S3
key s3prefix + exportTaskId + '.' + diskImageFormat.public java.lang.String getS3Prefix()
The image is written to a single object in the S3 bucket at the S3 key s3prefix + exportTaskId + '.' + diskImageFormat.
public ExportToS3TaskSpecification withS3Prefix(java.lang.String s3Prefix)
The image is written to a single object in the S3 bucket at the S3 key s3prefix + exportTaskId + '.' + diskImageFormat.
s3Prefix
- The image is written to a single object in the S3 bucket at the S3
key s3prefix + exportTaskId + '.' + diskImageFormat.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ExportToS3TaskSpecification clone()
clone
in class java.lang.Object