Class AwsEc2LaunchTemplateDataInstanceRequirementsDetails
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder,
AwsEc2LaunchTemplateDataInstanceRequirementsDetails>
The attributes for the Amazon EC2 instance types.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
-
Method Summary
Modifier and TypeMethodDescriptionThe minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance.Indicates whether instance types must have accelerators by specific manufacturers.The accelerators that must be on the instance type.The minimum and maximum amount of total accelerator memory, in MiB.The accelerator types that must be on the instance type.final String
Indicates whether bare metal instance types must be included, excluded, or required.The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps.builder()
final String
Indicates whether burstable performance T instance types are included, excluded, or required.The CPU manufacturers to include.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.The instance types to exclude.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final boolean
For responses, this returns true if the service returned a value for the AcceleratorManufacturers property.final boolean
For responses, this returns true if the service returned a value for the AcceleratorNames property.final boolean
For responses, this returns true if the service returned a value for the AcceleratorTypes property.final boolean
For responses, this returns true if the service returned a value for the CpuManufacturers property.final boolean
For responses, this returns true if the service returned a value for the ExcludedInstanceTypes property.final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the InstanceGenerations property.final boolean
For responses, this returns true if the service returned a value for the LocalStorageTypes property.Indicates whether current or previous generation instance types are included.final String
Indicates whether instance types with instance store volumes are included, excluded, or required.The type of local storage that is required.The minimum and maximum amount of memory per vCPU, in GiB.The minimum and maximum amount of memory, in MiB.The minimum and maximum number of network interfaces.final Integer
The price protection threshold for On-Demand Instances.final Boolean
Indicates whether instance types must support hibernation for On-Demand Instances.static Class
<? extends AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder> final Integer
The price protection threshold for Spot Instances.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.The minimum and maximum amount of total local storage, in GB.The minimum and maximum number of vCPUs.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
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 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
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
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
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
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
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
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
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
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
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
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
public final AwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetails networkInterfaceCount()The minimum and maximum number of network interfaces.
- Returns:
- The minimum and maximum number of network interfaces.
-
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
Indicates whether instance types must support hibernation for On-Demand Instances.
- Returns:
- Indicates whether instance types must support hibernation for On-Demand Instances.
-
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
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 interfaceToCopyableBuilder<AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder,
AwsEc2LaunchTemplateDataInstanceRequirementsDetails> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder> serializableBuilderClass() -
hashCode
-
equals
-
equalsBySdkFields
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 anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-