@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails extends Object implements Serializable, Cloneable, StructuredPojo
A resource to assign to a container.
Constructor and Description |
---|
AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails |
clone() |
boolean |
equals(Object obj) |
String |
getType()
The type of resource to assign to a container.
|
String |
getValue()
The value for the specified resource type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setType(String type)
The type of resource to assign to a container.
|
void |
setValue(String value)
The value for the specified resource type.
|
String |
toString()
Returns a string representation of this object.
|
AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails |
withType(String type)
The type of resource to assign to a container.
|
AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails |
withValue(String value)
The value for the specified resource type.
|
public AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails()
public void setType(String type)
The type of resource to assign to a container.
type
- The type of resource to assign to a container.public String getType()
The type of resource to assign to a container.
public AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails withType(String type)
The type of resource to assign to a container.
type
- The type of resource to assign to a container.public void setValue(String value)
The value for the specified resource type.
For GPU
, the value is the number of physical GPUs the Amazon ECS container agent reserves for the
container.
For InferenceAccelerator
, the value should match the DeviceName
attribute of an entry
in InferenceAccelerators
.
value
- The value for the specified resource type.
For GPU
, the value is the number of physical GPUs the Amazon ECS container agent reserves for
the container.
For InferenceAccelerator
, the value should match the DeviceName
attribute of an
entry in InferenceAccelerators
.
public String getValue()
The value for the specified resource type.
For GPU
, the value is the number of physical GPUs the Amazon ECS container agent reserves for the
container.
For InferenceAccelerator
, the value should match the DeviceName
attribute of an entry
in InferenceAccelerators
.
For GPU
, the value is the number of physical GPUs the Amazon ECS container agent reserves
for the container.
For InferenceAccelerator
, the value should match the DeviceName
attribute of an
entry in InferenceAccelerators
.
public AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails withValue(String value)
The value for the specified resource type.
For GPU
, the value is the number of physical GPUs the Amazon ECS container agent reserves for the
container.
For InferenceAccelerator
, the value should match the DeviceName
attribute of an entry
in InferenceAccelerators
.
value
- The value for the specified resource type.
For GPU
, the value is the number of physical GPUs the Amazon ECS container agent reserves for
the container.
For InferenceAccelerator
, the value should match the DeviceName
attribute of an
entry in InferenceAccelerators
.
public String toString()
toString
in class Object
Object.toString()
public AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.