@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2LaunchTemplateDataInstanceRequirementsDetails extends Object implements Serializable, Cloneable, StructuredPojo
The attributes for the Amazon EC2 instance types.
Constructor and Description |
---|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
clone() |
boolean |
equals(Object obj) |
AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails |
getAcceleratorCount()
The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an
instance.
|
List<String> |
getAcceleratorManufacturers()
Indicates whether instance types must have accelerators by specific manufacturers.
|
List<String> |
getAcceleratorNames()
The accelerators that must be on the instance type.
|
AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorTotalMemoryMiBDetails |
getAcceleratorTotalMemoryMiB()
The minimum and maximum amount of total accelerator memory, in MiB.
|
List<String> |
getAcceleratorTypes()
The accelerator types that must be on the instance type.
|
String |
getBareMetal()
Indicates whether bare metal instance types must be included, excluded, or required.
|
AwsEc2LaunchTemplateDataInstanceRequirementsBaselineEbsBandwidthMbpsDetails |
getBaselineEbsBandwidthMbps()
The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps.
|
String |
getBurstablePerformance()
Indicates whether burstable performance T instance types are included, excluded, or required.
|
List<String> |
getCpuManufacturers()
The CPU manufacturers to include.
|
List<String> |
getExcludedInstanceTypes()
The instance types to exclude.
|
List<String> |
getInstanceGenerations()
Indicates whether current or previous generation instance types are included.
|
String |
getLocalStorage()
Indicates whether instance types with instance store volumes are included, excluded, or required.
|
List<String> |
getLocalStorageTypes()
The type of local storage that is required.
|
AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails |
getMemoryGiBPerVCpu()
The minimum and maximum amount of memory per vCPU, in GiB.
|
AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails |
getMemoryMiB()
The minimum and maximum amount of memory, in MiB.
|
AwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetails |
getNetworkInterfaceCount()
The minimum and maximum number of network interfaces.
|
Integer |
getOnDemandMaxPricePercentageOverLowestPrice()
The price protection threshold for On-Demand Instances.
|
Boolean |
getRequireHibernateSupport()
Indicates whether instance types must support hibernation for On-Demand Instances.
|
Integer |
getSpotMaxPricePercentageOverLowestPrice()
The price protection threshold for Spot Instances.
|
AwsEc2LaunchTemplateDataInstanceRequirementsTotalLocalStorageGBDetails |
getTotalLocalStorageGB()
The minimum and maximum amount of total local storage, in GB.
|
AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails |
getVCpuCount()
The minimum and maximum number of vCPUs.
|
int |
hashCode() |
Boolean |
isRequireHibernateSupport()
Indicates whether instance types must support hibernation for On-Demand Instances.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAcceleratorCount(AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails acceleratorCount)
The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an
instance.
|
void |
setAcceleratorManufacturers(Collection<String> acceleratorManufacturers)
Indicates whether instance types must have accelerators by specific manufacturers.
|
void |
setAcceleratorNames(Collection<String> acceleratorNames)
The accelerators that must be on the instance type.
|
void |
setAcceleratorTotalMemoryMiB(AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorTotalMemoryMiBDetails acceleratorTotalMemoryMiB)
The minimum and maximum amount of total accelerator memory, in MiB.
|
void |
setAcceleratorTypes(Collection<String> acceleratorTypes)
The accelerator types that must be on the instance type.
|
void |
setBareMetal(String bareMetal)
Indicates whether bare metal instance types must be included, excluded, or required.
|
void |
setBaselineEbsBandwidthMbps(AwsEc2LaunchTemplateDataInstanceRequirementsBaselineEbsBandwidthMbpsDetails baselineEbsBandwidthMbps)
The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps.
|
void |
setBurstablePerformance(String burstablePerformance)
Indicates whether burstable performance T instance types are included, excluded, or required.
|
void |
setCpuManufacturers(Collection<String> cpuManufacturers)
The CPU manufacturers to include.
|
void |
setExcludedInstanceTypes(Collection<String> excludedInstanceTypes)
The instance types to exclude.
|
void |
setInstanceGenerations(Collection<String> instanceGenerations)
Indicates whether current or previous generation instance types are included.
|
void |
setLocalStorage(String localStorage)
Indicates whether instance types with instance store volumes are included, excluded, or required.
|
void |
setLocalStorageTypes(Collection<String> localStorageTypes)
The type of local storage that is required.
|
void |
setMemoryGiBPerVCpu(AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails memoryGiBPerVCpu)
The minimum and maximum amount of memory per vCPU, in GiB.
|
void |
setMemoryMiB(AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails memoryMiB)
The minimum and maximum amount of memory, in MiB.
|
void |
setNetworkInterfaceCount(AwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetails networkInterfaceCount)
The minimum and maximum number of network interfaces.
|
void |
setOnDemandMaxPricePercentageOverLowestPrice(Integer onDemandMaxPricePercentageOverLowestPrice)
The price protection threshold for On-Demand Instances.
|
void |
setRequireHibernateSupport(Boolean requireHibernateSupport)
Indicates whether instance types must support hibernation for On-Demand Instances.
|
void |
setSpotMaxPricePercentageOverLowestPrice(Integer spotMaxPricePercentageOverLowestPrice)
The price protection threshold for Spot Instances.
|
void |
setTotalLocalStorageGB(AwsEc2LaunchTemplateDataInstanceRequirementsTotalLocalStorageGBDetails totalLocalStorageGB)
The minimum and maximum amount of total local storage, in GB.
|
void |
setVCpuCount(AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails vCpuCount)
The minimum and maximum number of vCPUs.
|
String |
toString()
Returns a string representation of this object.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withAcceleratorCount(AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails acceleratorCount)
The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an
instance.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withAcceleratorManufacturers(Collection<String> acceleratorManufacturers)
Indicates whether instance types must have accelerators by specific manufacturers.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withAcceleratorManufacturers(String... acceleratorManufacturers)
Indicates whether instance types must have accelerators by specific manufacturers.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withAcceleratorNames(Collection<String> acceleratorNames)
The accelerators that must be on the instance type.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withAcceleratorNames(String... acceleratorNames)
The accelerators that must be on the instance type.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withAcceleratorTotalMemoryMiB(AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorTotalMemoryMiBDetails acceleratorTotalMemoryMiB)
The minimum and maximum amount of total accelerator memory, in MiB.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withAcceleratorTypes(Collection<String> acceleratorTypes)
The accelerator types that must be on the instance type.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withAcceleratorTypes(String... acceleratorTypes)
The accelerator types that must be on the instance type.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withBareMetal(String bareMetal)
Indicates whether bare metal instance types must be included, excluded, or required.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withBaselineEbsBandwidthMbps(AwsEc2LaunchTemplateDataInstanceRequirementsBaselineEbsBandwidthMbpsDetails baselineEbsBandwidthMbps)
The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withBurstablePerformance(String burstablePerformance)
Indicates whether burstable performance T instance types are included, excluded, or required.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withCpuManufacturers(Collection<String> cpuManufacturers)
The CPU manufacturers to include.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withCpuManufacturers(String... cpuManufacturers)
The CPU manufacturers to include.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withExcludedInstanceTypes(Collection<String> excludedInstanceTypes)
The instance types to exclude.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withExcludedInstanceTypes(String... excludedInstanceTypes)
The instance types to exclude.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withInstanceGenerations(Collection<String> instanceGenerations)
Indicates whether current or previous generation instance types are included.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withInstanceGenerations(String... instanceGenerations)
Indicates whether current or previous generation instance types are included.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withLocalStorage(String localStorage)
Indicates whether instance types with instance store volumes are included, excluded, or required.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withLocalStorageTypes(Collection<String> localStorageTypes)
The type of local storage that is required.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withLocalStorageTypes(String... localStorageTypes)
The type of local storage that is required.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withMemoryGiBPerVCpu(AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails memoryGiBPerVCpu)
The minimum and maximum amount of memory per vCPU, in GiB.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withMemoryMiB(AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails memoryMiB)
The minimum and maximum amount of memory, in MiB.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withNetworkInterfaceCount(AwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetails networkInterfaceCount)
The minimum and maximum number of network interfaces.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withOnDemandMaxPricePercentageOverLowestPrice(Integer onDemandMaxPricePercentageOverLowestPrice)
The price protection threshold for On-Demand Instances.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withRequireHibernateSupport(Boolean requireHibernateSupport)
Indicates whether instance types must support hibernation for On-Demand Instances.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withSpotMaxPricePercentageOverLowestPrice(Integer spotMaxPricePercentageOverLowestPrice)
The price protection threshold for Spot Instances.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withTotalLocalStorageGB(AwsEc2LaunchTemplateDataInstanceRequirementsTotalLocalStorageGBDetails totalLocalStorageGB)
The minimum and maximum amount of total local storage, in GB.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
withVCpuCount(AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails vCpuCount)
The minimum and maximum number of vCPUs.
|
public AwsEc2LaunchTemplateDataInstanceRequirementsDetails()
public void setAcceleratorCount(AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails acceleratorCount)
The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance.
acceleratorCount
- The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on
an instance.public AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails getAcceleratorCount()
The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance.
public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withAcceleratorCount(AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails acceleratorCount)
The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance.
acceleratorCount
- The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on
an instance.public List<String> getAcceleratorManufacturers()
Indicates whether instance types must have accelerators by specific manufacturers.
public void setAcceleratorManufacturers(Collection<String> acceleratorManufacturers)
Indicates whether instance types must have accelerators by specific manufacturers.
acceleratorManufacturers
- Indicates whether instance types must have accelerators by specific manufacturers.public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withAcceleratorManufacturers(String... acceleratorManufacturers)
Indicates whether instance types must have accelerators by specific manufacturers.
NOTE: This method appends the values to the existing list (if any). Use
setAcceleratorManufacturers(java.util.Collection)
or
withAcceleratorManufacturers(java.util.Collection)
if you want to override the existing values.
acceleratorManufacturers
- Indicates whether instance types must have accelerators by specific manufacturers.public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withAcceleratorManufacturers(Collection<String> acceleratorManufacturers)
Indicates whether instance types must have accelerators by specific manufacturers.
acceleratorManufacturers
- Indicates whether instance types must have accelerators by specific manufacturers.public List<String> getAcceleratorNames()
The accelerators that must be on the instance type.
public void setAcceleratorNames(Collection<String> acceleratorNames)
The accelerators that must be on the instance type.
acceleratorNames
- The accelerators that must be on the instance type.public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withAcceleratorNames(String... acceleratorNames)
The accelerators that must be on the instance type.
NOTE: This method appends the values to the existing list (if any). Use
setAcceleratorNames(java.util.Collection)
or withAcceleratorNames(java.util.Collection)
if you
want to override the existing values.
acceleratorNames
- The accelerators that must be on the instance type.public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withAcceleratorNames(Collection<String> acceleratorNames)
The accelerators that must be on the instance type.
acceleratorNames
- The accelerators that must be on the instance type.public void setAcceleratorTotalMemoryMiB(AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorTotalMemoryMiBDetails acceleratorTotalMemoryMiB)
The minimum and maximum amount of total accelerator memory, in MiB.
acceleratorTotalMemoryMiB
- The minimum and maximum amount of total accelerator memory, in MiB.public AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorTotalMemoryMiBDetails getAcceleratorTotalMemoryMiB()
The minimum and maximum amount of total accelerator memory, in MiB.
public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withAcceleratorTotalMemoryMiB(AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorTotalMemoryMiBDetails acceleratorTotalMemoryMiB)
The minimum and maximum amount of total accelerator memory, in MiB.
acceleratorTotalMemoryMiB
- The minimum and maximum amount of total accelerator memory, in MiB.public List<String> getAcceleratorTypes()
The accelerator types that must be on the instance type.
public void setAcceleratorTypes(Collection<String> acceleratorTypes)
The accelerator types that must be on the instance type.
acceleratorTypes
- The accelerator types that must be on the instance type.public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withAcceleratorTypes(String... acceleratorTypes)
The accelerator types that must be on the instance type.
NOTE: This method appends the values to the existing list (if any). Use
setAcceleratorTypes(java.util.Collection)
or withAcceleratorTypes(java.util.Collection)
if you
want to override the existing values.
acceleratorTypes
- The accelerator types that must be on the instance type.public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withAcceleratorTypes(Collection<String> acceleratorTypes)
The accelerator types that must be on the instance type.
acceleratorTypes
- The accelerator types that must be on the instance type.public void setBareMetal(String bareMetal)
Indicates whether bare metal instance types must be included, excluded, or required.
bareMetal
- Indicates whether bare metal instance types must be included, excluded, or required.public String getBareMetal()
Indicates whether bare metal instance types must be included, excluded, or required.
public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withBareMetal(String bareMetal)
Indicates whether bare metal instance types must be included, excluded, or required.
bareMetal
- Indicates whether bare metal instance types must be included, excluded, or required.public void setBaselineEbsBandwidthMbps(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.
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 AwsEc2LaunchTemplateDataInstanceRequirementsBaselineEbsBandwidthMbpsDetails getBaselineEbsBandwidthMbps()
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 AwsEc2LaunchTemplateDataInstanceRequirementsDetails withBaselineEbsBandwidthMbps(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.
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 void setBurstablePerformance(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.
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 String getBurstablePerformance()
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 AwsEc2LaunchTemplateDataInstanceRequirementsDetails withBurstablePerformance(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.
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 List<String> getCpuManufacturers()
The CPU manufacturers to include.
public void setCpuManufacturers(Collection<String> cpuManufacturers)
The CPU manufacturers to include.
cpuManufacturers
- The CPU manufacturers to include.public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withCpuManufacturers(String... cpuManufacturers)
The CPU manufacturers to include.
NOTE: This method appends the values to the existing list (if any). Use
setCpuManufacturers(java.util.Collection)
or withCpuManufacturers(java.util.Collection)
if you
want to override the existing values.
cpuManufacturers
- The CPU manufacturers to include.public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withCpuManufacturers(Collection<String> cpuManufacturers)
The CPU manufacturers to include.
cpuManufacturers
- The CPU manufacturers to include.public List<String> getExcludedInstanceTypes()
The instance types to exclude.
public void setExcludedInstanceTypes(Collection<String> excludedInstanceTypes)
The instance types to exclude.
excludedInstanceTypes
- The instance types to exclude.public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withExcludedInstanceTypes(String... excludedInstanceTypes)
The instance types to exclude.
NOTE: This method appends the values to the existing list (if any). Use
setExcludedInstanceTypes(java.util.Collection)
or
withExcludedInstanceTypes(java.util.Collection)
if you want to override the existing values.
excludedInstanceTypes
- The instance types to exclude.public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withExcludedInstanceTypes(Collection<String> excludedInstanceTypes)
The instance types to exclude.
excludedInstanceTypes
- The instance types to exclude.public List<String> getInstanceGenerations()
Indicates whether current or previous generation instance types are included.
public void setInstanceGenerations(Collection<String> instanceGenerations)
Indicates whether current or previous generation instance types are included.
instanceGenerations
- Indicates whether current or previous generation instance types are included.public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withInstanceGenerations(String... instanceGenerations)
Indicates whether current or previous generation instance types are included.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceGenerations(java.util.Collection)
or withInstanceGenerations(java.util.Collection)
if you want to override the existing values.
instanceGenerations
- Indicates whether current or previous generation instance types are included.public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withInstanceGenerations(Collection<String> instanceGenerations)
Indicates whether current or previous generation instance types are included.
instanceGenerations
- Indicates whether current or previous generation instance types are included.public void setLocalStorage(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.
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 String getLocalStorage()
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 AwsEc2LaunchTemplateDataInstanceRequirementsDetails withLocalStorage(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.
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 List<String> getLocalStorageTypes()
The type of local storage that is required.
public void setLocalStorageTypes(Collection<String> localStorageTypes)
The type of local storage that is required.
localStorageTypes
- The type of local storage that is required.public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withLocalStorageTypes(String... localStorageTypes)
The type of local storage that is required.
NOTE: This method appends the values to the existing list (if any). Use
setLocalStorageTypes(java.util.Collection)
or withLocalStorageTypes(java.util.Collection)
if
you want to override the existing values.
localStorageTypes
- The type of local storage that is required.public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withLocalStorageTypes(Collection<String> localStorageTypes)
The type of local storage that is required.
localStorageTypes
- The type of local storage that is required.public void setMemoryGiBPerVCpu(AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails memoryGiBPerVCpu)
The minimum and maximum amount of memory per vCPU, in GiB.
memoryGiBPerVCpu
- The minimum and maximum amount of memory per vCPU, in GiB.public AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails getMemoryGiBPerVCpu()
The minimum and maximum amount of memory per vCPU, in GiB.
public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withMemoryGiBPerVCpu(AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails memoryGiBPerVCpu)
The minimum and maximum amount of memory per vCPU, in GiB.
memoryGiBPerVCpu
- The minimum and maximum amount of memory per vCPU, in GiB.public void setMemoryMiB(AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails memoryMiB)
The minimum and maximum amount of memory, in MiB.
memoryMiB
- The minimum and maximum amount of memory, in MiB.public AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails getMemoryMiB()
The minimum and maximum amount of memory, in MiB.
public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withMemoryMiB(AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails memoryMiB)
The minimum and maximum amount of memory, in MiB.
memoryMiB
- The minimum and maximum amount of memory, in MiB.public void setNetworkInterfaceCount(AwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetails networkInterfaceCount)
The minimum and maximum number of network interfaces.
networkInterfaceCount
- The minimum and maximum number of network interfaces.public AwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetails getNetworkInterfaceCount()
The minimum and maximum number of network interfaces.
public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withNetworkInterfaceCount(AwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetails networkInterfaceCount)
The minimum and maximum number of network interfaces.
networkInterfaceCount
- The minimum and maximum number of network interfaces.public void setOnDemandMaxPricePercentageOverLowestPrice(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.
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.
public Integer getOnDemandMaxPricePercentageOverLowestPrice()
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 AwsEc2LaunchTemplateDataInstanceRequirementsDetails withOnDemandMaxPricePercentageOverLowestPrice(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.
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.
public void setRequireHibernateSupport(Boolean requireHibernateSupport)
Indicates whether instance types must support hibernation for On-Demand Instances.
requireHibernateSupport
- Indicates whether instance types must support hibernation for On-Demand Instances.public Boolean getRequireHibernateSupport()
Indicates whether instance types must support hibernation for On-Demand Instances.
public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withRequireHibernateSupport(Boolean requireHibernateSupport)
Indicates whether instance types must support hibernation for On-Demand Instances.
requireHibernateSupport
- Indicates whether instance types must support hibernation for On-Demand Instances.public Boolean isRequireHibernateSupport()
Indicates whether instance types must support hibernation for On-Demand Instances.
public void setSpotMaxPricePercentageOverLowestPrice(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.
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.
public Integer getSpotMaxPricePercentageOverLowestPrice()
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 AwsEc2LaunchTemplateDataInstanceRequirementsDetails withSpotMaxPricePercentageOverLowestPrice(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.
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.
public void setTotalLocalStorageGB(AwsEc2LaunchTemplateDataInstanceRequirementsTotalLocalStorageGBDetails totalLocalStorageGB)
The minimum and maximum amount of total local storage, in GB.
totalLocalStorageGB
- The minimum and maximum amount of total local storage, in GB.public AwsEc2LaunchTemplateDataInstanceRequirementsTotalLocalStorageGBDetails getTotalLocalStorageGB()
The minimum and maximum amount of total local storage, in GB.
public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withTotalLocalStorageGB(AwsEc2LaunchTemplateDataInstanceRequirementsTotalLocalStorageGBDetails totalLocalStorageGB)
The minimum and maximum amount of total local storage, in GB.
totalLocalStorageGB
- The minimum and maximum amount of total local storage, in GB.public void setVCpuCount(AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails vCpuCount)
The minimum and maximum number of vCPUs.
vCpuCount
- The minimum and maximum number of vCPUs.public AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails getVCpuCount()
The minimum and maximum number of vCPUs.
public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withVCpuCount(AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails vCpuCount)
The minimum and maximum number of vCPUs.
vCpuCount
- The minimum and maximum number of vCPUs.public String toString()
toString
in class Object
Object.toString()
public AwsEc2LaunchTemplateDataInstanceRequirementsDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.