@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 Amazon Web Services 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()
For responses, this returns true if the service returned a value for the BlockDeviceMappings property.
|
boolean |
hasGroups()
For responses, this returns true if the service returned a value for the Groups property.
|
int |
hashCode() |
boolean |
hasProductCodes()
For responses, this returns true if the service returned a value for the ProductCodes property.
|
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()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasGroups() method.
public final boolean hasBlockDeviceMappings()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasBlockDeviceMappings() method.
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 Amazon Web Services 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()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<ProductCode> productCodes()
A list of product codes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasProductCodes() method.
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 © 2022. All rights reserved.