@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.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkResponse . |
List<GroupIdentifier> |
groups()
The security groups associated with the instance.
|
int |
hashCode() |
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()
Indicates whether source/destination checking is enabled.
|
AttributeValue |
sriovNetSupport()
Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
|
DescribeInstanceAttributeResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
AttributeValue |
userData()
The user data.
|
responseMetadata
sdkHttpResponse
copy
public List<GroupIdentifier> groups()
The security groups associated with the instance.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<InstanceBlockDeviceMapping> blockDeviceMappings()
The block device mapping of the instance.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public 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 AttributeBooleanValue enaSupport()
Indicates whether enhanced networking with ENA is enabled.
public AttributeBooleanValue ebsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
public String instanceId()
The ID of the instance.
public 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 AttributeValue instanceType()
The instance type.
public AttributeValue kernelId()
The kernel ID.
public List<ProductCode> productCodes()
A list of product codes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public AttributeValue ramdiskId()
The RAM disk ID.
public AttributeValue rootDeviceName()
The device name of the root device volume (for example, /dev/sda1
).
/dev/sda1
).public AttributeBooleanValue sourceDestCheck()
Indicates whether source/destination checking is enabled. A value of true
means that checking is
enabled, and false
means that checking is disabled. This value must be false
for a NAT
instance to perform NAT.
true
means that
checking is enabled, and false
means that checking is disabled. This value must be
false
for a NAT instance to perform NAT.public AttributeValue sriovNetSupport()
Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
public AttributeValue userData()
The user data.
public DescribeInstanceAttributeResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<DescribeInstanceAttributeResponse.Builder,DescribeInstanceAttributeResponse>
toBuilder
in class AwsResponse
public static DescribeInstanceAttributeResponse.Builder builder()
public static Class<? extends DescribeInstanceAttributeResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponse
SdkResponse
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkResponse
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.