Interface KubernetesWorkloadDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<KubernetesWorkloadDetails.Builder,KubernetesWorkloadDetails>,SdkBuilder<KubernetesWorkloadDetails.Builder,KubernetesWorkloadDetails>,SdkPojo
- Enclosing class:
- KubernetesWorkloadDetails
public static interface KubernetesWorkloadDetails.Builder extends SdkPojo, CopyableBuilder<KubernetesWorkloadDetails.Builder,KubernetesWorkloadDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KubernetesWorkloadDetails.Buildercontainers(Collection<Container> containers)Containers running as part of the Kubernetes workload.KubernetesWorkloadDetails.Buildercontainers(Consumer<Container.Builder>... containers)Containers running as part of the Kubernetes workload.KubernetesWorkloadDetails.Buildercontainers(Container... containers)Containers running as part of the Kubernetes workload.KubernetesWorkloadDetails.BuilderhostIPC(Boolean hostIPC)Whether the host IPC flag is enabled for the pods in the workload.KubernetesWorkloadDetails.BuilderhostNetwork(Boolean hostNetwork)Whether the hostNetwork flag is enabled for the pods included in the workload.KubernetesWorkloadDetails.BuilderhostPID(Boolean hostPID)Whether the host PID flag is enabled for the pods in the workload.KubernetesWorkloadDetails.Buildername(String name)Kubernetes workload name.KubernetesWorkloadDetails.Buildernamespace(String namespace)Kubernetes namespace that the workload is part of.KubernetesWorkloadDetails.BuilderserviceAccountName(String serviceAccountName)The service account name that is associated with a Kubernetes workload.KubernetesWorkloadDetails.Buildertype(String type)Kubernetes workload type (e.g.KubernetesWorkloadDetails.Builderuid(String uid)Kubernetes workload ID.KubernetesWorkloadDetails.Buildervolumes(Collection<Volume> volumes)Volumes used by the Kubernetes workload.KubernetesWorkloadDetails.Buildervolumes(Consumer<Volume.Builder>... volumes)Volumes used by the Kubernetes workload.KubernetesWorkloadDetails.Buildervolumes(Volume... volumes)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 Detail
-
name
KubernetesWorkloadDetails.Builder name(String 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
KubernetesWorkloadDetails.Builder type(String 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
KubernetesWorkloadDetails.Builder uid(String 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
KubernetesWorkloadDetails.Builder namespace(String 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
KubernetesWorkloadDetails.Builder hostNetwork(Boolean 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
KubernetesWorkloadDetails.Builder containers(Collection<Container> 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
KubernetesWorkloadDetails.Builder containers(Container... 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
KubernetesWorkloadDetails.Builder containers(Consumer<Container.Builder>... containers)
Containers running as part of the Kubernetes workload.
This is a convenience method that creates an instance of theContainer.Builderavoiding the need to create one manually viaContainer.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#containers(List.) - 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:
#containers(java.util.Collection)
-
volumes
KubernetesWorkloadDetails.Builder volumes(Collection<Volume> 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
KubernetesWorkloadDetails.Builder volumes(Volume... 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
KubernetesWorkloadDetails.Builder volumes(Consumer<Volume.Builder>... volumes)
Volumes used by the Kubernetes workload.
This is a convenience method that creates an instance of theVolume.Builderavoiding the need to create one manually viaVolume.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#volumes(List.) - 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:
#volumes(java.util.Collection)
-
serviceAccountName
KubernetesWorkloadDetails.Builder serviceAccountName(String 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
KubernetesWorkloadDetails.Builder hostIPC(Boolean 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
KubernetesWorkloadDetails.Builder hostPID(Boolean 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.
-
-