@Generated(value="software.amazon.awssdk:codegen") public final class EksContainerOverride extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EksContainerOverride.Builder,EksContainerOverride>
Object representing any Kubernetes overrides to a job definition that's used in a SubmitJob API operation.
Modifier and Type | Class and Description |
---|---|
static interface |
EksContainerOverride.Builder |
Modifier and Type | Method and Description |
---|---|
List<String> |
args()
The arguments to the entrypoint to send to the container that overrides the default arguments from the Docker
image or the job definition.
|
static EksContainerOverride.Builder |
builder() |
List<String> |
command()
The command to send to the container that overrides the default command from the Docker image or the job
definition.
|
List<EksContainerEnvironmentVariable> |
env()
The environment variables to send to the container.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasArgs()
For responses, this returns true if the service returned a value for the Args property.
|
boolean |
hasCommand()
For responses, this returns true if the service returned a value for the Command property.
|
boolean |
hasEnv()
For responses, this returns true if the service returned a value for the Env property.
|
int |
hashCode() |
String |
image()
The override of the Docker image that's used to start the container.
|
EksContainerResourceRequirements |
resources()
The type and amount of resources to assign to a container.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends EksContainerOverride.Builder> |
serializableBuilderClass() |
EksContainerOverride.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String image()
The override of the Docker image that's used to start the container.
public final boolean hasCommand()
isEmpty()
method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> command()
The command to send to the container that overrides the default command from the Docker image or the job definition.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasCommand()
method.
public final boolean hasArgs()
isEmpty()
method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<String> args()
The arguments to the entrypoint to send to the container that overrides the default arguments from the Docker image or the job definition. For more information, see CMD in the Dockerfile reference and Define a command an arguments for a pod in the Kubernetes documentation.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasArgs()
method.
public final boolean hasEnv()
isEmpty()
method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<EksContainerEnvironmentVariable> env()
The environment variables to send to the container. You can add new environment variables, which are added to the container at launch. Or, you can override the existing environment variables from the Docker image or the job definition.
Environment variables cannot start with "AWS_BATCH
". This naming convention is reserved for
variables that Batch sets.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasEnv()
method.
Environment variables cannot start with "AWS_BATCH
". This naming convention is reserved for
variables that Batch sets.
public final EksContainerResourceRequirements resources()
The type and amount of resources to assign to a container. These override the settings in the job definition. The
supported resources include memory
, cpu
, and nvidia.com/gpu
. For more
information, see Resource management for
pods and containers in the Kubernetes documentation.
memory
, cpu
, and
nvidia.com/gpu
. For more information, see Resource management
for pods and containers in the Kubernetes documentation.public EksContainerOverride.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<EksContainerOverride.Builder,EksContainerOverride>
public static EksContainerOverride.Builder builder()
public static Class<? extends EksContainerOverride.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2022. All rights reserved.