Interface KubernetesWorkloadDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<KubernetesWorkloadDetails.Builder,
,KubernetesWorkloadDetails> SdkBuilder<KubernetesWorkloadDetails.Builder,
,KubernetesWorkloadDetails> SdkPojo
- Enclosing class:
KubernetesWorkloadDetails
-
Method Summary
Modifier and TypeMethodDescriptioncontainers
(Collection<Container> containers) Containers running as part of the Kubernetes workload.containers
(Consumer<Container.Builder>... containers) Containers running as part of the Kubernetes workload.containers
(Container... containers) Containers running as part of the Kubernetes workload.Whether the host IPC flag is enabled for the pods in the workload.hostNetwork
(Boolean hostNetwork) Whether the hostNetwork flag is enabled for the pods included in the workload.Whether the host PID flag is enabled for the pods in the workload.Kubernetes workload name.Kubernetes namespace that the workload is part of.serviceAccountName
(String serviceAccountName) The service account name that is associated with a Kubernetes workload.Kubernetes workload type (e.g.Kubernetes workload ID.volumes
(Collection<Volume> volumes) Volumes used by the Kubernetes workload.volumes
(Consumer<Volume.Builder>... volumes) Volumes used by the Kubernetes workload.Volumes used by the Kubernetes workload.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, sdkFields
-
Method Details
-
name
Kubernetes workload name.
- Parameters:
name
- Kubernetes workload name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
Kubernetes workload type (e.g. Pod, Deployment, etc.).
- Parameters:
type
- Kubernetes workload type (e.g. Pod, Deployment, etc.).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
uid
Kubernetes workload ID.
- Parameters:
uid
- Kubernetes workload ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespace
Kubernetes namespace that the workload is part of.
- Parameters:
namespace
- Kubernetes namespace that the workload is part of.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostNetwork
Whether the hostNetwork flag is enabled for the pods included in the workload.
- Parameters:
hostNetwork
- Whether the hostNetwork flag is enabled for the pods included in the workload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
Containers running as part of the Kubernetes workload.
- Parameters:
containers
- Containers running as part of the Kubernetes workload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
Containers running as part of the Kubernetes workload.
- Parameters:
containers
- Containers running as part of the Kubernetes workload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
Containers running as part of the Kubernetes workload.
This is a convenience method that creates an instance of theContainer.Builder
avoiding the need to create one manually viaContainer.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontainers(List<Container>)
.- Parameters:
containers
- a consumer that will call methods onContainer.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
volumes
Volumes used by the Kubernetes workload.
- Parameters:
volumes
- Volumes used by the Kubernetes workload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumes
Volumes used by the Kubernetes workload.
- Parameters:
volumes
- Volumes used by the Kubernetes workload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumes
Volumes used by the Kubernetes workload.
This is a convenience method that creates an instance of theVolume.Builder
avoiding the need to create one manually viaVolume.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovolumes(List<Volume>)
.- Parameters:
volumes
- a consumer that will call methods onVolume.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
serviceAccountName
The service account name that is associated with a Kubernetes workload.
- Parameters:
serviceAccountName
- The service account name that is associated with a Kubernetes workload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostIPC
Whether the host IPC flag is enabled for the pods in the workload.
- Parameters:
hostIPC
- Whether the host IPC flag is enabled for the pods in the workload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostPID
Whether the host PID flag is enabled for the pods in the workload.
- Parameters:
hostPID
- Whether the host PID flag is enabled for the pods in the workload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-