@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails |
acceleratorCount()
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.
|
AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorTotalMemoryMiBDetails |
acceleratorTotalMemoryMiB()
The minimum and maximum amount of total accelerator memory, in MiB.
|
List<String> |
acceleratorTypes()
The accelerator types that must be on the instance type.
|
String |
bareMetal()
Indicates whether bare metal instance types must be included, excluded, or required.
|
AwsEc2LaunchTemplateDataInstanceRequirementsBaselineEbsBandwidthMbpsDetails |
baselineEbsBandwidthMbps()
The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps.
|
static AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder |
builder() |
String |
burstablePerformance()
Indicates whether burstable performance T instance types are included, excluded, or required.
|
List<String> |
cpuManufacturers()
The CPU manufacturers to include.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<String> |
excludedInstanceTypes()
The instance types to exclude.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAcceleratorManufacturers()
For responses, this returns true if the service returned a value for the AcceleratorManufacturers property.
|
boolean |
hasAcceleratorNames()
For responses, this returns true if the service returned a value for the AcceleratorNames property.
|
boolean |
hasAcceleratorTypes()
For responses, this returns true if the service returned a value for the AcceleratorTypes property.
|
boolean |
hasCpuManufacturers()
For responses, this returns true if the service returned a value for the CpuManufacturers property.
|
boolean |
hasExcludedInstanceTypes()
For responses, this returns true if the service returned a value for the ExcludedInstanceTypes property.
|
int |
hashCode() |
boolean |
hasInstanceGenerations()
For responses, this returns true if the service returned a value for the InstanceGenerations property.
|
boolean |
hasLocalStorageTypes()
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.
|
String |
localStorage()
Indicates whether instance types with instance store volumes are included, excluded, or required.
|
List<String> |
localStorageTypes()
The type of local storage that is required.
|
AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails |
memoryGiBPerVCpu()
The minimum and maximum amount of memory per vCPU, in GiB.
|
AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails |
memoryMiB()
The minimum and maximum amount of memory, in MiB.
|
AwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetails |
networkInterfaceCount()
The minimum and maximum number of network interfaces.
|
Integer |
onDemandMaxPricePercentageOverLowestPrice()
The price protection threshold for On-Demand Instances.
|
Boolean |
requireHibernateSupport()
Indicates whether instance types must support hibernation for On-Demand Instances.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder> |
serializableBuilderClass() |
Integer |
spotMaxPricePercentageOverLowestPrice()
The price protection threshold for Spot Instances.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
AwsEc2LaunchTemplateDataInstanceRequirementsTotalLocalStorageGBDetails |
totalLocalStorageGB()
The minimum and maximum amount of total local storage, in GB.
|
AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails |
vCpuCount()
The minimum and maximum number of vCPUs.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails acceleratorCount()
The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance.
public final boolean hasAcceleratorManufacturers()
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.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.
public final boolean hasAcceleratorNames()
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.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.
public final AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorTotalMemoryMiBDetails acceleratorTotalMemoryMiB()
The minimum and maximum amount of total accelerator memory, in MiB.
public final boolean hasAcceleratorTypes()
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.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.
public final String bareMetal()
Indicates whether bare metal instance types must be included, excluded, or required.
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.
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.
public final boolean hasCpuManufacturers()
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.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.
public final boolean hasExcludedInstanceTypes()
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.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.
public final boolean hasInstanceGenerations()
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.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.
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.
public final boolean hasLocalStorageTypes()
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.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.
public final AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails memoryGiBPerVCpu()
The minimum and maximum amount of memory per vCPU, in GiB.
public final AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails memoryMiB()
The minimum and maximum amount of memory, in MiB.
public final AwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetails networkInterfaceCount()
The minimum and maximum number of network interfaces.
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.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
A high value, such as 999999, turns off price protection.
public final Boolean requireHibernateSupport()
Indicates whether instance types must support hibernation for On-Demand Instances.
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.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
A high value, such as 999999, turns off price protection.
public final AwsEc2LaunchTemplateDataInstanceRequirementsTotalLocalStorageGBDetails totalLocalStorageGB()
The minimum and maximum amount of total local storage, in GB.
public final AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails vCpuCount()
The minimum and maximum number of vCPUs.
public AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder toBuilder()
public static AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder builder()
public static Class<? extends AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.