Class ExportToS3TaskSpecification
- java.lang.Object
-
- com.amazonaws.services.ec2.model.ExportToS3TaskSpecification
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ExportToS3TaskSpecification extends Object implements Serializable, Cloneable
Describes an instance export task.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExportToS3TaskSpecification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExportToS3TaskSpecification
clone()
boolean
equals(Object obj)
String
getContainerFormat()
The container format used to combine disk images with metadata (such as OVF).String
getDiskImageFormat()
The format for the exported image.String
getS3Bucket()
The S3 bucket for the destination image.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(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(String diskImageFormat)
The format for the exported image.void
setS3Bucket(String s3Bucket)
The S3 bucket for the destination image.void
setS3Prefix(String s3Prefix)
The image is written to a single object in the S3 bucket at the S3 key s3prefix + exportTaskId + '.' + diskImageFormat.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(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(String diskImageFormat)
The format for the exported image.ExportToS3TaskSpecification
withS3Bucket(String s3Bucket)
The S3 bucket for the destination image.ExportToS3TaskSpecification
withS3Prefix(String s3Prefix)
The image is written to a single object in the S3 bucket at the S3 key s3prefix + exportTaskId + '.' + diskImageFormat.
-
-
-
Method Detail
-
setDiskImageFormat
public void setDiskImageFormat(String diskImageFormat)
The format for the exported image.
- Parameters:
diskImageFormat
- The format for the exported image.- See Also:
DiskImageFormat
-
getDiskImageFormat
public String getDiskImageFormat()
The format for the exported image.
- Returns:
- The format for the exported image.
- See Also:
DiskImageFormat
-
withDiskImageFormat
public ExportToS3TaskSpecification withDiskImageFormat(String diskImageFormat)
The format for the exported image.
- Parameters:
diskImageFormat
- The format for the exported image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DiskImageFormat
-
setDiskImageFormat
public void setDiskImageFormat(DiskImageFormat diskImageFormat)
The format for the exported image.
- Parameters:
diskImageFormat
- The format for the exported image.- See Also:
DiskImageFormat
-
withDiskImageFormat
public ExportToS3TaskSpecification withDiskImageFormat(DiskImageFormat diskImageFormat)
The format for the exported image.
- Parameters:
diskImageFormat
- The format for the exported image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DiskImageFormat
-
setContainerFormat
public void setContainerFormat(String containerFormat)
The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.
- Parameters:
containerFormat
- The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.- See Also:
ContainerFormat
-
getContainerFormat
public String getContainerFormat()
The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.
- Returns:
- The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.
- See Also:
ContainerFormat
-
withContainerFormat
public ExportToS3TaskSpecification withContainerFormat(String containerFormat)
The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.
- Parameters:
containerFormat
- The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ContainerFormat
-
setContainerFormat
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.
- Parameters:
containerFormat
- The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.- See Also:
ContainerFormat
-
withContainerFormat
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.
- Parameters:
containerFormat
- The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ContainerFormat
-
setS3Bucket
public void setS3Bucket(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
.- Parameters:
s3Bucket
- The S3 bucket for the destination image. The destination bucket must exist and grant WRITE and READ_ACP permissions to the AWS accountvm-import-export@amazon.com
.
-
getS3Bucket
public 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
.- Returns:
- 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
.
-
withS3Bucket
public ExportToS3TaskSpecification withS3Bucket(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
.- Parameters:
s3Bucket
- The S3 bucket for the destination image. The destination bucket must exist and grant WRITE and READ_ACP permissions to the AWS accountvm-import-export@amazon.com
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setS3Prefix
public void setS3Prefix(String s3Prefix)
The image is written to a single object in the S3 bucket at the S3 key s3prefix + exportTaskId + '.' + diskImageFormat.
- Parameters:
s3Prefix
- The image is written to a single object in the S3 bucket at the S3 key s3prefix + exportTaskId + '.' + diskImageFormat.
-
getS3Prefix
public String getS3Prefix()
The image is written to a single object in the S3 bucket at the S3 key s3prefix + exportTaskId + '.' + diskImageFormat.
- Returns:
- The image is written to a single object in the S3 bucket at the S3 key s3prefix + exportTaskId + '.' + diskImageFormat.
-
withS3Prefix
public ExportToS3TaskSpecification withS3Prefix(String s3Prefix)
The image is written to a single object in the S3 bucket at the S3 key s3prefix + exportTaskId + '.' + diskImageFormat.
- Parameters:
s3Prefix
- The image is written to a single object in the S3 bucket at the S3 key s3prefix + exportTaskId + '.' + diskImageFormat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ExportToS3TaskSpecification clone()
-
-