Class InstanceTypeInfo
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.InstanceTypeInfo
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InstanceTypeInfo.Builder,InstanceTypeInfo>
@Generated("software.amazon.awssdk:codegen") public final class InstanceTypeInfo extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceTypeInfo.Builder,InstanceTypeInfo>
Describes the instance type.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInstanceTypeInfo.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanautoRecoverySupported()Indicates whether Amazon CloudWatch action based recovery is supported.BooleanbareMetal()Indicates whether the instance is a bare metal instance type.static InstanceTypeInfo.Builderbuilder()BooleanburstablePerformanceSupported()Indicates whether the instance type is a burstable performance T instance type.BooleancurrentGeneration()Indicates whether the instance type is current generation.BooleandedicatedHostsSupported()Indicates whether Dedicated Hosts are supported on the instance type.EbsInfoebsInfo()Describes the Amazon EBS settings for the instance type.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)FpgaInfofpgaInfo()Describes the FPGA accelerator settings for the instance type.BooleanfreeTierEligible()Indicates whether the instance type is eligible for the free tier.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)GpuInfogpuInfo()Describes the GPU accelerator settings for the instance type.inthashCode()booleanhasSupportedBootModes()For responses, this returns true if the service returned a value for the SupportedBootModes property.booleanhasSupportedRootDeviceTypes()For responses, this returns true if the service returned a value for the SupportedRootDeviceTypes property.booleanhasSupportedUsageClasses()For responses, this returns true if the service returned a value for the SupportedUsageClasses property.booleanhasSupportedVirtualizationTypes()For responses, this returns true if the service returned a value for the SupportedVirtualizationTypes property.BooleanhibernationSupported()Indicates whether On-Demand hibernation is supported.InstanceTypeHypervisorhypervisor()The hypervisor for the instance type.StringhypervisorAsString()The hypervisor for the instance type.InferenceAcceleratorInfoinferenceAcceleratorInfo()Describes the Inference accelerator settings for the instance type.InstanceStorageInfoinstanceStorageInfo()Describes the instance storage for the instance type.BooleaninstanceStorageSupported()Indicates whether instance storage is supported.InstanceTypeinstanceType()The instance type.StringinstanceTypeAsString()The instance type.MediaAcceleratorInfomediaAcceleratorInfo()Describes the media accelerator settings for the instance type.MemoryInfomemoryInfo()Describes the memory for the instance type.NetworkInfonetworkInfo()Describes the network settings for the instance type.NeuronInfoneuronInfo()Describes the Neuron accelerator settings for the instance type.NitroEnclavesSupportnitroEnclavesSupport()Indicates whether Nitro Enclaves is supported.StringnitroEnclavesSupportAsString()Indicates whether Nitro Enclaves is supported.NitroTpmInfonitroTpmInfo()Describes the supported NitroTPM versions for the instance type.NitroTpmSupportnitroTpmSupport()Indicates whether NitroTPM is supported.StringnitroTpmSupportAsString()Indicates whether NitroTPM is supported.PlacementGroupInfoplacementGroupInfo()Describes the placement group settings for the instance type.ProcessorInfoprocessorInfo()Describes the processor.List<SdkField<?>>sdkFields()static Class<? extends InstanceTypeInfo.Builder>serializableBuilderClass()List<BootModeType>supportedBootModes()The supported boot modes.List<String>supportedBootModesAsStrings()The supported boot modes.List<RootDeviceType>supportedRootDeviceTypes()The supported root device types.List<String>supportedRootDeviceTypesAsStrings()The supported root device types.List<UsageClassType>supportedUsageClasses()Indicates whether the instance type is offered for spot or On-Demand.List<String>supportedUsageClassesAsStrings()Indicates whether the instance type is offered for spot or On-Demand.List<VirtualizationType>supportedVirtualizationTypes()The supported virtualization types.List<String>supportedVirtualizationTypesAsStrings()The supported virtualization types.InstanceTypeInfo.BuildertoBuilder()StringtoString()Returns a string representation of this object.VCpuInfovCpuInfo()Describes the vCPU configurations for the instance type.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
instanceType
public final InstanceType 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,
instanceTypewill 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:
InstanceType
-
instanceTypeAsString
public final String 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,
instanceTypewill 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:
InstanceType
-
currentGeneration
public final Boolean currentGeneration()
Indicates whether the instance type is current generation.
- Returns:
- Indicates whether the instance type is current generation.
-
freeTierEligible
public final Boolean 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
public final List<UsageClassType> 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
public final List<String> 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
public final List<RootDeviceType> 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
public final List<String> 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
public final List<VirtualizationType> 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
public final List<String> 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
public final Boolean bareMetal()
Indicates whether the instance is a bare metal instance type.
- Returns:
- Indicates whether the instance is a bare metal instance type.
-
hypervisor
public final InstanceTypeHypervisor hypervisor()
The hypervisor for the instance type.
If the service returns an enum value that is not available in the current SDK version,
hypervisorwill returnInstanceTypeHypervisor.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhypervisorAsString().- Returns:
- The hypervisor for the instance type.
- See Also:
InstanceTypeHypervisor
-
hypervisorAsString
public final String hypervisorAsString()
The hypervisor for the instance type.
If the service returns an enum value that is not available in the current SDK version,
hypervisorwill returnInstanceTypeHypervisor.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhypervisorAsString().- Returns:
- The hypervisor for the instance type.
- See Also:
InstanceTypeHypervisor
-
processorInfo
public final ProcessorInfo processorInfo()
Describes the processor.
- Returns:
- Describes the processor.
-
vCpuInfo
public final VCpuInfo vCpuInfo()
Describes the vCPU configurations for the instance type.
- Returns:
- Describes the vCPU configurations for the instance type.
-
memoryInfo
public final MemoryInfo memoryInfo()
Describes the memory for the instance type.
- Returns:
- Describes the memory for the instance type.
-
instanceStorageSupported
public final Boolean instanceStorageSupported()
Indicates whether instance storage is supported.
- Returns:
- Indicates whether instance storage is supported.
-
instanceStorageInfo
public final InstanceStorageInfo instanceStorageInfo()
Describes the instance storage for the instance type.
- Returns:
- Describes the instance storage for the instance type.
-
ebsInfo
public final EbsInfo ebsInfo()
Describes the Amazon EBS settings for the instance type.
- Returns:
- Describes the Amazon EBS settings for the instance type.
-
networkInfo
public final NetworkInfo networkInfo()
Describes the network settings for the instance type.
- Returns:
- Describes the network settings for the instance type.
-
gpuInfo
public final GpuInfo gpuInfo()
Describes the GPU accelerator settings for the instance type.
- Returns:
- Describes the GPU accelerator settings for the instance type.
-
fpgaInfo
public final FpgaInfo fpgaInfo()
Describes the FPGA accelerator settings for the instance type.
- Returns:
- Describes the FPGA accelerator settings for the instance type.
-
placementGroupInfo
public final PlacementGroupInfo placementGroupInfo()
Describes the placement group settings for the instance type.
- Returns:
- Describes the placement group settings for the instance type.
-
inferenceAcceleratorInfo
public final InferenceAcceleratorInfo inferenceAcceleratorInfo()
Describes the Inference accelerator settings for the instance type.
- Returns:
- Describes the Inference accelerator settings for the instance type.
-
hibernationSupported
public final Boolean hibernationSupported()
Indicates whether On-Demand hibernation is supported.
- Returns:
- Indicates whether On-Demand hibernation is supported.
-
burstablePerformanceSupported
public final Boolean 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
public final Boolean dedicatedHostsSupported()
Indicates whether Dedicated Hosts are supported on the instance type.
- Returns:
- Indicates whether Dedicated Hosts are supported on the instance type.
-
autoRecoverySupported
public final Boolean autoRecoverySupported()
Indicates whether Amazon CloudWatch action based recovery is supported.
- Returns:
- Indicates whether Amazon CloudWatch action based recovery is supported.
-
supportedBootModes
public final List<BootModeType> 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
public final List<String> 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
public final NitroEnclavesSupport nitroEnclavesSupport()
Indicates whether Nitro Enclaves is supported.
If the service returns an enum value that is not available in the current SDK version,
nitroEnclavesSupportwill returnNitroEnclavesSupport.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnitroEnclavesSupportAsString().- Returns:
- Indicates whether Nitro Enclaves is supported.
- See Also:
NitroEnclavesSupport
-
nitroEnclavesSupportAsString
public final String nitroEnclavesSupportAsString()
Indicates whether Nitro Enclaves is supported.
If the service returns an enum value that is not available in the current SDK version,
nitroEnclavesSupportwill returnNitroEnclavesSupport.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnitroEnclavesSupportAsString().- Returns:
- Indicates whether Nitro Enclaves is supported.
- See Also:
NitroEnclavesSupport
-
nitroTpmSupport
public final NitroTpmSupport nitroTpmSupport()
Indicates whether NitroTPM is supported.
If the service returns an enum value that is not available in the current SDK version,
nitroTpmSupportwill returnNitroTpmSupport.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnitroTpmSupportAsString().- Returns:
- Indicates whether NitroTPM is supported.
- See Also:
NitroTpmSupport
-
nitroTpmSupportAsString
public final String nitroTpmSupportAsString()
Indicates whether NitroTPM is supported.
If the service returns an enum value that is not available in the current SDK version,
nitroTpmSupportwill returnNitroTpmSupport.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnitroTpmSupportAsString().- Returns:
- Indicates whether NitroTPM is supported.
- See Also:
NitroTpmSupport
-
nitroTpmInfo
public final NitroTpmInfo nitroTpmInfo()
Describes the supported NitroTPM versions for the instance type.
- Returns:
- Describes the supported NitroTPM versions for the instance type.
-
mediaAcceleratorInfo
public final MediaAcceleratorInfo mediaAcceleratorInfo()
Describes the media accelerator settings for the instance type.
- Returns:
- Describes the media accelerator settings for the instance type.
-
neuronInfo
public final NeuronInfo neuronInfo()
Describes the Neuron accelerator settings for the instance type.
- Returns:
- Describes the Neuron accelerator settings for the instance type.
-
toBuilder
public InstanceTypeInfo.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<InstanceTypeInfo.Builder,InstanceTypeInfo>
-
builder
public static InstanceTypeInfo.Builder builder()
-
serializableBuilderClass
public static Class<? extends InstanceTypeInfo.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
-