Class ModifyInstanceAttributeRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<ModifyInstanceAttributeRequest>
,Serializable
,Cloneable
Contains the parameters for ModifyInstanceAttribute.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for ModifyInstanceAttributeRequest object.ModifyInstanceAttributeRequest
(String instanceId, InstanceAttributeName attribute) Constructs a new ModifyInstanceAttributeRequest object.ModifyInstanceAttributeRequest
(String instanceId, String attribute) Constructs a new ModifyInstanceAttributeRequest object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The name of the attribute.Modifies theDeleteOnTermination
attribute for volumes that are currently attached.If the value istrue
, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.This method is intended for internal use only.Specifies whether the instance is optimized for EBS I/O.[EC2-VPC] Changes the security groups of the instance.The ID of the instance.Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).Changes the instance type to the specified value.Changes the instance's kernel to the specified value.Changes the instance's RAM disk to the specified value.Specifies whether source/destination checking is enabled.Set tosimple
to enable enhanced networking for the instance.Changes the instance's user data to the specified base64-encoded value.getValue()
A new value for the attribute.int
hashCode()
If the value istrue
, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.Specifies whether the instance is optimized for EBS I/O.Specifies whether source/destination checking is enabled.void
setAttribute
(InstanceAttributeName attribute) The name of the attribute.void
setAttribute
(String attribute) The name of the attribute.void
setBlockDeviceMappings
(Collection<InstanceBlockDeviceMappingSpecification> blockDeviceMappings) Modifies theDeleteOnTermination
attribute for volumes that are currently attached.void
setDisableApiTermination
(Boolean disableApiTermination) If the value istrue
, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.void
setEbsOptimized
(Boolean ebsOptimized) Specifies whether the instance is optimized for EBS I/O.void
setGroups
(Collection<String> groups) [EC2-VPC] Changes the security groups of the instance.void
setInstanceId
(String instanceId) The ID of the instance.void
setInstanceInitiatedShutdownBehavior
(String instanceInitiatedShutdownBehavior) Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).void
setInstanceType
(String instanceType) Changes the instance type to the specified value.void
Changes the instance's kernel to the specified value.void
setRamdisk
(String ramdisk) Changes the instance's RAM disk to the specified value.void
setSourceDestCheck
(Boolean sourceDestCheck) Specifies whether source/destination checking is enabled.void
setSriovNetSupport
(String sriovNetSupport) Set tosimple
to enable enhanced networking for the instance.void
setUserData
(String userData) Changes the instance's user data to the specified base64-encoded value.void
A new value for the attribute.toString()
Returns a string representation of this object; useful for testing and debugging.withAttribute
(InstanceAttributeName attribute) The name of the attribute.withAttribute
(String attribute) The name of the attribute.withBlockDeviceMappings
(InstanceBlockDeviceMappingSpecification... blockDeviceMappings) Modifies theDeleteOnTermination
attribute for volumes that are currently attached.withBlockDeviceMappings
(Collection<InstanceBlockDeviceMappingSpecification> blockDeviceMappings) Modifies theDeleteOnTermination
attribute for volumes that are currently attached.withDisableApiTermination
(Boolean disableApiTermination) If the value istrue
, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.withEbsOptimized
(Boolean ebsOptimized) Specifies whether the instance is optimized for EBS I/O.withGroups
(String... groups) [EC2-VPC] Changes the security groups of the instance.withGroups
(Collection<String> groups) [EC2-VPC] Changes the security groups of the instance.withInstanceId
(String instanceId) The ID of the instance.withInstanceInitiatedShutdownBehavior
(String instanceInitiatedShutdownBehavior) Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).withInstanceType
(String instanceType) Changes the instance type to the specified value.withKernel
(String kernel) Changes the instance's kernel to the specified value.withRamdisk
(String ramdisk) Changes the instance's RAM disk to the specified value.withSourceDestCheck
(Boolean sourceDestCheck) Specifies whether source/destination checking is enabled.withSriovNetSupport
(String sriovNetSupport) Set tosimple
to enable enhanced networking for the instance.withUserData
(String userData) Changes the instance's user data to the specified base64-encoded value.A new value for the attribute.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
-
ModifyInstanceAttributeRequest
public ModifyInstanceAttributeRequest()Default constructor for ModifyInstanceAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
ModifyInstanceAttributeRequest
Constructs a new ModifyInstanceAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
instanceId
- The ID of the instance.attribute
- The name of the attribute.
-
ModifyInstanceAttributeRequest
Constructs a new ModifyInstanceAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
instanceId
- The ID of the instance.attribute
- The name of the attribute.
-
-
Method Details
-
setInstanceId
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.
-
getInstanceId
The ID of the instance.
- Returns:
- The ID of the instance.
-
withInstanceId
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAttribute
The name of the attribute.
- Parameters:
attribute
- The name of the attribute.- See Also:
-
getAttribute
The name of the attribute.
- Returns:
- The name of the attribute.
- See Also:
-
withAttribute
The name of the attribute.
- Parameters:
attribute
- The name of the attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setAttribute
The name of the attribute.
- Parameters:
attribute
- The name of the attribute.- See Also:
-
withAttribute
The name of the attribute.
- Parameters:
attribute
- The name of the attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setValue
A new value for the attribute. Use only with the
kernel
,ramdisk
,userData
,disableApiTermination
, orinstanceInitiatedShutdownBehavior
attribute.- Parameters:
value
- A new value for the attribute. Use only with thekernel
,ramdisk
,userData
,disableApiTermination
, orinstanceInitiatedShutdownBehavior
attribute.
-
getValue
A new value for the attribute. Use only with the
kernel
,ramdisk
,userData
,disableApiTermination
, orinstanceInitiatedShutdownBehavior
attribute.- Returns:
- A new value for the attribute. Use only with the
kernel
,ramdisk
,userData
,disableApiTermination
, orinstanceInitiatedShutdownBehavior
attribute.
-
withValue
A new value for the attribute. Use only with the
kernel
,ramdisk
,userData
,disableApiTermination
, orinstanceInitiatedShutdownBehavior
attribute.- Parameters:
value
- A new value for the attribute. Use only with thekernel
,ramdisk
,userData
,disableApiTermination
, orinstanceInitiatedShutdownBehavior
attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getBlockDeviceMappings
Modifies the
DeleteOnTermination
attribute for volumes that are currently attached. The volume must be owned by the caller. If no value is specified forDeleteOnTermination
, the default istrue
and the volume is deleted when the instance is terminated.To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Updating the Block Device Mapping when Launching an Instance in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- Modifies the
DeleteOnTermination
attribute for volumes that are currently attached. The volume must be owned by the caller. If no value is specified forDeleteOnTermination
, the default istrue
and the volume is deleted when the instance is terminated.To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Updating the Block Device Mapping when Launching an Instance in the Amazon Elastic Compute Cloud User Guide.
-
setBlockDeviceMappings
public void setBlockDeviceMappings(Collection<InstanceBlockDeviceMappingSpecification> blockDeviceMappings) Modifies the
DeleteOnTermination
attribute for volumes that are currently attached. The volume must be owned by the caller. If no value is specified forDeleteOnTermination
, the default istrue
and the volume is deleted when the instance is terminated.To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Updating the Block Device Mapping when Launching an Instance in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
blockDeviceMappings
- Modifies theDeleteOnTermination
attribute for volumes that are currently attached. The volume must be owned by the caller. If no value is specified forDeleteOnTermination
, the default istrue
and the volume is deleted when the instance is terminated.To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Updating the Block Device Mapping when Launching an Instance in the Amazon Elastic Compute Cloud User Guide.
-
withBlockDeviceMappings
public ModifyInstanceAttributeRequest withBlockDeviceMappings(InstanceBlockDeviceMappingSpecification... blockDeviceMappings) Modifies the
DeleteOnTermination
attribute for volumes that are currently attached. The volume must be owned by the caller. If no value is specified forDeleteOnTermination
, the default istrue
and the volume is deleted when the instance is terminated.To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Updating the Block Device Mapping when Launching an Instance in the Amazon Elastic Compute Cloud User Guide.
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
- Modifies theDeleteOnTermination
attribute for volumes that are currently attached. The volume must be owned by the caller. If no value is specified forDeleteOnTermination
, the default istrue
and the volume is deleted when the instance is terminated.To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Updating the Block Device Mapping when Launching an Instance in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withBlockDeviceMappings
public ModifyInstanceAttributeRequest withBlockDeviceMappings(Collection<InstanceBlockDeviceMappingSpecification> blockDeviceMappings) Modifies the
DeleteOnTermination
attribute for volumes that are currently attached. The volume must be owned by the caller. If no value is specified forDeleteOnTermination
, the default istrue
and the volume is deleted when the instance is terminated.To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Updating the Block Device Mapping when Launching an Instance in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
blockDeviceMappings
- Modifies theDeleteOnTermination
attribute for volumes that are currently attached. The volume must be owned by the caller. If no value is specified forDeleteOnTermination
, the default istrue
and the volume is deleted when the instance is terminated.To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Updating the Block Device Mapping when Launching an Instance in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSourceDestCheck
Specifies whether source/destination checking is enabled. A value of
true
means that checking is enabled, andfalse
means checking is disabled. This value must befalse
for a NAT instance to perform NAT.- Parameters:
sourceDestCheck
- Specifies whether source/destination checking is enabled. A value oftrue
means that checking is enabled, andfalse
means checking is disabled. This value must befalse
for a NAT instance to perform NAT.
-
getSourceDestCheck
Specifies whether source/destination checking is enabled. A value of
true
means that checking is enabled, andfalse
means checking is disabled. This value must befalse
for a NAT instance to perform NAT.- Returns:
- Specifies whether source/destination checking is enabled. A value
of
true
means that checking is enabled, andfalse
means checking is disabled. This value must befalse
for a NAT instance to perform NAT.
-
withSourceDestCheck
Specifies whether source/destination checking is enabled. A value of
true
means that checking is enabled, andfalse
means checking is disabled. This value must befalse
for a NAT instance to perform NAT.- Parameters:
sourceDestCheck
- Specifies whether source/destination checking is enabled. A value oftrue
means that checking is enabled, andfalse
means checking is disabled. This value must befalse
for a NAT instance to perform NAT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isSourceDestCheck
Specifies whether source/destination checking is enabled. A value of
true
means that checking is enabled, andfalse
means checking is disabled. This value must befalse
for a NAT instance to perform NAT.- Returns:
- Specifies whether source/destination checking is enabled. A value
of
true
means that checking is enabled, andfalse
means checking is disabled. This value must befalse
for a NAT instance to perform NAT.
-
setDisableApiTermination
If the value is
true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. You cannot use this paramater for Spot Instances.- Parameters:
disableApiTermination
- If the value istrue
, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. You cannot use this paramater for Spot Instances.
-
getDisableApiTermination
If the value is
true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. You cannot use this paramater for Spot Instances.- Returns:
- If the value is
true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. You cannot use this paramater for Spot Instances.
-
withDisableApiTermination
If the value is
true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. You cannot use this paramater for Spot Instances.- Parameters:
disableApiTermination
- If the value istrue
, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. You cannot use this paramater for Spot Instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDisableApiTermination
If the value is
true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. You cannot use this paramater for Spot Instances.- Returns:
- If the value is
true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. You cannot use this paramater for Spot Instances.
-
setInstanceType
Changes the instance type to the specified value. For more information, see Instance Types. If the instance type is not valid, the error returned is
InvalidInstanceAttributeValue
.- Parameters:
instanceType
- Changes the instance type to the specified value. For more information, see Instance Types. If the instance type is not valid, the error returned isInvalidInstanceAttributeValue
.
-
getInstanceType
Changes the instance type to the specified value. For more information, see Instance Types. If the instance type is not valid, the error returned is
InvalidInstanceAttributeValue
.- Returns:
- Changes the instance type to the specified value. For more
information, see Instance Types. If the instance type is not valid, the error
returned is
InvalidInstanceAttributeValue
.
-
withInstanceType
Changes the instance type to the specified value. For more information, see Instance Types. If the instance type is not valid, the error returned is
InvalidInstanceAttributeValue
.- Parameters:
instanceType
- Changes the instance type to the specified value. For more information, see Instance Types. If the instance type is not valid, the error returned isInvalidInstanceAttributeValue
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setKernel
Changes the instance's kernel to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.
- Parameters:
kernel
- Changes the instance's kernel to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.
-
getKernel
Changes the instance's kernel to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.
- Returns:
- Changes the instance's kernel to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.
-
withKernel
Changes the instance's kernel to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.
- Parameters:
kernel
- Changes the instance's kernel to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRamdisk
Changes the instance's RAM disk to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.
- Parameters:
ramdisk
- Changes the instance's RAM disk to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.
-
getRamdisk
Changes the instance's RAM disk to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.
- Returns:
- Changes the instance's RAM disk to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.
-
withRamdisk
Changes the instance's RAM disk to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.
- Parameters:
ramdisk
- Changes the instance's RAM disk to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUserData
Changes the instance's user data to the specified base64-encoded value. For command line tools, base64 encoding is performed for you.
- Parameters:
userData
- Changes the instance's user data to the specified base64-encoded value. For command line tools, base64 encoding is performed for you.
-
getUserData
Changes the instance's user data to the specified base64-encoded value. For command line tools, base64 encoding is performed for you.
- Returns:
- Changes the instance's user data to the specified base64-encoded value. For command line tools, base64 encoding is performed for you.
-
withUserData
Changes the instance's user data to the specified base64-encoded value. For command line tools, base64 encoding is performed for you.
- Parameters:
userData
- Changes the instance's user data to the specified base64-encoded value. For command line tools, base64 encoding is performed for you.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceInitiatedShutdownBehavior
Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
- Parameters:
instanceInitiatedShutdownBehavior
- Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
-
getInstanceInitiatedShutdownBehavior
Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
- Returns:
- Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
-
withInstanceInitiatedShutdownBehavior
public ModifyInstanceAttributeRequest withInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior) Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
- Parameters:
instanceInitiatedShutdownBehavior
- Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getGroups
[EC2-VPC] Changes the security groups of the instance. You must specify at least one security group, even if it's just the default security group for the VPC. You must specify the security group ID, not the security group name.
- Returns:
- [EC2-VPC] Changes the security groups of the instance. You must specify at least one security group, even if it's just the default security group for the VPC. You must specify the security group ID, not the security group name.
-
setGroups
[EC2-VPC] Changes the security groups of the instance. You must specify at least one security group, even if it's just the default security group for the VPC. You must specify the security group ID, not the security group name.
- Parameters:
groups
- [EC2-VPC] Changes the security groups of the instance. You must specify at least one security group, even if it's just the default security group for the VPC. You must specify the security group ID, not the security group name.
-
withGroups
[EC2-VPC] Changes the security groups of the instance. You must specify at least one security group, even if it's just the default security group for the VPC. You must specify the security group ID, not the security group name.
NOTE: This method appends the values to the existing list (if any). Use
setGroups(java.util.Collection)
orwithGroups(java.util.Collection)
if you want to override the existing values.- Parameters:
groups
- [EC2-VPC] Changes the security groups of the instance. You must specify at least one security group, even if it's just the default security group for the VPC. You must specify the security group ID, not the security group name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withGroups
[EC2-VPC] Changes the security groups of the instance. You must specify at least one security group, even if it's just the default security group for the VPC. You must specify the security group ID, not the security group name.
- Parameters:
groups
- [EC2-VPC] Changes the security groups of the instance. You must specify at least one security group, even if it's just the default security group for the VPC. You must specify the security group ID, not the security group name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEbsOptimized
Specifies whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
- Parameters:
ebsOptimized
- Specifies whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
-
getEbsOptimized
Specifies whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
- Returns:
- Specifies whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
-
withEbsOptimized
Specifies whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
- Parameters:
ebsOptimized
- Specifies whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEbsOptimized
Specifies whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
- Returns:
- Specifies whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
-
setSriovNetSupport
Set to
simple
to enable enhanced networking for the instance.There is no way to disable enhanced networking at this time.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
- Parameters:
sriovNetSupport
- Set tosimple
to enable enhanced networking for the instance.There is no way to disable enhanced networking at this time.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
-
getSriovNetSupport
Set to
simple
to enable enhanced networking for the instance.There is no way to disable enhanced networking at this time.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
- Returns:
- Set to
simple
to enable enhanced networking for the instance.There is no way to disable enhanced networking at this time.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
-
withSriovNetSupport
Set to
simple
to enable enhanced networking for the instance.There is no way to disable enhanced networking at this time.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
- Parameters:
sriovNetSupport
- Set tosimple
to enable enhanced networking for the instance.There is no way to disable enhanced networking at this time.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it 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<ModifyInstanceAttributeRequest>
-
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:
-