@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EksContainerResourceRequirements extends Object implements Serializable, Cloneable, StructuredPojo
The type and amount of resources to assign to a container. The supported resources include memory
,
cpu
, and nvidia.com/gpu
. For more information, see Resource management for pods
and containers in the Kubernetes documentation.
Constructor and Description |
---|
EksContainerResourceRequirements() |
Modifier and Type | Method and Description |
---|---|
EksContainerResourceRequirements |
addLimitsEntry(String key,
String value)
Add a single Limits entry
|
EksContainerResourceRequirements |
addRequestsEntry(String key,
String value)
Add a single Requests entry
|
EksContainerResourceRequirements |
clearLimitsEntries()
Removes all the entries added into Limits.
|
EksContainerResourceRequirements |
clearRequestsEntries()
Removes all the entries added into Requests.
|
EksContainerResourceRequirements |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getLimits()
The type and quantity of the resources to reserve for the container.
|
Map<String,String> |
getRequests()
The type and quantity of the resources to request for the container.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLimits(Map<String,String> limits)
The type and quantity of the resources to reserve for the container.
|
void |
setRequests(Map<String,String> requests)
The type and quantity of the resources to request for the container.
|
String |
toString()
Returns a string representation of this object.
|
EksContainerResourceRequirements |
withLimits(Map<String,String> limits)
The type and quantity of the resources to reserve for the container.
|
EksContainerResourceRequirements |
withRequests(Map<String,String> requests)
The type and quantity of the resources to request for the container.
|
public Map<String,String> getLimits()
The type and quantity of the resources to reserve for the container. The values vary based on the
name
that's specified. Resources can be requested using either the limits
or the
requests
objects.
The memory hard limit (in MiB) for the container, using whole integers, with a "Mi" suffix. If your container
attempts to exceed the memory specified, the container is terminated. You must specify at least 4 MiB of memory
for a job. memory
can be specified in limits
, requests
, or both. If
memory
is specified in both places, then the value that's specified in limits
must be
equal to the value that's specified in requests
.
To maximize your resource utilization, provide your jobs with as much memory as possible for the specific instance type that you are using. To learn how, see Memory management in the Batch User Guide.
The number of CPUs that's reserved for the container. Values must be an even multiple of 0.25
.
cpu
can be specified in limits
, requests
, or both. If cpu
is
specified in both places, then the value that's specified in limits
must be at least as large as the
value that's specified in requests
.
The number of GPUs that's reserved for the container. Values must be a whole integer. memory
can be
specified in limits
, requests
, or both. If memory
is specified in both
places, then the value that's specified in limits
must be equal to the value that's specified in
requests
.
name
that's specified. Resources can be requested using either the limits
or
the requests
objects.
The memory hard limit (in MiB) for the container, using whole integers, with a "Mi" suffix. If your
container attempts to exceed the memory specified, the container is terminated. You must specify at least
4 MiB of memory for a job. memory
can be specified in limits
,
requests
, or both. If memory
is specified in both places, then the value that's
specified in limits
must be equal to the value that's specified in requests
.
To maximize your resource utilization, provide your jobs with as much memory as possible for the specific instance type that you are using. To learn how, see Memory management in the Batch User Guide.
The number of CPUs that's reserved for the container. Values must be an even multiple of
0.25
. cpu
can be specified in limits
, requests
, or
both. If cpu
is specified in both places, then the value that's specified in
limits
must be at least as large as the value that's specified in requests
.
The number of GPUs that's reserved for the container. Values must be a whole integer. memory
can be specified in limits
, requests
, or both. If memory
is
specified in both places, then the value that's specified in limits
must be equal to the
value that's specified in requests
.
public void setLimits(Map<String,String> limits)
The type and quantity of the resources to reserve for the container. The values vary based on the
name
that's specified. Resources can be requested using either the limits
or the
requests
objects.
The memory hard limit (in MiB) for the container, using whole integers, with a "Mi" suffix. If your container
attempts to exceed the memory specified, the container is terminated. You must specify at least 4 MiB of memory
for a job. memory
can be specified in limits
, requests
, or both. If
memory
is specified in both places, then the value that's specified in limits
must be
equal to the value that's specified in requests
.
To maximize your resource utilization, provide your jobs with as much memory as possible for the specific instance type that you are using. To learn how, see Memory management in the Batch User Guide.
The number of CPUs that's reserved for the container. Values must be an even multiple of 0.25
.
cpu
can be specified in limits
, requests
, or both. If cpu
is
specified in both places, then the value that's specified in limits
must be at least as large as the
value that's specified in requests
.
The number of GPUs that's reserved for the container. Values must be a whole integer. memory
can be
specified in limits
, requests
, or both. If memory
is specified in both
places, then the value that's specified in limits
must be equal to the value that's specified in
requests
.
limits
- The type and quantity of the resources to reserve for the container. The values vary based on the
name
that's specified. Resources can be requested using either the limits
or the
requests
objects.
The memory hard limit (in MiB) for the container, using whole integers, with a "Mi" suffix. If your
container attempts to exceed the memory specified, the container is terminated. You must specify at least
4 MiB of memory for a job. memory
can be specified in limits
,
requests
, or both. If memory
is specified in both places, then the value that's
specified in limits
must be equal to the value that's specified in requests
.
To maximize your resource utilization, provide your jobs with as much memory as possible for the specific instance type that you are using. To learn how, see Memory management in the Batch User Guide.
The number of CPUs that's reserved for the container. Values must be an even multiple of 0.25
. cpu
can be specified in limits
, requests
, or both. If
cpu
is specified in both places, then the value that's specified in limits
must
be at least as large as the value that's specified in requests
.
The number of GPUs that's reserved for the container. Values must be a whole integer. memory
can be specified in limits
, requests
, or both. If memory
is
specified in both places, then the value that's specified in limits
must be equal to the
value that's specified in requests
.
public EksContainerResourceRequirements withLimits(Map<String,String> limits)
The type and quantity of the resources to reserve for the container. The values vary based on the
name
that's specified. Resources can be requested using either the limits
or the
requests
objects.
The memory hard limit (in MiB) for the container, using whole integers, with a "Mi" suffix. If your container
attempts to exceed the memory specified, the container is terminated. You must specify at least 4 MiB of memory
for a job. memory
can be specified in limits
, requests
, or both. If
memory
is specified in both places, then the value that's specified in limits
must be
equal to the value that's specified in requests
.
To maximize your resource utilization, provide your jobs with as much memory as possible for the specific instance type that you are using. To learn how, see Memory management in the Batch User Guide.
The number of CPUs that's reserved for the container. Values must be an even multiple of 0.25
.
cpu
can be specified in limits
, requests
, or both. If cpu
is
specified in both places, then the value that's specified in limits
must be at least as large as the
value that's specified in requests
.
The number of GPUs that's reserved for the container. Values must be a whole integer. memory
can be
specified in limits
, requests
, or both. If memory
is specified in both
places, then the value that's specified in limits
must be equal to the value that's specified in
requests
.
limits
- The type and quantity of the resources to reserve for the container. The values vary based on the
name
that's specified. Resources can be requested using either the limits
or the
requests
objects.
The memory hard limit (in MiB) for the container, using whole integers, with a "Mi" suffix. If your
container attempts to exceed the memory specified, the container is terminated. You must specify at least
4 MiB of memory for a job. memory
can be specified in limits
,
requests
, or both. If memory
is specified in both places, then the value that's
specified in limits
must be equal to the value that's specified in requests
.
To maximize your resource utilization, provide your jobs with as much memory as possible for the specific instance type that you are using. To learn how, see Memory management in the Batch User Guide.
The number of CPUs that's reserved for the container. Values must be an even multiple of 0.25
. cpu
can be specified in limits
, requests
, or both. If
cpu
is specified in both places, then the value that's specified in limits
must
be at least as large as the value that's specified in requests
.
The number of GPUs that's reserved for the container. Values must be a whole integer. memory
can be specified in limits
, requests
, or both. If memory
is
specified in both places, then the value that's specified in limits
must be equal to the
value that's specified in requests
.
public EksContainerResourceRequirements addLimitsEntry(String key, String value)
public EksContainerResourceRequirements clearLimitsEntries()
public Map<String,String> getRequests()
The type and quantity of the resources to request for the container. The values vary based on the
name
that's specified. Resources can be requested by using either the limits
or the
requests
objects.
The memory hard limit (in MiB) for the container, using whole integers, with a "Mi" suffix. If your container
attempts to exceed the memory specified, the container is terminated. You must specify at least 4 MiB of memory
for a job. memory
can be specified in limits
, requests
, or both. If
memory
is specified in both, then the value that's specified in limits
must be equal to
the value that's specified in requests
.
If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for a particular instance type, see Memory management in the Batch User Guide.
The number of CPUs that are reserved for the container. Values must be an even multiple of 0.25
.
cpu
can be specified in limits
, requests
, or both. If cpu
is
specified in both, then the value that's specified in limits
must be at least as large as the value
that's specified in requests
.
The number of GPUs that are reserved for the container. Values must be a whole integer.
nvidia.com/gpu
can be specified in limits
, requests
, or both. If
nvidia.com/gpu
is specified in both, then the value that's specified in limits
must be
equal to the value that's specified in requests
.
name
that's specified. Resources can be requested by using either the limits
or
the requests
objects.
The memory hard limit (in MiB) for the container, using whole integers, with a "Mi" suffix. If your
container attempts to exceed the memory specified, the container is terminated. You must specify at least
4 MiB of memory for a job. memory
can be specified in limits
,
requests
, or both. If memory
is specified in both, then the value that's
specified in limits
must be equal to the value that's specified in requests
.
If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for a particular instance type, see Memory management in the Batch User Guide.
The number of CPUs that are reserved for the container. Values must be an even multiple of
0.25
. cpu
can be specified in limits
, requests
, or
both. If cpu
is specified in both, then the value that's specified in limits
must be at least as large as the value that's specified in requests
.
The number of GPUs that are reserved for the container. Values must be a whole integer.
nvidia.com/gpu
can be specified in limits
, requests
, or both. If
nvidia.com/gpu
is specified in both, then the value that's specified in limits
must be equal to the value that's specified in requests
.
public void setRequests(Map<String,String> requests)
The type and quantity of the resources to request for the container. The values vary based on the
name
that's specified. Resources can be requested by using either the limits
or the
requests
objects.
The memory hard limit (in MiB) for the container, using whole integers, with a "Mi" suffix. If your container
attempts to exceed the memory specified, the container is terminated. You must specify at least 4 MiB of memory
for a job. memory
can be specified in limits
, requests
, or both. If
memory
is specified in both, then the value that's specified in limits
must be equal to
the value that's specified in requests
.
If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for a particular instance type, see Memory management in the Batch User Guide.
The number of CPUs that are reserved for the container. Values must be an even multiple of 0.25
.
cpu
can be specified in limits
, requests
, or both. If cpu
is
specified in both, then the value that's specified in limits
must be at least as large as the value
that's specified in requests
.
The number of GPUs that are reserved for the container. Values must be a whole integer.
nvidia.com/gpu
can be specified in limits
, requests
, or both. If
nvidia.com/gpu
is specified in both, then the value that's specified in limits
must be
equal to the value that's specified in requests
.
requests
- The type and quantity of the resources to request for the container. The values vary based on the
name
that's specified. Resources can be requested by using either the limits
or
the requests
objects.
The memory hard limit (in MiB) for the container, using whole integers, with a "Mi" suffix. If your
container attempts to exceed the memory specified, the container is terminated. You must specify at least
4 MiB of memory for a job. memory
can be specified in limits
,
requests
, or both. If memory
is specified in both, then the value that's
specified in limits
must be equal to the value that's specified in requests
.
If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for a particular instance type, see Memory management in the Batch User Guide.
The number of CPUs that are reserved for the container. Values must be an even multiple of
0.25
. cpu
can be specified in limits
, requests
, or
both. If cpu
is specified in both, then the value that's specified in limits
must be at least as large as the value that's specified in requests
.
The number of GPUs that are reserved for the container. Values must be a whole integer.
nvidia.com/gpu
can be specified in limits
, requests
, or both. If
nvidia.com/gpu
is specified in both, then the value that's specified in limits
must be equal to the value that's specified in requests
.
public EksContainerResourceRequirements withRequests(Map<String,String> requests)
The type and quantity of the resources to request for the container. The values vary based on the
name
that's specified. Resources can be requested by using either the limits
or the
requests
objects.
The memory hard limit (in MiB) for the container, using whole integers, with a "Mi" suffix. If your container
attempts to exceed the memory specified, the container is terminated. You must specify at least 4 MiB of memory
for a job. memory
can be specified in limits
, requests
, or both. If
memory
is specified in both, then the value that's specified in limits
must be equal to
the value that's specified in requests
.
If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for a particular instance type, see Memory management in the Batch User Guide.
The number of CPUs that are reserved for the container. Values must be an even multiple of 0.25
.
cpu
can be specified in limits
, requests
, or both. If cpu
is
specified in both, then the value that's specified in limits
must be at least as large as the value
that's specified in requests
.
The number of GPUs that are reserved for the container. Values must be a whole integer.
nvidia.com/gpu
can be specified in limits
, requests
, or both. If
nvidia.com/gpu
is specified in both, then the value that's specified in limits
must be
equal to the value that's specified in requests
.
requests
- The type and quantity of the resources to request for the container. The values vary based on the
name
that's specified. Resources can be requested by using either the limits
or
the requests
objects.
The memory hard limit (in MiB) for the container, using whole integers, with a "Mi" suffix. If your
container attempts to exceed the memory specified, the container is terminated. You must specify at least
4 MiB of memory for a job. memory
can be specified in limits
,
requests
, or both. If memory
is specified in both, then the value that's
specified in limits
must be equal to the value that's specified in requests
.
If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for a particular instance type, see Memory management in the Batch User Guide.
The number of CPUs that are reserved for the container. Values must be an even multiple of
0.25
. cpu
can be specified in limits
, requests
, or
both. If cpu
is specified in both, then the value that's specified in limits
must be at least as large as the value that's specified in requests
.
The number of GPUs that are reserved for the container. Values must be a whole integer.
nvidia.com/gpu
can be specified in limits
, requests
, or both. If
nvidia.com/gpu
is specified in both, then the value that's specified in limits
must be equal to the value that's specified in requests
.
public EksContainerResourceRequirements addRequestsEntry(String key, String value)
public EksContainerResourceRequirements clearRequestsEntries()
public String toString()
toString
in class Object
Object.toString()
public EksContainerResourceRequirements clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.