Interface Container.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Container.Builder,
,Container> SdkBuilder<Container.Builder,
,Container> SdkPojo
- Enclosing class:
Container
-
Method Summary
Modifier and TypeMethodDescriptioncontainerRuntime
(String containerRuntime) The container runtime (such as, Docker or containerd) used to run the container.Container ID.Container image.imagePrefix
(String imagePrefix) Part of the image name before the last slash.Container name.default Container.Builder
securityContext
(Consumer<SecurityContext.Builder> securityContext) Container security context.securityContext
(SecurityContext securityContext) Container security context.volumeMounts
(Collection<VolumeMount> volumeMounts) Container volume mounts.volumeMounts
(Consumer<VolumeMount.Builder>... volumeMounts) Container volume mounts.volumeMounts
(VolumeMount... volumeMounts) Container volume mounts.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 Details
-
containerRuntime
The container runtime (such as, Docker or containerd) used to run the container.
- Parameters:
containerRuntime
- The container runtime (such as, Docker or containerd) used to run the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
Container ID.
- Parameters:
id
- Container ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
Container name.
- Parameters:
name
- Container name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
image
Container image.
- Parameters:
image
- Container image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imagePrefix
Part of the image name before the last slash. For example, imagePrefix for public.ecr.aws/amazonlinux/amazonlinux:latest would be public.ecr.aws/amazonlinux. If the image name is relative and does not have a slash, this field is empty.
- Parameters:
imagePrefix
- Part of the image name before the last slash. For example, imagePrefix for public.ecr.aws/amazonlinux/amazonlinux:latest would be public.ecr.aws/amazonlinux. If the image name is relative and does not have a slash, this field is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeMounts
Container volume mounts.
- Parameters:
volumeMounts
- Container volume mounts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeMounts
Container volume mounts.
- Parameters:
volumeMounts
- Container volume mounts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeMounts
Container volume mounts.
This is a convenience method that creates an instance of theVolumeMount.Builder
avoiding the need to create one manually viaVolumeMount.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovolumeMounts(List<VolumeMount>)
.- Parameters:
volumeMounts
- a consumer that will call methods onVolumeMount.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
securityContext
Container security context.
- Parameters:
securityContext
- Container security context.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityContext
Container security context.
This is a convenience method that creates an instance of theSecurityContext.Builder
avoiding the need to create one manually viaSecurityContext.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosecurityContext(SecurityContext)
.- Parameters:
securityContext
- a consumer that will call methods onSecurityContext.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-