Class AwsEc2LaunchTemplateDataInstanceRequirementsDetails

    • Method Detail

      • acceleratorCount

        public final AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails acceleratorCount()

        The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance.

        Returns:
        The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance.
      • hasAcceleratorManufacturers

        public final boolean hasAcceleratorManufacturers()
        For responses, this returns true if the service returned a value for the AcceleratorManufacturers 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.
      • acceleratorManufacturers

        public final List<String> acceleratorManufacturers()

        Indicates whether instance types must have accelerators by specific manufacturers.

        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 hasAcceleratorManufacturers() method.

        Returns:
        Indicates whether instance types must have accelerators by specific manufacturers.
      • hasAcceleratorNames

        public final boolean hasAcceleratorNames()
        For responses, this returns true if the service returned a value for the AcceleratorNames 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.
      • acceleratorNames

        public final List<String> acceleratorNames()

        The accelerators that must be on the instance type.

        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 hasAcceleratorNames() method.

        Returns:
        The accelerators that must be on the instance type.
      • hasAcceleratorTypes

        public final boolean hasAcceleratorTypes()
        For responses, this returns true if the service returned a value for the AcceleratorTypes 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.
      • acceleratorTypes

        public final List<String> acceleratorTypes()

        The accelerator types that must be on the instance type.

        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 hasAcceleratorTypes() method.

        Returns:
        The accelerator types that must be on the instance type.
      • bareMetal

        public final String bareMetal()

        Indicates whether bare metal instance types must be included, excluded, or required.

        Returns:
        Indicates whether bare metal instance types must be included, excluded, or required.
      • burstablePerformance

        public final String burstablePerformance()

        Indicates whether burstable performance T instance types are included, excluded, or required. For more information, Burstable performance instances in the Amazon EC2 User Guide.

        Returns:
        Indicates whether burstable performance T instance types are included, excluded, or required. For more information, Burstable performance instances in the Amazon EC2 User Guide.
      • hasCpuManufacturers

        public final boolean hasCpuManufacturers()
        For responses, this returns true if the service returned a value for the CpuManufacturers 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.
      • cpuManufacturers

        public final List<String> cpuManufacturers()

        The CPU manufacturers to include.

        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 hasCpuManufacturers() method.

        Returns:
        The CPU manufacturers to include.
      • hasExcludedInstanceTypes

        public final boolean hasExcludedInstanceTypes()
        For responses, this returns true if the service returned a value for the ExcludedInstanceTypes 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.
      • excludedInstanceTypes

        public final List<String> excludedInstanceTypes()

        The instance types to exclude.

        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 hasExcludedInstanceTypes() method.

        Returns:
        The instance types to exclude.
      • hasInstanceGenerations

        public final boolean hasInstanceGenerations()
        For responses, this returns true if the service returned a value for the InstanceGenerations 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.
      • instanceGenerations

        public final List<String> instanceGenerations()

        Indicates whether current or previous generation instance types are included.

        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 hasInstanceGenerations() method.

        Returns:
        Indicates whether current or previous generation instance types are included.
      • localStorage

        public final String localStorage()

        Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, see Amazon EC2 instance store in the Amazon EC2 User Guide.

        Returns:
        Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, see Amazon EC2 instance store in the Amazon EC2 User Guide.
      • hasLocalStorageTypes

        public final boolean hasLocalStorageTypes()
        For responses, this returns true if the service returned a value for the LocalStorageTypes 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.
      • localStorageTypes

        public final List<String> localStorageTypes()

        The type of local storage that is required.

        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 hasLocalStorageTypes() method.

        Returns:
        The type of local storage that is required.
      • onDemandMaxPricePercentageOverLowestPrice

        public final Integer onDemandMaxPricePercentageOverLowestPrice()

        The price protection threshold for On-Demand Instances. This is the maximum you'll pay for an On-Demand Instance, expressed as a percentage above the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it excludes instance types priced above your threshold.

        The parameter accepts an integer, which Amazon EC2 interprets as a percentage.

        A high value, such as 999999, turns off price protection.

        Returns:
        The price protection threshold for On-Demand Instances. This is the maximum you'll pay for an On-Demand Instance, expressed as a percentage above the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it excludes instance types priced above your threshold.

        The parameter accepts an integer, which Amazon EC2 interprets as a percentage.

        A high value, such as 999999, turns off price protection.

      • requireHibernateSupport

        public final Boolean requireHibernateSupport()

        Indicates whether instance types must support hibernation for On-Demand Instances.

        Returns:
        Indicates whether instance types must support hibernation for On-Demand Instances.
      • spotMaxPricePercentageOverLowestPrice

        public final Integer spotMaxPricePercentageOverLowestPrice()

        The price protection threshold for Spot Instances. This is the maximum you'll pay for a Spot Instance, expressed as a percentage above the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it excludes instance types priced above your threshold.

        The parameter accepts an integer, which Amazon EC2 interprets as a percentage.

        A high value, such as 999999, turns off price protection.

        Returns:
        The price protection threshold for Spot Instances. This is the maximum you'll pay for a Spot Instance, expressed as a percentage above the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it excludes instance types priced above your threshold.

        The parameter accepts an integer, which Amazon EC2 interprets as a percentage.

        A high value, such as 999999, turns off price protection.

      • 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)