@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AcceleratorCountRequest extends Object implements Serializable, Cloneable
The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance.
To exclude accelerator-enabled instance types, set Max
to 0
.
Constructor and Description |
---|
AcceleratorCountRequest() |
Modifier and Type | Method and Description |
---|---|
AcceleratorCountRequest |
clone() |
boolean |
equals(Object obj) |
Integer |
getMax()
The maximum number of accelerators.
|
Integer |
getMin()
The minimum number of accelerators.
|
int |
hashCode() |
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.
|
AcceleratorCountRequest |
withMax(Integer max)
The maximum number of accelerators.
|
AcceleratorCountRequest |
withMin(Integer min)
The minimum number of accelerators.
|
public void setMin(Integer min)
The minimum number of accelerators. To specify no minimum limit, omit this parameter.
min
- The minimum number of accelerators. To specify no minimum limit, omit this parameter.public Integer getMin()
The minimum number of accelerators. To specify no minimum limit, omit this parameter.
public AcceleratorCountRequest withMin(Integer min)
The minimum number of accelerators. To specify no minimum limit, omit this parameter.
min
- The minimum number of accelerators. To specify no minimum limit, omit this parameter.public void setMax(Integer max)
The maximum number of accelerators. To specify no maximum limit, omit this parameter. To exclude
accelerator-enabled instance types, set Max
to 0
.
max
- The maximum number of accelerators. To specify no maximum limit, omit this parameter. To exclude
accelerator-enabled instance types, set Max
to 0
.public Integer getMax()
The maximum number of accelerators. To specify no maximum limit, omit this parameter. To exclude
accelerator-enabled instance types, set Max
to 0
.
Max
to 0
.public AcceleratorCountRequest withMax(Integer max)
The maximum number of accelerators. To specify no maximum limit, omit this parameter. To exclude
accelerator-enabled instance types, set Max
to 0
.
max
- The maximum number of accelerators. To specify no maximum limit, omit this parameter. To exclude
accelerator-enabled instance types, set Max
to 0
.public String toString()
toString
in class Object
Object.toString()
public AcceleratorCountRequest clone()