public class RegisterImageRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<RegisterImageRequest>
Contains the parameters for RegisterImage.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
architecture
The architecture of the AMI.
|
private SdkInternalList<BlockDeviceMapping> |
blockDeviceMappings
One or more block device mapping entries.
|
private java.lang.String |
description
A description for your AMI.
|
private java.lang.String |
imageLocation
The full path to your AMI manifest in Amazon S3 storage.
|
private java.lang.String |
kernelId
The ID of the kernel.
|
private java.lang.String |
name
A name for your AMI.
|
private java.lang.String |
ramdiskId
The ID of the RAM disk.
|
private java.lang.String |
rootDeviceName
The name of the root device (for example,
/dev/sda1 , or
/dev/xvda ). |
private java.lang.String |
sriovNetSupport
Set to
simple to enable enhanced networking for the AMI and
any instances that you launch from the AMI. |
private java.lang.String |
virtualizationType
The type of virtualization.
|
NOOP
Constructor and Description |
---|
RegisterImageRequest()
Default constructor for RegisterImageRequest object.
|
RegisterImageRequest(java.lang.String imageLocation)
Constructs a new RegisterImageRequest object.
|
Modifier and Type | Method and Description |
---|---|
RegisterImageRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArchitecture()
The architecture of the AMI.
|
java.util.List<BlockDeviceMapping> |
getBlockDeviceMappings()
One or more block device mapping entries.
|
java.lang.String |
getDescription()
A description for your AMI.
|
Request<RegisterImageRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getImageLocation()
The full path to your AMI manifest in Amazon S3 storage.
|
java.lang.String |
getKernelId()
The ID of the kernel.
|
java.lang.String |
getName()
A name for your AMI.
|
java.lang.String |
getRamdiskId()
The ID of the RAM disk.
|
java.lang.String |
getRootDeviceName()
The name of the root device (for example,
/dev/sda1 , or
/dev/xvda ). |
java.lang.String |
getSriovNetSupport()
Set to
simple to enable enhanced networking for the AMI and
any instances that you launch from the AMI. |
java.lang.String |
getVirtualizationType()
The type of virtualization.
|
int |
hashCode() |
void |
setArchitecture(ArchitectureValues architecture)
The architecture of the AMI.
|
void |
setArchitecture(java.lang.String architecture)
The architecture of the AMI.
|
void |
setBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.
|
void |
setDescription(java.lang.String description)
A description for your AMI.
|
void |
setImageLocation(java.lang.String imageLocation)
The full path to your AMI manifest in Amazon S3 storage.
|
void |
setKernelId(java.lang.String kernelId)
The ID of the kernel.
|
void |
setName(java.lang.String name)
A name for your AMI.
|
void |
setRamdiskId(java.lang.String ramdiskId)
The ID of the RAM disk.
|
void |
setRootDeviceName(java.lang.String rootDeviceName)
The name of the root device (for example,
/dev/sda1 , or
/dev/xvda ). |
void |
setSriovNetSupport(java.lang.String sriovNetSupport)
Set to
simple to enable enhanced networking for the AMI and
any instances that you launch from the AMI. |
void |
setVirtualizationType(java.lang.String virtualizationType)
The type of virtualization.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RegisterImageRequest |
withArchitecture(ArchitectureValues architecture)
The architecture of the AMI.
|
RegisterImageRequest |
withArchitecture(java.lang.String architecture)
The architecture of the AMI.
|
RegisterImageRequest |
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
One or more block device mapping entries.
|
RegisterImageRequest |
withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.
|
RegisterImageRequest |
withDescription(java.lang.String description)
A description for your AMI.
|
RegisterImageRequest |
withImageLocation(java.lang.String imageLocation)
The full path to your AMI manifest in Amazon S3 storage.
|
RegisterImageRequest |
withKernelId(java.lang.String kernelId)
The ID of the kernel.
|
RegisterImageRequest |
withName(java.lang.String name)
A name for your AMI.
|
RegisterImageRequest |
withRamdiskId(java.lang.String ramdiskId)
The ID of the RAM disk.
|
RegisterImageRequest |
withRootDeviceName(java.lang.String rootDeviceName)
The name of the root device (for example,
/dev/sda1 , or
/dev/xvda ). |
RegisterImageRequest |
withSriovNetSupport(java.lang.String sriovNetSupport)
Set to
simple to enable enhanced networking for the AMI and
any instances that you launch from the AMI. |
RegisterImageRequest |
withVirtualizationType(java.lang.String virtualizationType)
The type of virtualization.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String imageLocation
The full path to your AMI manifest in Amazon S3 storage.
private java.lang.String name
A name for your AMI.
Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)
private java.lang.String description
A description for your AMI.
private java.lang.String architecture
The architecture of the AMI.
Default: For Amazon EBS-backed AMIs, i386
. For instance
store-backed AMIs, the architecture specified in the manifest file.
private java.lang.String kernelId
The ID of the kernel.
private java.lang.String ramdiskId
The ID of the RAM disk.
private java.lang.String rootDeviceName
The name of the root device (for example, /dev/sda1
, or
/dev/xvda
).
private SdkInternalList<BlockDeviceMapping> blockDeviceMappings
One or more block device mapping entries.
private java.lang.String virtualizationType
The type of virtualization.
Default: paravirtual
private java.lang.String sriovNetSupport
Set to simple
to enable enhanced networking for the AMI and
any instances that you launch from the AMI.
There is no way to disable enhanced networking at this time.
This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from the AMI unreachable.
public RegisterImageRequest()
public RegisterImageRequest(java.lang.String imageLocation)
imageLocation
- The full path to your AMI manifest in Amazon S3 storage.public void setImageLocation(java.lang.String imageLocation)
The full path to your AMI manifest in Amazon S3 storage.
imageLocation
- The full path to your AMI manifest in Amazon S3 storage.public java.lang.String getImageLocation()
The full path to your AMI manifest in Amazon S3 storage.
public RegisterImageRequest withImageLocation(java.lang.String imageLocation)
The full path to your AMI manifest in Amazon S3 storage.
imageLocation
- The full path to your AMI manifest in Amazon S3 storage.public void setName(java.lang.String name)
A name for your AMI.
Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)
name
- A name for your AMI.
Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)
public java.lang.String getName()
A name for your AMI.
Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)
Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)
public RegisterImageRequest withName(java.lang.String name)
A name for your AMI.
Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)
name
- A name for your AMI.
Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)
public void setDescription(java.lang.String description)
A description for your AMI.
description
- A description for your AMI.public java.lang.String getDescription()
A description for your AMI.
public RegisterImageRequest withDescription(java.lang.String description)
A description for your AMI.
description
- A description for your AMI.public void setArchitecture(java.lang.String architecture)
The architecture of the AMI.
Default: For Amazon EBS-backed AMIs, i386
. For instance
store-backed AMIs, the architecture specified in the manifest file.
architecture
- The architecture of the AMI.
Default: For Amazon EBS-backed AMIs, i386
. For
instance store-backed AMIs, the architecture specified in the
manifest file.
ArchitectureValues
public java.lang.String getArchitecture()
The architecture of the AMI.
Default: For Amazon EBS-backed AMIs, i386
. For instance
store-backed AMIs, the architecture specified in the manifest file.
Default: For Amazon EBS-backed AMIs, i386
. For
instance store-backed AMIs, the architecture specified in the
manifest file.
ArchitectureValues
public RegisterImageRequest withArchitecture(java.lang.String architecture)
The architecture of the AMI.
Default: For Amazon EBS-backed AMIs, i386
. For instance
store-backed AMIs, the architecture specified in the manifest file.
architecture
- The architecture of the AMI.
Default: For Amazon EBS-backed AMIs, i386
. For
instance store-backed AMIs, the architecture specified in the
manifest file.
ArchitectureValues
public void setArchitecture(ArchitectureValues architecture)
The architecture of the AMI.
Default: For Amazon EBS-backed AMIs, i386
. For instance
store-backed AMIs, the architecture specified in the manifest file.
architecture
- The architecture of the AMI.
Default: For Amazon EBS-backed AMIs, i386
. For
instance store-backed AMIs, the architecture specified in the
manifest file.
ArchitectureValues
public RegisterImageRequest withArchitecture(ArchitectureValues architecture)
The architecture of the AMI.
Default: For Amazon EBS-backed AMIs, i386
. For instance
store-backed AMIs, the architecture specified in the manifest file.
architecture
- The architecture of the AMI.
Default: For Amazon EBS-backed AMIs, i386
. For
instance store-backed AMIs, the architecture specified in the
manifest file.
ArchitectureValues
public void setKernelId(java.lang.String kernelId)
The ID of the kernel.
kernelId
- The ID of the kernel.public java.lang.String getKernelId()
The ID of the kernel.
public RegisterImageRequest withKernelId(java.lang.String kernelId)
The ID of the kernel.
kernelId
- The ID of the kernel.public void setRamdiskId(java.lang.String ramdiskId)
The ID of the RAM disk.
ramdiskId
- The ID of the RAM disk.public java.lang.String getRamdiskId()
The ID of the RAM disk.
public RegisterImageRequest withRamdiskId(java.lang.String ramdiskId)
The ID of the RAM disk.
ramdiskId
- The ID of the RAM disk.public void setRootDeviceName(java.lang.String rootDeviceName)
The name of the root device (for example, /dev/sda1
, or
/dev/xvda
).
rootDeviceName
- The name of the root device (for example, /dev/sda1
,
or /dev/xvda
).public java.lang.String getRootDeviceName()
The name of the root device (for example, /dev/sda1
, or
/dev/xvda
).
/dev/sda1
,
or /dev/xvda
).public RegisterImageRequest withRootDeviceName(java.lang.String rootDeviceName)
The name of the root device (for example, /dev/sda1
, or
/dev/xvda
).
rootDeviceName
- The name of the root device (for example, /dev/sda1
,
or /dev/xvda
).public java.util.List<BlockDeviceMapping> getBlockDeviceMappings()
One or more block device mapping entries.
public void setBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.
blockDeviceMappings
- One or more block device mapping entries.public RegisterImageRequest withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
One or more block device mapping entries.
NOTE: This method appends the values to the existing list (if
any). Use setBlockDeviceMappings(java.util.Collection)
or
withBlockDeviceMappings(java.util.Collection)
if you want to
override the existing values.
blockDeviceMappings
- One or more block device mapping entries.public RegisterImageRequest withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.
blockDeviceMappings
- One or more block device mapping entries.public void setVirtualizationType(java.lang.String virtualizationType)
The type of virtualization.
Default: paravirtual
virtualizationType
- The type of virtualization.
Default: paravirtual
public java.lang.String getVirtualizationType()
The type of virtualization.
Default: paravirtual
Default: paravirtual
public RegisterImageRequest withVirtualizationType(java.lang.String virtualizationType)
The type of virtualization.
Default: paravirtual
virtualizationType
- The type of virtualization.
Default: paravirtual
public void setSriovNetSupport(java.lang.String sriovNetSupport)
Set to simple
to enable enhanced networking for the AMI and
any instances that you launch from the AMI.
There is no way to disable enhanced networking at this time.
This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from the AMI unreachable.
sriovNetSupport
- Set to simple
to enable enhanced networking for the
AMI and any instances that you launch from the AMI.
There is no way to disable enhanced networking at this time.
This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from the AMI unreachable.
public java.lang.String getSriovNetSupport()
Set to simple
to enable enhanced networking for the AMI and
any instances that you launch from the AMI.
There is no way to disable enhanced networking at this time.
This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from the AMI unreachable.
simple
to enable enhanced networking for the
AMI and any instances that you launch from the AMI.
There is no way to disable enhanced networking at this time.
This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from the AMI unreachable.
public RegisterImageRequest withSriovNetSupport(java.lang.String sriovNetSupport)
Set to simple
to enable enhanced networking for the AMI and
any instances that you launch from the AMI.
There is no way to disable enhanced networking at this time.
This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from the AMI unreachable.
sriovNetSupport
- Set to simple
to enable enhanced networking for the
AMI and any instances that you launch from the AMI.
There is no way to disable enhanced networking at this time.
This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from the AMI unreachable.
public Request<RegisterImageRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<RegisterImageRequest>
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 RegisterImageRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()