Class InstanceTypeInfo

    • Method Detail

      • 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.
      • 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.
      • 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.
      • hashCode

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

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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)