@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModifyInstanceAttributeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifyInstanceAttributeRequest>
NOOP
Constructor and Description |
---|
ModifyInstanceAttributeRequest()
Default constructor for ModifyInstanceAttributeRequest object.
|
ModifyInstanceAttributeRequest(String instanceId,
InstanceAttributeName attribute)
Constructs a new ModifyInstanceAttributeRequest object.
|
ModifyInstanceAttributeRequest(String instanceId,
String attribute)
Constructs a new ModifyInstanceAttributeRequest object.
|
Modifier and Type | Method and Description |
---|---|
ModifyInstanceAttributeRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAttribute()
The name of the attribute to modify.
|
List<InstanceBlockDeviceMappingSpecification> |
getBlockDeviceMappings()
Modifies the
DeleteOnTermination attribute for volumes that are currently attached. |
Boolean |
getDisableApiStop()
Indicates whether an instance is enabled for stop protection.
|
Boolean |
getDisableApiTermination()
If the value is
true , you can't terminate the instance using the Amazon EC2 console, CLI, or API;
otherwise, you can. |
Request<ModifyInstanceAttributeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Boolean |
getEbsOptimized()
Specifies whether the instance is optimized for Amazon EBS I/O.
|
Boolean |
getEnaSupport()
Set to
true to enable enhanced networking with ENA for the instance. |
List<String> |
getGroups()
Replaces the security groups of the instance with the specified security groups.
|
String |
getInstanceId()
The ID of the instance.
|
String |
getInstanceInitiatedShutdownBehavior()
Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
|
String |
getInstanceType()
Changes the instance type to the specified value.
|
String |
getKernel()
Changes the instance's kernel to the specified value.
|
String |
getRamdisk()
Changes the instance's RAM disk to the specified value.
|
Boolean |
getSourceDestCheck()
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives.
|
String |
getSriovNetSupport()
Set to
simple to enable enhanced networking with the Intel 82599 Virtual Function interface for the
instance. |
String |
getUserData()
Changes the instance's user data to the specified value.
|
String |
getValue()
A new value for the attribute.
|
int |
hashCode() |
Boolean |
isDisableApiStop()
Indicates whether an instance is enabled for stop protection.
|
Boolean |
isDisableApiTermination()
If the value is
true , you can't terminate the instance using the Amazon EC2 console, CLI, or API;
otherwise, you can. |
Boolean |
isEbsOptimized()
Specifies whether the instance is optimized for Amazon EBS I/O.
|
Boolean |
isEnaSupport()
Set to
true to enable enhanced networking with ENA for the instance. |
Boolean |
isSourceDestCheck()
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives.
|
void |
setAttribute(InstanceAttributeName attribute)
The name of the attribute to modify.
|
void |
setAttribute(String attribute)
The name of the attribute to modify.
|
void |
setBlockDeviceMappings(Collection<InstanceBlockDeviceMappingSpecification> blockDeviceMappings)
Modifies the
DeleteOnTermination attribute for volumes that are currently attached. |
void |
setDisableApiStop(Boolean disableApiStop)
Indicates whether an instance is enabled for stop protection.
|
void |
setDisableApiTermination(Boolean disableApiTermination)
If the value is
true , 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 Amazon EBS I/O.
|
void |
setEnaSupport(Boolean enaSupport)
Set to
true to enable enhanced networking with ENA for the instance. |
void |
setGroups(Collection<String> groups)
Replaces the security groups of the instance with the specified security groups.
|
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 |
setKernel(String kernel)
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)
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives.
|
void |
setSriovNetSupport(String sriovNetSupport)
Set to
simple to enable enhanced networking with the Intel 82599 Virtual Function interface for the
instance. |
void |
setUserData(String userData)
Changes the instance's user data to the specified value.
|
void |
setValue(String value)
A new value for the attribute.
|
String |
toString()
Returns a string representation of this object.
|
ModifyInstanceAttributeRequest |
withAttribute(InstanceAttributeName attribute)
The name of the attribute to modify.
|
ModifyInstanceAttributeRequest |
withAttribute(String attribute)
The name of the attribute to modify.
|
ModifyInstanceAttributeRequest |
withBlockDeviceMappings(Collection<InstanceBlockDeviceMappingSpecification> blockDeviceMappings)
Modifies the
DeleteOnTermination attribute for volumes that are currently attached. |
ModifyInstanceAttributeRequest |
withBlockDeviceMappings(InstanceBlockDeviceMappingSpecification... blockDeviceMappings)
Modifies the
DeleteOnTermination attribute for volumes that are currently attached. |
ModifyInstanceAttributeRequest |
withDisableApiStop(Boolean disableApiStop)
Indicates whether an instance is enabled for stop protection.
|
ModifyInstanceAttributeRequest |
withDisableApiTermination(Boolean disableApiTermination)
If the value is
true , you can't terminate the instance using the Amazon EC2 console, CLI, or API;
otherwise, you can. |
ModifyInstanceAttributeRequest |
withEbsOptimized(Boolean ebsOptimized)
Specifies whether the instance is optimized for Amazon EBS I/O.
|
ModifyInstanceAttributeRequest |
withEnaSupport(Boolean enaSupport)
Set to
true to enable enhanced networking with ENA for the instance. |
ModifyInstanceAttributeRequest |
withGroups(Collection<String> groups)
Replaces the security groups of the instance with the specified security groups.
|
ModifyInstanceAttributeRequest |
withGroups(String... groups)
Replaces the security groups of the instance with the specified security groups.
|
ModifyInstanceAttributeRequest |
withInstanceId(String instanceId)
The ID of the instance.
|
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).
|
ModifyInstanceAttributeRequest |
withInstanceType(String instanceType)
Changes the instance type to the specified value.
|
ModifyInstanceAttributeRequest |
withKernel(String kernel)
Changes the instance's kernel to the specified value.
|
ModifyInstanceAttributeRequest |
withRamdisk(String ramdisk)
Changes the instance's RAM disk to the specified value.
|
ModifyInstanceAttributeRequest |
withSourceDestCheck(Boolean sourceDestCheck)
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives.
|
ModifyInstanceAttributeRequest |
withSriovNetSupport(String sriovNetSupport)
Set to
simple to enable enhanced networking with the Intel 82599 Virtual Function interface for the
instance. |
ModifyInstanceAttributeRequest |
withUserData(String userData)
Changes the instance's user data to the specified value.
|
ModifyInstanceAttributeRequest |
withValue(String value)
A new value for the attribute.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public ModifyInstanceAttributeRequest()
public ModifyInstanceAttributeRequest(String instanceId, String attribute)
instanceId
- The ID of the instance.attribute
- The name of the attribute to modify.
You can modify the following attributes only: disableApiTermination
|
instanceType
| kernel
| ramdisk
|
instanceInitiatedShutdownBehavior
| blockDeviceMapping
| userData
|
sourceDestCheck
| groupSet
| ebsOptimized
|
sriovNetSupport
| enaSupport
| nvmeSupport
|
disableApiStop
| enclaveOptions
public ModifyInstanceAttributeRequest(String instanceId, InstanceAttributeName attribute)
instanceId
- The ID of the instance.attribute
- The name of the attribute to modify.
You can modify the following attributes only: disableApiTermination
|
instanceType
| kernel
| ramdisk
|
instanceInitiatedShutdownBehavior
| blockDeviceMapping
| userData
|
sourceDestCheck
| groupSet
| ebsOptimized
|
sriovNetSupport
| enaSupport
| nvmeSupport
|
disableApiStop
| enclaveOptions
public void setSourceDestCheck(Boolean sourceDestCheck)
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives. If the value is true
, source/destination checks are
enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.
sourceDestCheck
- Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives. If the value is true
, source/destination checks
are enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.public Boolean getSourceDestCheck()
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives. If the value is true
, source/destination checks are
enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.
true
, source/destination checks
are enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.public ModifyInstanceAttributeRequest withSourceDestCheck(Boolean sourceDestCheck)
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives. If the value is true
, source/destination checks are
enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.
sourceDestCheck
- Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives. If the value is true
, source/destination checks
are enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.public Boolean isSourceDestCheck()
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives. If the value is true
, source/destination checks are
enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.
true
, source/destination checks
are enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.public void setAttribute(String attribute)
The name of the attribute to modify.
You can modify the following attributes only: disableApiTermination
| instanceType
|
kernel
| ramdisk
| instanceInitiatedShutdownBehavior
|
blockDeviceMapping
| userData
| sourceDestCheck
| groupSet
|
ebsOptimized
| sriovNetSupport
| enaSupport
| nvmeSupport
|
disableApiStop
| enclaveOptions
attribute
- The name of the attribute to modify.
You can modify the following attributes only: disableApiTermination
|
instanceType
| kernel
| ramdisk
|
instanceInitiatedShutdownBehavior
| blockDeviceMapping
| userData
|
sourceDestCheck
| groupSet
| ebsOptimized
|
sriovNetSupport
| enaSupport
| nvmeSupport
|
disableApiStop
| enclaveOptions
InstanceAttributeName
public String getAttribute()
The name of the attribute to modify.
You can modify the following attributes only: disableApiTermination
| instanceType
|
kernel
| ramdisk
| instanceInitiatedShutdownBehavior
|
blockDeviceMapping
| userData
| sourceDestCheck
| groupSet
|
ebsOptimized
| sriovNetSupport
| enaSupport
| nvmeSupport
|
disableApiStop
| enclaveOptions
You can modify the following attributes only: disableApiTermination
|
instanceType
| kernel
| ramdisk
|
instanceInitiatedShutdownBehavior
| blockDeviceMapping
| userData
| sourceDestCheck
| groupSet
| ebsOptimized
|
sriovNetSupport
| enaSupport
| nvmeSupport
|
disableApiStop
| enclaveOptions
InstanceAttributeName
public ModifyInstanceAttributeRequest withAttribute(String attribute)
The name of the attribute to modify.
You can modify the following attributes only: disableApiTermination
| instanceType
|
kernel
| ramdisk
| instanceInitiatedShutdownBehavior
|
blockDeviceMapping
| userData
| sourceDestCheck
| groupSet
|
ebsOptimized
| sriovNetSupport
| enaSupport
| nvmeSupport
|
disableApiStop
| enclaveOptions
attribute
- The name of the attribute to modify.
You can modify the following attributes only: disableApiTermination
|
instanceType
| kernel
| ramdisk
|
instanceInitiatedShutdownBehavior
| blockDeviceMapping
| userData
|
sourceDestCheck
| groupSet
| ebsOptimized
|
sriovNetSupport
| enaSupport
| nvmeSupport
|
disableApiStop
| enclaveOptions
InstanceAttributeName
public void setAttribute(InstanceAttributeName attribute)
The name of the attribute to modify.
You can modify the following attributes only: disableApiTermination
| instanceType
|
kernel
| ramdisk
| instanceInitiatedShutdownBehavior
|
blockDeviceMapping
| userData
| sourceDestCheck
| groupSet
|
ebsOptimized
| sriovNetSupport
| enaSupport
| nvmeSupport
|
disableApiStop
| enclaveOptions
attribute
- The name of the attribute to modify.
You can modify the following attributes only: disableApiTermination
|
instanceType
| kernel
| ramdisk
|
instanceInitiatedShutdownBehavior
| blockDeviceMapping
| userData
|
sourceDestCheck
| groupSet
| ebsOptimized
|
sriovNetSupport
| enaSupport
| nvmeSupport
|
disableApiStop
| enclaveOptions
InstanceAttributeName
public ModifyInstanceAttributeRequest withAttribute(InstanceAttributeName attribute)
The name of the attribute to modify.
You can modify the following attributes only: disableApiTermination
| instanceType
|
kernel
| ramdisk
| instanceInitiatedShutdownBehavior
|
blockDeviceMapping
| userData
| sourceDestCheck
| groupSet
|
ebsOptimized
| sriovNetSupport
| enaSupport
| nvmeSupport
|
disableApiStop
| enclaveOptions
attribute
- The name of the attribute to modify.
You can modify the following attributes only: disableApiTermination
|
instanceType
| kernel
| ramdisk
|
instanceInitiatedShutdownBehavior
| blockDeviceMapping
| userData
|
sourceDestCheck
| groupSet
| ebsOptimized
|
sriovNetSupport
| enaSupport
| nvmeSupport
|
disableApiStop
| enclaveOptions
InstanceAttributeName
public List<InstanceBlockDeviceMappingSpecification> getBlockDeviceMappings()
Modifies the DeleteOnTermination
attribute for volumes that are currently attached. The volume must
be owned by the caller. If no value is specified for DeleteOnTermination
, the default is
true
and the volume is deleted when the instance is terminated. You can't modify the
DeleteOnTermination
attribute for volumes that are attached to Fargate tasks.
To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Update the block device mapping when launching an instance in the Amazon EC2 User Guide.
DeleteOnTermination
attribute for volumes that are currently attached. The
volume must be owned by the caller. If no value is specified for DeleteOnTermination
, the
default is true
and the volume is deleted when the instance is terminated. You can't modify
the DeleteOnTermination
attribute for volumes that are attached to Fargate tasks.
To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Update the block device mapping when launching an instance in the Amazon EC2 User Guide.
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 for DeleteOnTermination
, the default is
true
and the volume is deleted when the instance is terminated. You can't modify the
DeleteOnTermination
attribute for volumes that are attached to Fargate tasks.
To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Update the block device mapping when launching an instance in the Amazon EC2 User Guide.
blockDeviceMappings
- Modifies the DeleteOnTermination
attribute for volumes that are currently attached. The
volume must be owned by the caller. If no value is specified for DeleteOnTermination
, the
default is true
and the volume is deleted when the instance is terminated. You can't modify
the DeleteOnTermination
attribute for volumes that are attached to Fargate tasks.
To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Update the block device mapping when launching an instance in the Amazon EC2 User Guide.
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 for DeleteOnTermination
, the default is
true
and the volume is deleted when the instance is terminated. You can't modify the
DeleteOnTermination
attribute for volumes that are attached to Fargate tasks.
To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Update the block device mapping when launching an instance in the Amazon EC2 User Guide.
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
- Modifies the DeleteOnTermination
attribute for volumes that are currently attached. The
volume must be owned by the caller. If no value is specified for DeleteOnTermination
, the
default is true
and the volume is deleted when the instance is terminated. You can't modify
the DeleteOnTermination
attribute for volumes that are attached to Fargate tasks.
To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Update the block device mapping when launching an instance in the Amazon EC2 User Guide.
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 for DeleteOnTermination
, the default is
true
and the volume is deleted when the instance is terminated. You can't modify the
DeleteOnTermination
attribute for volumes that are attached to Fargate tasks.
To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Update the block device mapping when launching an instance in the Amazon EC2 User Guide.
blockDeviceMappings
- Modifies the DeleteOnTermination
attribute for volumes that are currently attached. The
volume must be owned by the caller. If no value is specified for DeleteOnTermination
, the
default is true
and the volume is deleted when the instance is terminated. You can't modify
the DeleteOnTermination
attribute for volumes that are attached to Fargate tasks.
To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Update the block device mapping when launching an instance in the Amazon EC2 User Guide.
public void setDisableApiTermination(Boolean disableApiTermination)
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 parameter for Spot Instances.
disableApiTermination
- 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 parameter for Spot Instances.public Boolean 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 parameter for Spot Instances.
true
, you can't terminate the instance using the Amazon EC2 console, CLI, or
API; otherwise, you can. You cannot use this parameter for Spot Instances.public ModifyInstanceAttributeRequest withDisableApiTermination(Boolean disableApiTermination)
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 parameter for Spot Instances.
disableApiTermination
- 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 parameter for Spot Instances.public Boolean 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 parameter for Spot Instances.
true
, you can't terminate the instance using the Amazon EC2 console, CLI, or
API; otherwise, you can. You cannot use this parameter for Spot Instances.public void setEbsOptimized(Boolean ebsOptimized)
Specifies whether the instance is optimized for Amazon 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.
ebsOptimized
- Specifies whether the instance is optimized for Amazon 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.public Boolean getEbsOptimized()
Specifies whether the instance is optimized for Amazon 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.
public ModifyInstanceAttributeRequest withEbsOptimized(Boolean ebsOptimized)
Specifies whether the instance is optimized for Amazon 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.
ebsOptimized
- Specifies whether the instance is optimized for Amazon 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.public Boolean isEbsOptimized()
Specifies whether the instance is optimized for Amazon 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.
public void setEnaSupport(Boolean enaSupport)
Set to true
to enable enhanced networking with ENA for the instance.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
enaSupport
- Set to true
to enable enhanced networking with ENA for the instance.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
public Boolean getEnaSupport()
Set to true
to enable enhanced networking with ENA for the instance.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
true
to enable enhanced networking with ENA for the instance.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
public ModifyInstanceAttributeRequest withEnaSupport(Boolean enaSupport)
Set to true
to enable enhanced networking with ENA for the instance.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
enaSupport
- Set to true
to enable enhanced networking with ENA for the instance.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
public Boolean isEnaSupport()
Set to true
to enable enhanced networking with ENA for the instance.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
true
to enable enhanced networking with ENA for the instance.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
public List<String> getGroups()
Replaces the security groups of the instance with the specified security groups. You must specify the ID of at least one security group, even if it's just the default security group for the VPC.
public void setGroups(Collection<String> groups)
Replaces the security groups of the instance with the specified security groups. You must specify the ID of at least one security group, even if it's just the default security group for the VPC.
groups
- Replaces the security groups of the instance with the specified security groups. You must specify the ID
of at least one security group, even if it's just the default security group for the VPC.public ModifyInstanceAttributeRequest withGroups(String... groups)
Replaces the security groups of the instance with the specified security groups. You must specify the ID of at least one security group, even if it's just the default security group for the VPC.
NOTE: This method appends the values to the existing list (if any). Use
setGroups(java.util.Collection)
or withGroups(java.util.Collection)
if you want to override the
existing values.
groups
- Replaces the security groups of the instance with the specified security groups. You must specify the ID
of at least one security group, even if it's just the default security group for the VPC.public ModifyInstanceAttributeRequest withGroups(Collection<String> groups)
Replaces the security groups of the instance with the specified security groups. You must specify the ID of at least one security group, even if it's just the default security group for the VPC.
groups
- Replaces the security groups of the instance with the specified security groups. You must specify the ID
of at least one security group, even if it's just the default security group for the VPC.public void setInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public String getInstanceId()
The ID of the instance.
public ModifyInstanceAttributeRequest withInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public 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).
instanceInitiatedShutdownBehavior
- Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).public String getInstanceInitiatedShutdownBehavior()
Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
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).
instanceInitiatedShutdownBehavior
- Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).public void setInstanceType(String instanceType)
Changes the instance type to the specified value. For more information, see Instance types in the
Amazon EC2 User Guide. If the instance type is not valid, the error returned is
InvalidInstanceAttributeValue
.
instanceType
- Changes the instance type to the specified value. For more information, see Instance types in the
Amazon EC2 User Guide. If the instance type is not valid, the error returned is
InvalidInstanceAttributeValue
.public String getInstanceType()
Changes the instance type to the specified value. For more information, see Instance types in the
Amazon EC2 User Guide. If the instance type is not valid, the error returned is
InvalidInstanceAttributeValue
.
InvalidInstanceAttributeValue
.public ModifyInstanceAttributeRequest withInstanceType(String instanceType)
Changes the instance type to the specified value. For more information, see Instance types in the
Amazon EC2 User Guide. If the instance type is not valid, the error returned is
InvalidInstanceAttributeValue
.
instanceType
- Changes the instance type to the specified value. For more information, see Instance types in the
Amazon EC2 User Guide. If the instance type is not valid, the error returned is
InvalidInstanceAttributeValue
.public void setKernel(String 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.
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.public String 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.
public ModifyInstanceAttributeRequest withKernel(String 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.
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.public void setRamdisk(String 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.
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.public String 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.
public ModifyInstanceAttributeRequest withRamdisk(String 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.
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.public void setSriovNetSupport(String sriovNetSupport)
Set to simple
to enable enhanced networking with the Intel 82599 Virtual Function interface for the
instance.
There is no way to disable enhanced networking with the Intel 82599 Virtual Function interface at this time.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
sriovNetSupport
- Set to simple
to enable enhanced networking with the Intel 82599 Virtual Function interface
for the instance.
There is no way to disable enhanced networking with the Intel 82599 Virtual Function interface at this time.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
public String getSriovNetSupport()
Set to simple
to enable enhanced networking with the Intel 82599 Virtual Function interface for the
instance.
There is no way to disable enhanced networking with the Intel 82599 Virtual Function interface at this time.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
simple
to enable enhanced networking with the Intel 82599 Virtual Function interface
for the instance.
There is no way to disable enhanced networking with the Intel 82599 Virtual Function interface at this time.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
public ModifyInstanceAttributeRequest withSriovNetSupport(String sriovNetSupport)
Set to simple
to enable enhanced networking with the Intel 82599 Virtual Function interface for the
instance.
There is no way to disable enhanced networking with the Intel 82599 Virtual Function interface at this time.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
sriovNetSupport
- Set to simple
to enable enhanced networking with the Intel 82599 Virtual Function interface
for the instance.
There is no way to disable enhanced networking with the Intel 82599 Virtual Function interface at this time.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
public void setUserData(String userData)
Changes the instance's user data to the specified value. User data must be base64-encoded. Depending on the tool or SDK that you're using, the base64-encoding might be performed for you. For more information, see Work with instance user data.
userData
- Changes the instance's user data to the specified value. User data must be base64-encoded. Depending on
the tool or SDK that you're using, the base64-encoding might be performed for you. For more information,
see Work
with instance user data.public String getUserData()
Changes the instance's user data to the specified value. User data must be base64-encoded. Depending on the tool or SDK that you're using, the base64-encoding might be performed for you. For more information, see Work with instance user data.
public ModifyInstanceAttributeRequest withUserData(String userData)
Changes the instance's user data to the specified value. User data must be base64-encoded. Depending on the tool or SDK that you're using, the base64-encoding might be performed for you. For more information, see Work with instance user data.
userData
- Changes the instance's user data to the specified value. User data must be base64-encoded. Depending on
the tool or SDK that you're using, the base64-encoding might be performed for you. For more information,
see Work
with instance user data.public void setValue(String value)
A new value for the attribute. Use only with the kernel
, ramdisk
, userData
, disableApiTermination
, or instanceInitiatedShutdownBehavior
attribute.
value
- A new value for the attribute. Use only with the kernel
, ramdisk
,
userData
, disableApiTermination
, or
instanceInitiatedShutdownBehavior
attribute.public String getValue()
A new value for the attribute. Use only with the kernel
, ramdisk
, userData
, disableApiTermination
, or instanceInitiatedShutdownBehavior
attribute.
kernel
, ramdisk
,
userData
, disableApiTermination
, or
instanceInitiatedShutdownBehavior
attribute.public ModifyInstanceAttributeRequest withValue(String value)
A new value for the attribute. Use only with the kernel
, ramdisk
, userData
, disableApiTermination
, or instanceInitiatedShutdownBehavior
attribute.
value
- A new value for the attribute. Use only with the kernel
, ramdisk
,
userData
, disableApiTermination
, or
instanceInitiatedShutdownBehavior
attribute.public void setDisableApiStop(Boolean disableApiStop)
Indicates whether an instance is enabled for stop protection. For more information, see Enable stop protection for your instance.
disableApiStop
- Indicates whether an instance is enabled for stop protection. For more information, see Enable stop protection
for your instance.
public Boolean getDisableApiStop()
Indicates whether an instance is enabled for stop protection. For more information, see Enable stop protection for your instance.
public ModifyInstanceAttributeRequest withDisableApiStop(Boolean disableApiStop)
Indicates whether an instance is enabled for stop protection. For more information, see Enable stop protection for your instance.
disableApiStop
- Indicates whether an instance is enabled for stop protection. For more information, see Enable stop protection
for your instance.
public Boolean isDisableApiStop()
Indicates whether an instance is enabled for stop protection. For more information, see Enable stop protection for your instance.
public Request<ModifyInstanceAttributeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ModifyInstanceAttributeRequest>
public String toString()
toString
in class Object
Object.toString()
public ModifyInstanceAttributeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()