Class AwsEc2LaunchTemplateDataInstanceRequirementsDetails

java.lang.Object
software.amazon.awssdk.services.securityhub.model.AwsEc2LaunchTemplateDataInstanceRequirementsDetails
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder,AwsEc2LaunchTemplateDataInstanceRequirementsDetails>

@Generated("software.amazon.awssdk:codegen") public final class AwsEc2LaunchTemplateDataInstanceRequirementsDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder,AwsEc2LaunchTemplateDataInstanceRequirementsDetails>

The attributes for the Amazon EC2 instance types.

See Also:
  • Method Details

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

      The minimum and maximum amount of total accelerator memory, in MiB.

      Returns:
      The minimum and maximum amount of total accelerator memory, in MiB.
    • 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.
    • baselineEbsBandwidthMbps

      The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see Amazon EBS optimized instances in the Amazon EC2 User Guide.

      Returns:
      The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see Amazon EBS optimized instances in the Amazon EC2 User Guide.
    • 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.
    • memoryGiBPerVCpu

      The minimum and maximum amount of memory per vCPU, in GiB.

      Returns:
      The minimum and maximum amount of memory per vCPU, in GiB.
    • memoryMiB

      The minimum and maximum amount of memory, in MiB.

      Returns:
      The minimum and maximum amount of memory, in MiB.
    • networkInterfaceCount

      The minimum and maximum number of network interfaces.

      Returns:
      The minimum and maximum number of network interfaces.
    • 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.

    • totalLocalStorageGB

      The minimum and maximum amount of total local storage, in GB.

      Returns:
      The minimum and maximum amount of total local storage, in GB.
    • vCpuCount

      The minimum and maximum number of vCPUs.

      Returns:
      The minimum and maximum number of vCPUs.
    • 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<AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder,AwsEc2LaunchTemplateDataInstanceRequirementsDetails>
      Returns:
      a builder for type T
    • builder

    • serializableBuilderClass

      public static Class<? extends AwsEc2LaunchTemplateDataInstanceRequirementsDetails.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.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.