Class Instance
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Instance.Builder,
Instance>
Describes an instance.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Integer
The AMI launch index, which can be used to find this instance in the launch group.final ArchitectureValues
The architecture of the image.final String
The architecture of the image.final List
<InstanceBlockDeviceMapping> Any block device mapping entries for the instance.final BootModeValues
bootMode()
The boot mode that was specified by the AMI.final String
The boot mode that was specified by the AMI.static Instance.Builder
builder()
final String
The ID of the Capacity Reservation.Information about the Capacity Reservation targeting option.final String
The idempotency token you provided when you launched the instance, if applicable.final CpuOptions
The CPU options for the instance.final InstanceBootModeValues
The boot mode that is used to boot the instance at launch or start.final String
The boot mode that is used to boot the instance at launch or start.final Boolean
Indicates whether the instance is optimized for Amazon EBS I/O.final List
<ElasticGpuAssociation> Deprecated.The elastic inference accelerator associated with the instance.final Boolean
Specifies whether enhanced networking with ENA is enabled.final EnclaveOptions
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final boolean
For responses, this returns true if the service returned a value for the BlockDeviceMappings property.final boolean
For responses, this returns true if the service returned a value for the ElasticGpuAssociations property.final boolean
For responses, this returns true if the service returned a value for the ElasticInferenceAcceleratorAssociations property.final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the Licenses property.final boolean
For responses, this returns true if the service returned a value for the NetworkInterfaces property.final boolean
For responses, this returns true if the service returned a value for the ProductCodes property.final boolean
For responses, this returns true if the service returned a value for the SecurityGroups property.final boolean
hasTags()
For responses, this returns true if the service returned a value for the Tags property.final HibernationOptions
Indicates whether the instance is enabled for hibernation.final HypervisorType
The hypervisor type of the instance.final String
The hypervisor type of the instance.final IamInstanceProfile
The IAM instance profile associated with the instance, if applicable.final String
imageId()
The ID of the AMI used to launch the instance.final String
The ID of the instance.final InstanceLifecycleType
Indicates whether this is a Spot Instance or a Scheduled Instance.final String
Indicates whether this is a Spot Instance or a Scheduled Instance.final InstanceType
The instance type.final String
The instance type.final String
The IPv6 address assigned to the instance.final String
kernelId()
The kernel associated with this instance, if applicable.final String
keyName()
The name of the key pair, if this instance was launched with an associated key pair.final Instant
The time the instance was launched.final List
<LicenseConfiguration> licenses()
The license configurations for the instance.Provides information on the recovery and maintenance options of your instance.The metadata options for the instance.final Monitoring
The monitoring for the instance.final List
<InstanceNetworkInterface> The network interfaces for the instance.final String
The Amazon Resource Name (ARN) of the Outpost.final Placement
The location where the instance launched, if applicable.final PlatformValues
platform()
The platform.final String
The platform.final String
The platform details value for the instance.final String
[IPv4 only] The private DNS hostname name assigned to the instance.The options for the instance hostname.final String
The private IPv4 address assigned to the instance.final List
<ProductCode> The product codes attached to this instance, if applicable.final String
[IPv4 only] The public DNS name assigned to the instance.final String
The public IPv4 address, or the Carrier IP address assigned to the instance, if applicable.final String
The RAM disk associated with this instance, if applicable.final String
The device name of the root device volume (for example,/dev/sda1
).final DeviceType
The root device type used by the AMI.final String
The root device type used by the AMI.final List
<GroupIdentifier> The security groups for the instance.static Class
<? extends Instance.Builder> final Boolean
Indicates whether source/destination checking is enabled.final String
If the request is a Spot Instance request, the ID of the request.final String
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.final InstanceState
state()
The current state of the instance.final StateReason
The reason for the most recent state transition.final String
The reason for the most recent state transition.final String
subnetId()
The ID of the subnet in which the instance is running.tags()
Any tags assigned to the instance.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final String
If the instance is configured for NitroTPM support, the value isv2.0
.final String
The usage operation value for the instance.final Instant
The time that the usage operation was last updated.final VirtualizationType
The virtualization type of the instance.final String
The virtualization type of the instance.final String
vpcId()
The ID of the VPC in which the instance is running.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
amiLaunchIndex
The AMI launch index, which can be used to find this instance in the launch group.
- Returns:
- The AMI launch index, which can be used to find this instance in the launch group.
-
imageId
The ID of the AMI used to launch the instance.
- Returns:
- The ID of the AMI used to launch the instance.
-
instanceId
The ID of the instance.
- Returns:
- The ID of the instance.
-
instanceType
The instance type.
If the service returns an enum value that is not available in the current SDK version,
instanceType
will returnInstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frominstanceTypeAsString()
.- Returns:
- The instance type.
- See Also:
-
instanceTypeAsString
The instance type.
If the service returns an enum value that is not available in the current SDK version,
instanceType
will returnInstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frominstanceTypeAsString()
.- Returns:
- The instance type.
- See Also:
-
kernelId
The kernel associated with this instance, if applicable.
- Returns:
- The kernel associated with this instance, if applicable.
-
keyName
The name of the key pair, if this instance was launched with an associated key pair.
- Returns:
- The name of the key pair, if this instance was launched with an associated key pair.
-
launchTime
The time the instance was launched.
- Returns:
- The time the instance was launched.
-
monitoring
The monitoring for the instance.
- Returns:
- The monitoring for the instance.
-
placement
The location where the instance launched, if applicable.
- Returns:
- The location where the instance launched, if applicable.
-
platform
The platform. This value is
windows
for Windows instances; otherwise, it is empty.If the service returns an enum value that is not available in the current SDK version,
platform
will returnPlatformValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromplatformAsString()
.- Returns:
- The platform. This value is
windows
for Windows instances; otherwise, it is empty. - See Also:
-
platformAsString
The platform. This value is
windows
for Windows instances; otherwise, it is empty.If the service returns an enum value that is not available in the current SDK version,
platform
will returnPlatformValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromplatformAsString()
.- Returns:
- The platform. This value is
windows
for Windows instances; otherwise, it is empty. - See Also:
-
privateDnsName
[IPv4 only] The private DNS hostname name assigned to the instance. This DNS hostname can only be used inside the Amazon EC2 network. This name is not available until the instance enters the
running
state.The Amazon-provided DNS server resolves Amazon-provided private DNS hostnames if you've enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.
- Returns:
- [IPv4 only] The private DNS hostname name assigned to the instance. This DNS hostname can only be used
inside the Amazon EC2 network. This name is not available until the instance enters the
running
state.The Amazon-provided DNS server resolves Amazon-provided private DNS hostnames if you've enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.
-
privateIpAddress
The private IPv4 address assigned to the instance.
- Returns:
- The private IPv4 address assigned to the instance.
-
hasProductCodes
public final boolean hasProductCodes()For responses, this returns true if the service returned a value for the ProductCodes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
productCodes
The product codes attached to this instance, if applicable.
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.- Returns:
- The product codes attached to this instance, if applicable.
-
publicDnsName
[IPv4 only] The public DNS name assigned to the instance. This name is not available until the instance enters the
running
state. This name is only available if you've enabled DNS hostnames for your VPC.- Returns:
- [IPv4 only] The public DNS name assigned to the instance. This name is not available until the instance
enters the
running
state. This name is only available if you've enabled DNS hostnames for your VPC.
-
publicIpAddress
The public IPv4 address, or the Carrier IP address assigned to the instance, if applicable.
A Carrier IP address only applies to an instance launched in a subnet associated with a Wavelength Zone.
- Returns:
- The public IPv4 address, or the Carrier IP address assigned to the instance, if applicable.
A Carrier IP address only applies to an instance launched in a subnet associated with a Wavelength Zone.
-
ramdiskId
The RAM disk associated with this instance, if applicable.
- Returns:
- The RAM disk associated with this instance, if applicable.
-
state
The current state of the instance.
- Returns:
- The current state of the instance.
-
stateTransitionReason
The reason for the most recent state transition. This might be an empty string.
- Returns:
- The reason for the most recent state transition. This might be an empty string.
-
subnetId
The ID of the subnet in which the instance is running.
- Returns:
- The ID of the subnet in which the instance is running.
-
vpcId
The ID of the VPC in which the instance is running.
- Returns:
- The ID of the VPC in which the instance is running.
-
architecture
The architecture of the image.
If the service returns an enum value that is not available in the current SDK version,
architecture
will returnArchitectureValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromarchitectureAsString()
.- Returns:
- The architecture of the image.
- See Also:
-
architectureAsString
The architecture of the image.
If the service returns an enum value that is not available in the current SDK version,
architecture
will returnArchitectureValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromarchitectureAsString()
.- Returns:
- The architecture of the image.
- See Also:
-
hasBlockDeviceMappings
public final boolean hasBlockDeviceMappings()For responses, this returns true if the service returned a value for the BlockDeviceMappings property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
blockDeviceMappings
Any block device mapping entries for 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.- Returns:
- Any block device mapping entries for the instance.
-
clientToken
The idempotency token you provided when you launched the instance, if applicable.
- Returns:
- The idempotency token you provided when you launched the instance, if applicable.
-
ebsOptimized
Indicates 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 I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
- Returns:
- Indicates 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 I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
-
enaSupport
Specifies whether enhanced networking with ENA is enabled.
- Returns:
- Specifies whether enhanced networking with ENA is enabled.
-
hypervisor
The hypervisor type of the instance. The value
xen
is used for both Xen and Nitro hypervisors.If the service returns an enum value that is not available in the current SDK version,
hypervisor
will returnHypervisorType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromhypervisorAsString()
.- Returns:
- The hypervisor type of the instance. The value
xen
is used for both Xen and Nitro hypervisors. - See Also:
-
hypervisorAsString
The hypervisor type of the instance. The value
xen
is used for both Xen and Nitro hypervisors.If the service returns an enum value that is not available in the current SDK version,
hypervisor
will returnHypervisorType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromhypervisorAsString()
.- Returns:
- The hypervisor type of the instance. The value
xen
is used for both Xen and Nitro hypervisors. - See Also:
-
iamInstanceProfile
The IAM instance profile associated with the instance, if applicable.
- Returns:
- The IAM instance profile associated with the instance, if applicable.
-
instanceLifecycle
Indicates whether this is a Spot Instance or a Scheduled Instance.
If the service returns an enum value that is not available in the current SDK version,
instanceLifecycle
will returnInstanceLifecycleType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frominstanceLifecycleAsString()
.- Returns:
- Indicates whether this is a Spot Instance or a Scheduled Instance.
- See Also:
-
instanceLifecycleAsString
Indicates whether this is a Spot Instance or a Scheduled Instance.
If the service returns an enum value that is not available in the current SDK version,
instanceLifecycle
will returnInstanceLifecycleType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frominstanceLifecycleAsString()
.- Returns:
- Indicates whether this is a Spot Instance or a Scheduled Instance.
- See Also:
-
hasElasticGpuAssociations
public final boolean hasElasticGpuAssociations()For responses, this returns true if the service returned a value for the ElasticGpuAssociations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
elasticGpuAssociations
Deprecated.
Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
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
hasElasticGpuAssociations()
method.- Returns:
- Deprecated.
Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
-
hasElasticInferenceAcceleratorAssociations
public final boolean hasElasticInferenceAcceleratorAssociations()For responses, this returns true if the service returned a value for the ElasticInferenceAcceleratorAssociations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
elasticInferenceAcceleratorAssociations
The elastic inference accelerator 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
hasElasticInferenceAcceleratorAssociations()
method.- Returns:
- The elastic inference accelerator associated with the instance.
-
hasNetworkInterfaces
public final boolean hasNetworkInterfaces()For responses, this returns true if the service returned a value for the NetworkInterfaces property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
networkInterfaces
The network interfaces for 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
hasNetworkInterfaces()
method.- Returns:
- The network interfaces for the instance.
-
outpostArn
The Amazon Resource Name (ARN) of the Outpost.
- Returns:
- The Amazon Resource Name (ARN) of the Outpost.
-
rootDeviceName
The device name of the root device volume (for example,
/dev/sda1
).- Returns:
- The device name of the root device volume (for example,
/dev/sda1
).
-
rootDeviceType
The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
If the service returns an enum value that is not available in the current SDK version,
rootDeviceType
will returnDeviceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromrootDeviceTypeAsString()
.- Returns:
- The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
- See Also:
-
rootDeviceTypeAsString
The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
If the service returns an enum value that is not available in the current SDK version,
rootDeviceType
will returnDeviceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromrootDeviceTypeAsString()
.- Returns:
- The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
- See Also:
-
hasSecurityGroups
public final boolean hasSecurityGroups()For responses, this returns true if the service returned a value for the SecurityGroups property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
securityGroups
The security groups for 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
hasSecurityGroups()
method.- Returns:
- The security groups for the instance.
-
sourceDestCheck
Indicates whether source/destination checking is enabled.
- Returns:
- Indicates whether source/destination checking is enabled.
-
spotInstanceRequestId
If the request is a Spot Instance request, the ID of the request.
- Returns:
- If the request is a Spot Instance request, the ID of the request.
-
sriovNetSupport
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
- Returns:
- Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
-
stateReason
The reason for the most recent state transition.
- Returns:
- The reason for the most recent state transition.
-
hasTags
public final boolean hasTags()For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
tags
Any tags assigned to 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
hasTags()
method.- Returns:
- Any tags assigned to the instance.
-
virtualizationType
The virtualization type of the instance.
If the service returns an enum value that is not available in the current SDK version,
virtualizationType
will returnVirtualizationType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromvirtualizationTypeAsString()
.- Returns:
- The virtualization type of the instance.
- See Also:
-
virtualizationTypeAsString
The virtualization type of the instance.
If the service returns an enum value that is not available in the current SDK version,
virtualizationType
will returnVirtualizationType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromvirtualizationTypeAsString()
.- Returns:
- The virtualization type of the instance.
- See Also:
-
cpuOptions
The CPU options for the instance.
- Returns:
- The CPU options for the instance.
-
capacityReservationId
The ID of the Capacity Reservation.
- Returns:
- The ID of the Capacity Reservation.
-
capacityReservationSpecification
Information about the Capacity Reservation targeting option.
- Returns:
- Information about the Capacity Reservation targeting option.
-
hibernationOptions
Indicates whether the instance is enabled for hibernation.
- Returns:
- Indicates whether the instance is enabled for hibernation.
-
hasLicenses
public final boolean hasLicenses()For responses, this returns true if the service returned a value for the Licenses property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
licenses
The license configurations for 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
hasLicenses()
method.- Returns:
- The license configurations for the instance.
-
metadataOptions
The metadata options for the instance.
- Returns:
- The metadata options for the instance.
-
enclaveOptions
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
- Returns:
- Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
-
bootMode
The boot mode that was specified by the AMI. If the value is
uefi-preferred
, the AMI supports both UEFI and Legacy BIOS. ThecurrentInstanceBootMode
parameter is the boot mode that is used to boot the instance at launch or start.The operating system contained in the AMI must be configured to support the specified boot mode.
For more information, see Boot modes in the Amazon EC2 User Guide.
If the service returns an enum value that is not available in the current SDK version,
bootMode
will returnBootModeValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frombootModeAsString()
.- Returns:
- The boot mode that was specified by the AMI. If the value is
uefi-preferred
, the AMI supports both UEFI and Legacy BIOS. ThecurrentInstanceBootMode
parameter is the boot mode that is used to boot the instance at launch or start.The operating system contained in the AMI must be configured to support the specified boot mode.
For more information, see Boot modes in the Amazon EC2 User Guide.
- See Also:
-
bootModeAsString
The boot mode that was specified by the AMI. If the value is
uefi-preferred
, the AMI supports both UEFI and Legacy BIOS. ThecurrentInstanceBootMode
parameter is the boot mode that is used to boot the instance at launch or start.The operating system contained in the AMI must be configured to support the specified boot mode.
For more information, see Boot modes in the Amazon EC2 User Guide.
If the service returns an enum value that is not available in the current SDK version,
bootMode
will returnBootModeValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frombootModeAsString()
.- Returns:
- The boot mode that was specified by the AMI. If the value is
uefi-preferred
, the AMI supports both UEFI and Legacy BIOS. ThecurrentInstanceBootMode
parameter is the boot mode that is used to boot the instance at launch or start.The operating system contained in the AMI must be configured to support the specified boot mode.
For more information, see Boot modes in the Amazon EC2 User Guide.
- See Also:
-
platformDetails
The platform details value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.
- Returns:
- The platform details value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.
-
usageOperation
The usage operation value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.
- Returns:
- The usage operation value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.
-
usageOperationUpdateTime
The time that the usage operation was last updated.
- Returns:
- The time that the usage operation was last updated.
-
privateDnsNameOptions
The options for the instance hostname.
- Returns:
- The options for the instance hostname.
-
ipv6Address
The IPv6 address assigned to the instance.
- Returns:
- The IPv6 address assigned to the instance.
-
tpmSupport
If the instance is configured for NitroTPM support, the value is
v2.0
. For more information, see NitroTPM in the Amazon EC2 User Guide.- Returns:
- If the instance is configured for NitroTPM support, the value is
v2.0
. For more information, see NitroTPM in the Amazon EC2 User Guide.
-
maintenanceOptions
Provides information on the recovery and maintenance options of your instance.
- Returns:
- Provides information on the recovery and maintenance options of your instance.
-
currentInstanceBootMode
The boot mode that is used to boot the instance at launch or start. For more information, see Boot modes in the Amazon EC2 User Guide.
If the service returns an enum value that is not available in the current SDK version,
currentInstanceBootMode
will returnInstanceBootModeValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcurrentInstanceBootModeAsString()
.- Returns:
- The boot mode that is used to boot the instance at launch or start. For more information, see Boot modes in the Amazon EC2 User Guide.
- See Also:
-
currentInstanceBootModeAsString
The boot mode that is used to boot the instance at launch or start. For more information, see Boot modes in the Amazon EC2 User Guide.
If the service returns an enum value that is not available in the current SDK version,
currentInstanceBootMode
will returnInstanceBootModeValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcurrentInstanceBootModeAsString()
.- Returns:
- The boot mode that is used to boot the instance at launch or start. For more information, see Boot modes in the Amazon EC2 User Guide.
- See Also:
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Instance.Builder,
Instance> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-