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:
  • Method Details

    • 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, instanceType will return InstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from instanceTypeAsString().

      Returns:
      The instance type. For more information, see Instance types in the Amazon EC2 User Guide.
      See Also:
    • 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, instanceType will return InstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from instanceTypeAsString().

      Returns:
      The instance type. For more information, see Instance types in the Amazon EC2 User Guide.
      See Also:
    • 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 the 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.
    • 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 the 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.
    • 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 the 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.
    • 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, hypervisor will return InstanceTypeHypervisor.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from hypervisorAsString().

      Returns:
      The hypervisor for the instance type.
      See Also:
    • 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, hypervisor will return InstanceTypeHypervisor.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from hypervisorAsString().

      Returns:
      The hypervisor for the instance type.
      See Also:
    • 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 the 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.
    • 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, nitroEnclavesSupport will return NitroEnclavesSupport.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from nitroEnclavesSupportAsString().

      Returns:
      Indicates whether Nitro Enclaves is supported.
      See Also:
    • 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, nitroEnclavesSupport will return NitroEnclavesSupport.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from nitroEnclavesSupportAsString().

      Returns:
      Indicates whether Nitro Enclaves is supported.
      See Also:
    • 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, nitroTpmSupport will return NitroTpmSupport.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from nitroTpmSupportAsString().

      Returns:
      Indicates whether NitroTPM is supported.
      See Also:
    • 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, nitroTpmSupport will return NitroTpmSupport.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from nitroTpmSupportAsString().

      Returns:
      Indicates whether NitroTPM is supported.
      See Also:
    • 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()
      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 interface ToCopyableBuilder<InstanceTypeInfo.Builder,InstanceTypeInfo>
      Returns:
      a builder for type T
    • builder

      public static InstanceTypeInfo.Builder builder()
    • serializableBuilderClass

      public static Class<? extends InstanceTypeInfo.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      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 an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.