@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails extends Object implements Serializable, Cloneable, StructuredPojo
The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an Amazon EC2 instance.
Constructor and Description |
---|
AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails |
clone() |
boolean |
equals(Object obj) |
Integer |
getMax()
The maximum number of accelerators.
|
Integer |
getMin()
The minimum number of accelerators.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMax(Integer max)
The maximum number of accelerators.
|
void |
setMin(Integer min)
The minimum number of accelerators.
|
String |
toString()
Returns a string representation of this object.
|
AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails |
withMax(Integer max)
The maximum number of accelerators.
|
AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails |
withMin(Integer min)
The minimum number of accelerators.
|
public AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails()
public void setMax(Integer max)
The maximum number of accelerators. If this parameter isn't specified, there's no maximum limit. To exclude
accelerator-enabled instance types, set Max
to 0
.
max
- The maximum number of accelerators. If this parameter isn't specified, there's no maximum limit. To
exclude accelerator-enabled instance types, set Max
to 0
.public Integer getMax()
The maximum number of accelerators. If this parameter isn't specified, there's no maximum limit. To exclude
accelerator-enabled instance types, set Max
to 0
.
Max
to 0
.public AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails withMax(Integer max)
The maximum number of accelerators. If this parameter isn't specified, there's no maximum limit. To exclude
accelerator-enabled instance types, set Max
to 0
.
max
- The maximum number of accelerators. If this parameter isn't specified, there's no maximum limit. To
exclude accelerator-enabled instance types, set Max
to 0
.public void setMin(Integer min)
The minimum number of accelerators. If this parameter isn't specified, there's no minimum limit.
min
- The minimum number of accelerators. If this parameter isn't specified, there's no minimum limit.public Integer getMin()
The minimum number of accelerators. If this parameter isn't specified, there's no minimum limit.
public AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails withMin(Integer min)
The minimum number of accelerators. If this parameter isn't specified, there's no minimum limit.
min
- The minimum number of accelerators. If this parameter isn't specified, there's no minimum limit.public String toString()
toString
in class Object
Object.toString()
public AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.