Interface EksContainerDetail.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<EksContainerDetail.Builder,EksContainerDetail>,SdkBuilder<EksContainerDetail.Builder,EksContainerDetail>,SdkPojo
- Enclosing class:
- EksContainerDetail
public static interface EksContainerDetail.Builder extends SdkPojo, CopyableBuilder<EksContainerDetail.Builder,EksContainerDetail>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EksContainerDetail.Builderargs(String... args)An array of arguments to the entrypoint.EksContainerDetail.Builderargs(Collection<String> args)An array of arguments to the entrypoint.EksContainerDetail.Buildercommand(String... command)The entrypoint for the container.EksContainerDetail.Buildercommand(Collection<String> command)The entrypoint for the container.EksContainerDetail.Builderenv(Collection<EksContainerEnvironmentVariable> env)The environment variables to pass to a container.EksContainerDetail.Builderenv(Consumer<EksContainerEnvironmentVariable.Builder>... env)The environment variables to pass to a container.EksContainerDetail.Builderenv(EksContainerEnvironmentVariable... env)The environment variables to pass to a container.EksContainerDetail.BuilderexitCode(Integer exitCode)The exit code returned for the job attempt.EksContainerDetail.Builderimage(String image)The Docker image used to start the container.EksContainerDetail.BuilderimagePullPolicy(String imagePullPolicy)The image pull policy for the container.EksContainerDetail.Buildername(String name)The name of the container.EksContainerDetail.Builderreason(String reason)A short human-readable string to provide additional details for a running or stopped container.default EksContainerDetail.Builderresources(Consumer<EksContainerResourceRequirements.Builder> resources)The type and amount of resources to assign to a container.EksContainerDetail.Builderresources(EksContainerResourceRequirements resources)The type and amount of resources to assign to a container.default EksContainerDetail.BuildersecurityContext(Consumer<EksContainerSecurityContext.Builder> securityContext)The security context for a job.EksContainerDetail.BuildersecurityContext(EksContainerSecurityContext securityContext)The security context for a job.EksContainerDetail.BuildervolumeMounts(Collection<EksContainerVolumeMount> volumeMounts)The volume mounts for the container.EksContainerDetail.BuildervolumeMounts(Consumer<EksContainerVolumeMount.Builder>... volumeMounts)The volume mounts for the container.EksContainerDetail.BuildervolumeMounts(EksContainerVolumeMount... volumeMounts)The volume mounts for the container.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
name
EksContainerDetail.Builder name(String name)
The name of the container. If the name isn't specified, the default name "
Default" is used. Each container in a pod must have a unique name.- Parameters:
name- The name of the container. If the name isn't specified, the default name "Default" is used. Each container in a pod must have a unique name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
image
EksContainerDetail.Builder image(String image)
The Docker image used to start the container.
- Parameters:
image- The Docker image used to start the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imagePullPolicy
EksContainerDetail.Builder imagePullPolicy(String imagePullPolicy)
The image pull policy for the container. Supported values are
Always,IfNotPresent, andNever. This parameter defaults toAlwaysif the:latesttag is specified,IfNotPresentotherwise. For more information, see Updating images in the Kubernetes documentation.- Parameters:
imagePullPolicy- The image pull policy for the container. Supported values areAlways,IfNotPresent, andNever. This parameter defaults toAlwaysif the:latesttag is specified,IfNotPresentotherwise. For more information, see Updating images in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
command
EksContainerDetail.Builder command(Collection<String> command)
The entrypoint for the container. For more information, see Entrypoint in the Kubernetes documentation.
- Parameters:
command- The entrypoint for the container. For more information, see Entrypoint in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
command
EksContainerDetail.Builder command(String... command)
The entrypoint for the container. For more information, see Entrypoint in the Kubernetes documentation.
- Parameters:
command- The entrypoint for the container. For more information, see Entrypoint in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
args
EksContainerDetail.Builder args(Collection<String> args)
An array of arguments to the entrypoint. If this isn't specified, the
CMDof the container image is used. This corresponds to theargsmember in the Entrypoint portion of the Pod in Kubernetes. Environment variable references are expanded using the container's environment.If the referenced environment variable doesn't exist, the reference in the command isn't changed. For example, if the reference is to "
$(NAME1)" and theNAME1environment variable doesn't exist, the command string will remain "$(NAME1)".$$is replaced with$and the resulting string isn't expanded. For example,$$(VAR_NAME)is passed as$(VAR_NAME)whether or not theVAR_NAMEenvironment variable exists. For more information, see Dockerfile reference: CMD and Define a command and arguments for a pod in the Kubernetes documentation.- Parameters:
args- An array of arguments to the entrypoint. If this isn't specified, theCMDof the container image is used. This corresponds to theargsmember in the Entrypoint portion of the Pod in Kubernetes. Environment variable references are expanded using the container's environment.If the referenced environment variable doesn't exist, the reference in the command isn't changed. For example, if the reference is to "
$(NAME1)" and theNAME1environment variable doesn't exist, the command string will remain "$(NAME1)".$$is replaced with$and the resulting string isn't expanded. For example,$$(VAR_NAME)is passed as$(VAR_NAME)whether or not theVAR_NAMEenvironment variable exists. For more information, see Dockerfile reference: CMD and Define a command and arguments for a pod in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
args
EksContainerDetail.Builder args(String... args)
An array of arguments to the entrypoint. If this isn't specified, the
CMDof the container image is used. This corresponds to theargsmember in the Entrypoint portion of the Pod in Kubernetes. Environment variable references are expanded using the container's environment.If the referenced environment variable doesn't exist, the reference in the command isn't changed. For example, if the reference is to "
$(NAME1)" and theNAME1environment variable doesn't exist, the command string will remain "$(NAME1)".$$is replaced with$and the resulting string isn't expanded. For example,$$(VAR_NAME)is passed as$(VAR_NAME)whether or not theVAR_NAMEenvironment variable exists. For more information, see Dockerfile reference: CMD and Define a command and arguments for a pod in the Kubernetes documentation.- Parameters:
args- An array of arguments to the entrypoint. If this isn't specified, theCMDof the container image is used. This corresponds to theargsmember in the Entrypoint portion of the Pod in Kubernetes. Environment variable references are expanded using the container's environment.If the referenced environment variable doesn't exist, the reference in the command isn't changed. For example, if the reference is to "
$(NAME1)" and theNAME1environment variable doesn't exist, the command string will remain "$(NAME1)".$$is replaced with$and the resulting string isn't expanded. For example,$$(VAR_NAME)is passed as$(VAR_NAME)whether or not theVAR_NAMEenvironment variable exists. For more information, see Dockerfile reference: CMD and Define a command and arguments for a pod in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
env
EksContainerDetail.Builder env(Collection<EksContainerEnvironmentVariable> env)
The environment variables to pass to a container.
Environment variables cannot start with "
AWS_BATCH". This naming convention is reserved for variables that Batch sets.- Parameters:
env- The environment variables to pass to a container.Environment variables cannot start with "
AWS_BATCH". This naming convention is reserved for variables that Batch sets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
env
EksContainerDetail.Builder env(EksContainerEnvironmentVariable... env)
The environment variables to pass to a container.
Environment variables cannot start with "
AWS_BATCH". This naming convention is reserved for variables that Batch sets.- Parameters:
env- The environment variables to pass to a container.Environment variables cannot start with "
AWS_BATCH". This naming convention is reserved for variables that Batch sets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
env
EksContainerDetail.Builder env(Consumer<EksContainerEnvironmentVariable.Builder>... env)
The environment variables to pass to a container.
This is a convenience method that creates an instance of theEnvironment variables cannot start with "
AWS_BATCH". This naming convention is reserved for variables that Batch sets.EksContainerEnvironmentVariable.Builderavoiding the need to create one manually viaEksContainerEnvironmentVariable.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#env(List.) - Parameters:
env- a consumer that will call methods onEksContainerEnvironmentVariable.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#env(java.util.Collection)
-
resources
EksContainerDetail.Builder resources(EksContainerResourceRequirements resources)
The type and amount of resources to assign to a container. The supported resources include
memory,cpu, andnvidia.com/gpu. For more information, see Resource management for pods and containers in the Kubernetes documentation.- Parameters:
resources- The type and amount of resources to assign to a container. The supported resources includememory,cpu, andnvidia.com/gpu. For more information, see Resource management for pods and containers in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
default EksContainerDetail.Builder resources(Consumer<EksContainerResourceRequirements.Builder> resources)
The type and amount of resources to assign to a container. The supported resources include
This is a convenience method that creates an instance of thememory,cpu, andnvidia.com/gpu. For more information, see Resource management for pods and containers in the Kubernetes documentation.EksContainerResourceRequirements.Builderavoiding the need to create one manually viaEksContainerResourceRequirements.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresources(EksContainerResourceRequirements).- Parameters:
resources- a consumer that will call methods onEksContainerResourceRequirements.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
resources(EksContainerResourceRequirements)
-
exitCode
EksContainerDetail.Builder exitCode(Integer exitCode)
The exit code returned for the job attempt. A non-zero exit code is considered failed.
- Parameters:
exitCode- The exit code returned for the job attempt. A non-zero exit code is considered failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reason
EksContainerDetail.Builder reason(String reason)
A short human-readable string to provide additional details for a running or stopped container. It can be up to 255 characters long.
- Parameters:
reason- A short human-readable string to provide additional details for a running or stopped container. It can be up to 255 characters long.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeMounts
EksContainerDetail.Builder volumeMounts(Collection<EksContainerVolumeMount> volumeMounts)
The volume mounts for the container. Batch supports
emptyDir,hostPath, andsecretvolume types. For more information about volumes and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation.- Parameters:
volumeMounts- The volume mounts for the container. Batch supportsemptyDir,hostPath, andsecretvolume types. For more information about volumes and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeMounts
EksContainerDetail.Builder volumeMounts(EksContainerVolumeMount... volumeMounts)
The volume mounts for the container. Batch supports
emptyDir,hostPath, andsecretvolume types. For more information about volumes and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation.- Parameters:
volumeMounts- The volume mounts for the container. Batch supportsemptyDir,hostPath, andsecretvolume types. For more information about volumes and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeMounts
EksContainerDetail.Builder volumeMounts(Consumer<EksContainerVolumeMount.Builder>... volumeMounts)
The volume mounts for the container. Batch supports
This is a convenience method that creates an instance of theemptyDir,hostPath, andsecretvolume types. For more information about volumes and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation.EksContainerVolumeMount.Builderavoiding the need to create one manually viaEksContainerVolumeMount.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#volumeMounts(List.) - Parameters:
volumeMounts- a consumer that will call methods onEksContainerVolumeMount.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#volumeMounts(java.util.Collection)
-
securityContext
EksContainerDetail.Builder securityContext(EksContainerSecurityContext securityContext)
The security context for a job. For more information, see Configure a security context for a pod or container in the Kubernetes documentation.
- Parameters:
securityContext- The security context for a job. For more information, see Configure a security context for a pod or container in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityContext
default EksContainerDetail.Builder securityContext(Consumer<EksContainerSecurityContext.Builder> securityContext)
The security context for a job. For more information, see Configure a security context for a pod or container in the Kubernetes documentation.
This is a convenience method that creates an instance of theEksContainerSecurityContext.Builderavoiding the need to create one manually viaEksContainerSecurityContext.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosecurityContext(EksContainerSecurityContext).- Parameters:
securityContext- a consumer that will call methods onEksContainerSecurityContext.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
securityContext(EksContainerSecurityContext)
-
-