@Generated(value="software.amazon.awssdk:codegen") public final class DescribeInstanceAttributeResponse extends Ec2Response implements ToCopyableBuilder<DescribeInstanceAttributeResponse.Builder,DescribeInstanceAttributeResponse>
Describes an instance attribute.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DescribeInstanceAttributeResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<InstanceBlockDeviceMapping> |
blockDeviceMappings()
The block device mapping of the instance.
|
static DescribeInstanceAttributeResponse.Builder |
builder() |
AttributeBooleanValue |
disableApiTermination()
If the value is
true, you can't terminate the instance through the Amazon EC2 console, CLI, or API;
otherwise, you can. |
AttributeBooleanValue |
ebsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
|
AttributeBooleanValue |
enaSupport()
Indicates whether enhanced networking with ENA is enabled.
|
EnclaveOptions |
enclaveOptions()
To enable the instance for AWS Nitro Enclaves, set this parameter to
true; otherwise, set it to
false. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
List<GroupIdentifier> |
groups()
The security groups associated with the instance.
|
boolean |
hasBlockDeviceMappings()
Returns true if the BlockDeviceMappings property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasGroups()
Returns true if the Groups property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasProductCodes()
Returns true if the ProductCodes property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
String |
instanceId()
The ID of the instance.
|
AttributeValue |
instanceInitiatedShutdownBehavior()
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
|
AttributeValue |
instanceType()
The instance type.
|
AttributeValue |
kernelId()
The kernel ID.
|
List<ProductCode> |
productCodes()
A list of product codes.
|
AttributeValue |
ramdiskId()
The RAM disk ID.
|
AttributeValue |
rootDeviceName()
The device name of the root device volume (for example,
/dev/sda1). |
List<SdkField<?>> |
sdkFields() |
static Class<? extends DescribeInstanceAttributeResponse.Builder> |
serializableBuilderClass() |
AttributeBooleanValue |
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.
|
AttributeValue |
sriovNetSupport()
Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
|
DescribeInstanceAttributeResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
AttributeValue |
userData()
The user data.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasGroups()
public final List<GroupIdentifier> groups()
The security groups associated with the instance.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasGroups() to see if a value was sent in this field.
public final boolean hasBlockDeviceMappings()
public final List<InstanceBlockDeviceMapping> blockDeviceMappings()
The block device mapping of the instance.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasBlockDeviceMappings() to see if a value was sent in this field.
public final AttributeBooleanValue disableApiTermination()
If the value is true, you can't terminate the instance through the Amazon EC2 console, CLI, or API;
otherwise, you can.
true, you can't terminate the instance through the Amazon EC2 console, CLI,
or API; otherwise, you can.public final AttributeBooleanValue enaSupport()
Indicates whether enhanced networking with ENA is enabled.
public final EnclaveOptions enclaveOptions()
To enable the instance for AWS Nitro Enclaves, set this parameter to true; otherwise, set it to
false.
true; otherwise, set it
to false.public final AttributeBooleanValue ebsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
public final String instanceId()
The ID of the instance.
public final AttributeValue instanceInitiatedShutdownBehavior()
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
public final AttributeValue instanceType()
The instance type.
public final AttributeValue kernelId()
The kernel ID.
public final boolean hasProductCodes()
public final List<ProductCode> productCodes()
A list of product codes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasProductCodes() to see if a value was sent in this field.
public final AttributeValue ramdiskId()
The RAM disk ID.
public final AttributeValue rootDeviceName()
The device name of the root device volume (for example, /dev/sda1).
/dev/sda1).public final AttributeBooleanValue 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.
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 final AttributeValue sriovNetSupport()
Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
public final AttributeValue userData()
The user data.
public DescribeInstanceAttributeResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DescribeInstanceAttributeResponse.Builder,DescribeInstanceAttributeResponse>toBuilder in class AwsResponsepublic static DescribeInstanceAttributeResponse.Builder builder()
public static Class<? extends DescribeInstanceAttributeResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2021. All rights reserved.