Class RegisterImageRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<RegisterImageRequest>
,Serializable
,Cloneable
Contains the parameters for RegisterImage.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for RegisterImageRequest object.RegisterImageRequest
(String imageLocation) Constructs a new RegisterImageRequest object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The architecture of the AMI.One or more block device mapping entries.A description for your AMI.This method is intended for internal use only.The full path to your AMI manifest in Amazon S3 storage.The ID of the kernel.getName()
A name for your AMI.The ID of the RAM disk.The name of the root device (for example,/dev/sda1
, or/dev/xvda
).Set tosimple
to enable enhanced networking for the AMI and any instances that you launch from the AMI.The type of virtualization.int
hashCode()
void
setArchitecture
(ArchitectureValues architecture) The architecture of the AMI.void
setArchitecture
(String architecture) The architecture of the AMI.void
setBlockDeviceMappings
(Collection<BlockDeviceMapping> blockDeviceMappings) One or more block device mapping entries.void
setDescription
(String description) A description for your AMI.void
setImageLocation
(String imageLocation) The full path to your AMI manifest in Amazon S3 storage.void
setKernelId
(String kernelId) The ID of the kernel.void
A name for your AMI.void
setRamdiskId
(String ramdiskId) The ID of the RAM disk.void
setRootDeviceName
(String rootDeviceName) The name of the root device (for example,/dev/sda1
, or/dev/xvda
).void
setSriovNetSupport
(String sriovNetSupport) Set tosimple
to enable enhanced networking for the AMI and any instances that you launch from the AMI.void
setVirtualizationType
(String virtualizationType) The type of virtualization.toString()
Returns a string representation of this object; useful for testing and debugging.withArchitecture
(ArchitectureValues architecture) The architecture of the AMI.withArchitecture
(String architecture) The architecture of the AMI.withBlockDeviceMappings
(BlockDeviceMapping... blockDeviceMappings) One or more block device mapping entries.withBlockDeviceMappings
(Collection<BlockDeviceMapping> blockDeviceMappings) One or more block device mapping entries.withDescription
(String description) A description for your AMI.withImageLocation
(String imageLocation) The full path to your AMI manifest in Amazon S3 storage.withKernelId
(String kernelId) The ID of the kernel.A name for your AMI.withRamdiskId
(String ramdiskId) The ID of the RAM disk.withRootDeviceName
(String rootDeviceName) The name of the root device (for example,/dev/sda1
, or/dev/xvda
).withSriovNetSupport
(String sriovNetSupport) Set tosimple
to enable enhanced networking for the AMI and any instances that you launch from the AMI.withVirtualizationType
(String virtualizationType) The type of virtualization.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
Constructor Details
-
RegisterImageRequest
public RegisterImageRequest()Default constructor for RegisterImageRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
RegisterImageRequest
Constructs a new RegisterImageRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
imageLocation
- The full path to your AMI manifest in Amazon S3 storage.
-
-
Method Details
-
setImageLocation
The full path to your AMI manifest in Amazon S3 storage.
- Parameters:
imageLocation
- The full path to your AMI manifest in Amazon S3 storage.
-
getImageLocation
The full path to your AMI manifest in Amazon S3 storage.
- Returns:
- The full path to your AMI manifest in Amazon S3 storage.
-
withImageLocation
The full path to your AMI manifest in Amazon S3 storage.
- Parameters:
imageLocation
- The full path to your AMI manifest in Amazon S3 storage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
A name for your AMI.
Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)
- Parameters:
name
- A name for your AMI.Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)
-
getName
A name for your AMI.
Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)
- Returns:
- A name for your AMI.
Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)
-
withName
A name for your AMI.
Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)
- Parameters:
name
- A name for your AMI.Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
A description for your AMI.
- Parameters:
description
- A description for your AMI.
-
getDescription
A description for your AMI.
- Returns:
- A description for your AMI.
-
withDescription
A description for your AMI.
- Parameters:
description
- A description for your AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setArchitecture
The architecture of the AMI.
Default: For Amazon EBS-backed AMIs,
i386
. For instance store-backed AMIs, the architecture specified in the manifest file.- Parameters:
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.- See Also:
-
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.- Returns:
- The architecture of the AMI.
Default: For Amazon EBS-backed AMIs,
i386
. For instance store-backed AMIs, the architecture specified in the manifest file. - See Also:
-
withArchitecture
The architecture of the AMI.
Default: For Amazon EBS-backed AMIs,
i386
. For instance store-backed AMIs, the architecture specified in the manifest file.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setArchitecture
The architecture of the AMI.
Default: For Amazon EBS-backed AMIs,
i386
. For instance store-backed AMIs, the architecture specified in the manifest file.- Parameters:
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.- See Also:
-
withArchitecture
The architecture of the AMI.
Default: For Amazon EBS-backed AMIs,
i386
. For instance store-backed AMIs, the architecture specified in the manifest file.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setKernelId
The ID of the kernel.
- Parameters:
kernelId
- The ID of the kernel.
-
getKernelId
The ID of the kernel.
- Returns:
- The ID of the kernel.
-
withKernelId
The ID of the kernel.
- Parameters:
kernelId
- The ID of the kernel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRamdiskId
The ID of the RAM disk.
- Parameters:
ramdiskId
- The ID of the RAM disk.
-
getRamdiskId
The ID of the RAM disk.
- Returns:
- The ID of the RAM disk.
-
withRamdiskId
The ID of the RAM disk.
- Parameters:
ramdiskId
- The ID of the RAM disk.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRootDeviceName
The name of the root device (for example,
/dev/sda1
, or/dev/xvda
).- Parameters:
rootDeviceName
- The name of the root device (for example,/dev/sda1
, or/dev/xvda
).
-
getRootDeviceName
The name of the root device (for example,
/dev/sda1
, or/dev/xvda
).- Returns:
- The name of the root device (for example,
/dev/sda1
, or/dev/xvda
).
-
withRootDeviceName
The name of the root device (for example,
/dev/sda1
, or/dev/xvda
).- Parameters:
rootDeviceName
- The name of the root device (for example,/dev/sda1
, or/dev/xvda
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getBlockDeviceMappings
One or more block device mapping entries.
- Returns:
- One or more block device mapping entries.
-
setBlockDeviceMappings
One or more block device mapping entries.
- Parameters:
blockDeviceMappings
- One or more block device mapping entries.
-
withBlockDeviceMappings
One or more block device mapping entries.
NOTE: This method appends the values to the existing list (if any). Use
setBlockDeviceMappings(java.util.Collection)
orwithBlockDeviceMappings(java.util.Collection)
if you want to override the existing values.- Parameters:
blockDeviceMappings
- One or more block device mapping entries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withBlockDeviceMappings
public RegisterImageRequest withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings) One or more block device mapping entries.
- Parameters:
blockDeviceMappings
- One or more block device mapping entries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVirtualizationType
The type of virtualization.
Default:
paravirtual
- Parameters:
virtualizationType
- The type of virtualization.Default:
paravirtual
-
getVirtualizationType
The type of virtualization.
Default:
paravirtual
- Returns:
- The type of virtualization.
Default:
paravirtual
-
withVirtualizationType
The type of virtualization.
Default:
paravirtual
- Parameters:
virtualizationType
- The type of virtualization.Default:
paravirtual
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSriovNetSupport
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.
- Parameters:
sriovNetSupport
- Set tosimple
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.
-
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.
- Returns:
- 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.
-
withSriovNetSupport
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.
- Parameters:
sriovNetSupport
- Set tosimple
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<RegisterImageRequest>
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-