public ContainerDefinition withResourceRequirements(java.util.Collection<ResourceRequirement> resourceRequirements) {
        setResourceRequirements(resourceRequirements);
        return this;
    }
<p>
The type and amount of a resource to assign to a container. The only supported resource is a GPU.
</p>

@param resourceRequirements
       The type and amount of a resource to assign to a container. The only supported resource is a GPU.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/ContainerDefinition.java