@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceRequirement extends Object implements Serializable, Cloneable, StructuredPojo
The type and amount of a resource to assign to a container. The only supported resource is a GPU.
| Constructor and Description |
|---|
ResourceRequirement() |
| Modifier and Type | Method and Description |
|---|---|
ResourceRequirement |
clone() |
boolean |
equals(Object obj) |
String |
getType()
The type of resource a container desires.
|
String |
getValue()
The number of GPUs to assign to a container.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setType(String type)
The type of resource a container desires.
|
void |
setValue(String value)
The number of GPUs to assign to a container.
|
String |
toString()
Returns a string representation of this object.
|
ResourceRequirement |
withType(ResourceType type)
The type of resource a container desires.
|
ResourceRequirement |
withType(String type)
The type of resource a container desires.
|
ResourceRequirement |
withValue(String value)
The number of GPUs to assign to a container.
|
public void setValue(String value)
The number of GPUs to assign to a container.
value - The number of GPUs to assign to a container.public String getValue()
The number of GPUs to assign to a container.
public ResourceRequirement withValue(String value)
The number of GPUs to assign to a container.
value - The number of GPUs to assign to a container.public void setType(String type)
The type of resource a container desires. The only supported value is GPU.
type - The type of resource a container desires. The only supported value is GPU.ResourceTypepublic String getType()
The type of resource a container desires. The only supported value is GPU.
GPU.ResourceTypepublic ResourceRequirement withType(String type)
The type of resource a container desires. The only supported value is GPU.
type - The type of resource a container desires. The only supported value is GPU.ResourceTypepublic ResourceRequirement withType(ResourceType type)
The type of resource a container desires. The only supported value is GPU.
type - The type of resource a container desires. The only supported value is GPU.ResourceTypepublic String toString()
toString in class ObjectObject.toString()public ResourceRequirement clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2019. All rights reserved.