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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetailsacceleratorCount()The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance.List<String>acceleratorManufacturers()Indicates whether instance types must have accelerators by specific manufacturers.List<String>acceleratorNames()The accelerators that must be on the instance type.AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorTotalMemoryMiBDetailsacceleratorTotalMemoryMiB()The minimum and maximum amount of total accelerator memory, in MiB.List<String>acceleratorTypes()The accelerator types that must be on the instance type.StringbareMetal()Indicates whether bare metal instance types must be included, excluded, or required.AwsEc2LaunchTemplateDataInstanceRequirementsBaselineEbsBandwidthMbpsDetailsbaselineEbsBandwidthMbps()The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps.static AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builderbuilder()StringburstablePerformance()Indicates whether burstable performance T instance types are included, excluded, or required.List<String>cpuManufacturers()The CPU manufacturers to include.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)List<String>excludedInstanceTypes()The instance types to exclude.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasAcceleratorManufacturers()For responses, this returns true if the service returned a value for the AcceleratorManufacturers property.booleanhasAcceleratorNames()For responses, this returns true if the service returned a value for the AcceleratorNames property.booleanhasAcceleratorTypes()For responses, this returns true if the service returned a value for the AcceleratorTypes property.booleanhasCpuManufacturers()For responses, this returns true if the service returned a value for the CpuManufacturers property.booleanhasExcludedInstanceTypes()For responses, this returns true if the service returned a value for the ExcludedInstanceTypes property.inthashCode()booleanhasInstanceGenerations()For responses, this returns true if the service returned a value for the InstanceGenerations property.booleanhasLocalStorageTypes()For responses, this returns true if the service returned a value for the LocalStorageTypes property.List<String>instanceGenerations()Indicates whether current or previous generation instance types are included.StringlocalStorage()Indicates whether instance types with instance store volumes are included, excluded, or required.List<String>localStorageTypes()The type of local storage that is required.AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetailsmemoryGiBPerVCpu()The minimum and maximum amount of memory per vCPU, in GiB.AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetailsmemoryMiB()The minimum and maximum amount of memory, in MiB.AwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetailsnetworkInterfaceCount()The minimum and maximum number of network interfaces.IntegeronDemandMaxPricePercentageOverLowestPrice()The price protection threshold for On-Demand Instances.BooleanrequireHibernateSupport()Indicates whether instance types must support hibernation for On-Demand Instances.List<SdkField<?>>sdkFields()static Class<? extends AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder>serializableBuilderClass()IntegerspotMaxPricePercentageOverLowestPrice()The price protection threshold for Spot Instances.AwsEc2LaunchTemplateDataInstanceRequirementsDetails.BuildertoBuilder()StringtoString()Returns a string representation of this object.AwsEc2LaunchTemplateDataInstanceRequirementsTotalLocalStorageGBDetailstotalLocalStorageGB()The minimum and maximum amount of total local storage, in GB.AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetailsvCpuCount()The minimum and maximum number of vCPUs.-
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
-
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 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.
-
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 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.
-
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
public final AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorTotalMemoryMiBDetails 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 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.
-
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
public final AwsEc2LaunchTemplateDataInstanceRequirementsBaselineEbsBandwidthMbpsDetails 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 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.
-
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 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.
-
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 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.
-
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 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.
-
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
public final AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails 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
public final AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails memoryMiB()
The minimum and maximum amount of memory, in MiB.
- Returns:
- The minimum and maximum amount of memory, in MiB.
-
networkInterfaceCount
public final AwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetails 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
public final AwsEc2LaunchTemplateDataInstanceRequirementsTotalLocalStorageGBDetails 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
public final AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails vCpuCount()
The minimum and maximum number of vCPUs.
- Returns:
- The minimum and maximum number of vCPUs.
-
toBuilder
public AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder toBuilder()
-
builder
public static AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder builder()
-
serializableBuilderClass
public static Class<? extends AwsEc2LaunchTemplateDataInstanceRequirementsDetails.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.
-
-