Class InstanceTypeInfo
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<InstanceTypeInfo.Builder,
InstanceTypeInfo>
Describes the instance type.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Boolean
Indicates whether Amazon CloudWatch action based recovery is supported.final Boolean
Indicates whether the instance is a bare metal instance type.static InstanceTypeInfo.Builder
builder()
final Boolean
Indicates whether the instance type is a burstable performance T instance type.final Boolean
Indicates whether the instance type is current generation.final Boolean
Indicates whether Dedicated Hosts are supported on the instance type.final EbsInfo
ebsInfo()
Describes the Amazon EBS settings for the instance type.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final FpgaInfo
fpgaInfo()
Describes the FPGA accelerator settings for the instance type.final Boolean
Indicates whether the instance type is eligible for the free tier.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final GpuInfo
gpuInfo()
Describes the GPU accelerator settings for the instance type.final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the SupportedBootModes property.final boolean
For responses, this returns true if the service returned a value for the SupportedRootDeviceTypes property.final boolean
For responses, this returns true if the service returned a value for the SupportedUsageClasses property.final boolean
For responses, this returns true if the service returned a value for the SupportedVirtualizationTypes property.final Boolean
Indicates whether On-Demand hibernation is supported.final InstanceTypeHypervisor
The hypervisor for the instance type.final String
The hypervisor for the instance type.final InferenceAcceleratorInfo
Describes the Inference accelerator settings for the instance type.final InstanceStorageInfo
Describes the instance storage for the instance type.final Boolean
Indicates whether instance storage is supported.final InstanceType
The instance type.final String
The instance type.final MediaAcceleratorInfo
Describes the media accelerator settings for the instance type.final MemoryInfo
Describes the memory for the instance type.final NetworkInfo
Describes the network settings for the instance type.final NeuronInfo
Describes the Neuron accelerator settings for the instance type.final NitroEnclavesSupport
Indicates whether Nitro Enclaves is supported.final String
Indicates whether Nitro Enclaves is supported.final NitroTpmInfo
Describes the supported NitroTPM versions for the instance type.final NitroTpmSupport
Indicates whether NitroTPM is supported.final String
Indicates whether NitroTPM is supported.final PlacementGroupInfo
Describes the placement group settings for the instance type.final ProcessorInfo
Describes the processor.static Class
<? extends InstanceTypeInfo.Builder> final List
<BootModeType> The supported boot modes.The supported boot modes.final List
<RootDeviceType> The supported root device types.The supported root device types.final List
<UsageClassType> Indicates whether the instance type is offered for spot or On-Demand.Indicates whether the instance type is offered for spot or On-Demand.final List
<VirtualizationType> The supported virtualization types.The supported virtualization types.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 VCpuInfo
vCpuInfo()
Describes the vCPU configurations for the instance type.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
instanceType
The instance type. For more information, see Instance types in the Amazon EC2 User Guide.
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. For more information, see Instance types in the Amazon EC2 User Guide.
- See Also:
-
instanceTypeAsString
The instance type. For more information, see Instance types in the Amazon EC2 User Guide.
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. For more information, see Instance types in the Amazon EC2 User Guide.
- See Also:
-
currentGeneration
Indicates whether the instance type is current generation.
- Returns:
- Indicates whether the instance type is current generation.
-
freeTierEligible
Indicates whether the instance type is eligible for the free tier.
- Returns:
- Indicates whether the instance type is eligible for the free tier.
-
supportedUsageClasses
Indicates whether the instance type is offered for spot or On-Demand.
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
hasSupportedUsageClasses()
method.- Returns:
- Indicates whether the instance type is offered for spot or On-Demand.
-
hasSupportedUsageClasses
public final boolean hasSupportedUsageClasses()For responses, this returns true if the service returned a value for the SupportedUsageClasses 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. -
supportedUsageClassesAsStrings
Indicates whether the instance type is offered for spot or On-Demand.
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
hasSupportedUsageClasses()
method.- Returns:
- Indicates whether the instance type is offered for spot or On-Demand.
-
supportedRootDeviceTypes
The supported root device types.
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
hasSupportedRootDeviceTypes()
method.- Returns:
- The supported root device types.
-
hasSupportedRootDeviceTypes
public final boolean hasSupportedRootDeviceTypes()For responses, this returns true if the service returned a value for the SupportedRootDeviceTypes 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. -
supportedRootDeviceTypesAsStrings
The supported root device types.
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
hasSupportedRootDeviceTypes()
method.- Returns:
- The supported root device types.
-
supportedVirtualizationTypes
The supported virtualization types.
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
hasSupportedVirtualizationTypes()
method.- Returns:
- The supported virtualization types.
-
hasSupportedVirtualizationTypes
public final boolean hasSupportedVirtualizationTypes()For responses, this returns true if the service returned a value for the SupportedVirtualizationTypes 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. -
supportedVirtualizationTypesAsStrings
The supported virtualization types.
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
hasSupportedVirtualizationTypes()
method.- Returns:
- The supported virtualization types.
-
bareMetal
Indicates whether the instance is a bare metal instance type.
- Returns:
- Indicates whether the instance is a bare metal instance type.
-
hypervisor
The hypervisor for the instance type.
If the service returns an enum value that is not available in the current SDK version,
hypervisor
will returnInstanceTypeHypervisor.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromhypervisorAsString()
.- Returns:
- The hypervisor for the instance type.
- See Also:
-
hypervisorAsString
The hypervisor for the instance type.
If the service returns an enum value that is not available in the current SDK version,
hypervisor
will returnInstanceTypeHypervisor.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromhypervisorAsString()
.- Returns:
- The hypervisor for the instance type.
- See Also:
-
processorInfo
Describes the processor.
- Returns:
- Describes the processor.
-
vCpuInfo
Describes the vCPU configurations for the instance type.
- Returns:
- Describes the vCPU configurations for the instance type.
-
memoryInfo
Describes the memory for the instance type.
- Returns:
- Describes the memory for the instance type.
-
instanceStorageSupported
Indicates whether instance storage is supported.
- Returns:
- Indicates whether instance storage is supported.
-
instanceStorageInfo
Describes the instance storage for the instance type.
- Returns:
- Describes the instance storage for the instance type.
-
ebsInfo
Describes the Amazon EBS settings for the instance type.
- Returns:
- Describes the Amazon EBS settings for the instance type.
-
networkInfo
Describes the network settings for the instance type.
- Returns:
- Describes the network settings for the instance type.
-
gpuInfo
Describes the GPU accelerator settings for the instance type.
- Returns:
- Describes the GPU accelerator settings for the instance type.
-
fpgaInfo
Describes the FPGA accelerator settings for the instance type.
- Returns:
- Describes the FPGA accelerator settings for the instance type.
-
placementGroupInfo
Describes the placement group settings for the instance type.
- Returns:
- Describes the placement group settings for the instance type.
-
inferenceAcceleratorInfo
Describes the Inference accelerator settings for the instance type.
- Returns:
- Describes the Inference accelerator settings for the instance type.
-
hibernationSupported
Indicates whether On-Demand hibernation is supported.
- Returns:
- Indicates whether On-Demand hibernation is supported.
-
burstablePerformanceSupported
Indicates whether the instance type is a burstable performance T instance type. For more information, see Burstable performance instances.
- Returns:
- Indicates whether the instance type is a burstable performance T instance type. For more information, see Burstable performance instances.
-
dedicatedHostsSupported
Indicates whether Dedicated Hosts are supported on the instance type.
- Returns:
- Indicates whether Dedicated Hosts are supported on the instance type.
-
autoRecoverySupported
Indicates whether Amazon CloudWatch action based recovery is supported.
- Returns:
- Indicates whether Amazon CloudWatch action based recovery is supported.
-
supportedBootModes
The supported boot modes. For more information, see Boot modes in the Amazon EC2 User Guide.
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
hasSupportedBootModes()
method.- Returns:
- The supported boot modes. For more information, see Boot modes in the Amazon EC2 User Guide.
-
hasSupportedBootModes
public final boolean hasSupportedBootModes()For responses, this returns true if the service returned a value for the SupportedBootModes 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. -
supportedBootModesAsStrings
The supported boot modes. For more information, see Boot modes in the Amazon EC2 User Guide.
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
hasSupportedBootModes()
method.- Returns:
- The supported boot modes. For more information, see Boot modes in the Amazon EC2 User Guide.
-
nitroEnclavesSupport
Indicates whether Nitro Enclaves is supported.
If the service returns an enum value that is not available in the current SDK version,
nitroEnclavesSupport
will returnNitroEnclavesSupport.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromnitroEnclavesSupportAsString()
.- Returns:
- Indicates whether Nitro Enclaves is supported.
- See Also:
-
nitroEnclavesSupportAsString
Indicates whether Nitro Enclaves is supported.
If the service returns an enum value that is not available in the current SDK version,
nitroEnclavesSupport
will returnNitroEnclavesSupport.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromnitroEnclavesSupportAsString()
.- Returns:
- Indicates whether Nitro Enclaves is supported.
- See Also:
-
nitroTpmSupport
Indicates whether NitroTPM is supported.
If the service returns an enum value that is not available in the current SDK version,
nitroTpmSupport
will returnNitroTpmSupport.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromnitroTpmSupportAsString()
.- Returns:
- Indicates whether NitroTPM is supported.
- See Also:
-
nitroTpmSupportAsString
Indicates whether NitroTPM is supported.
If the service returns an enum value that is not available in the current SDK version,
nitroTpmSupport
will returnNitroTpmSupport.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromnitroTpmSupportAsString()
.- Returns:
- Indicates whether NitroTPM is supported.
- See Also:
-
nitroTpmInfo
Describes the supported NitroTPM versions for the instance type.
- Returns:
- Describes the supported NitroTPM versions for the instance type.
-
mediaAcceleratorInfo
Describes the media accelerator settings for the instance type.
- Returns:
- Describes the media accelerator settings for the instance type.
-
neuronInfo
Describes the Neuron accelerator settings for the instance type.
- Returns:
- Describes the Neuron accelerator settings for the instance type.
-
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<InstanceTypeInfo.Builder,
InstanceTypeInfo> - 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
-