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 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

      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

      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

      Containers running as part of the Kubernetes workload.

      This is a convenience method that creates an instance of the Container.Builder avoiding the need to create one manually via Container.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to containers(List<Container>).

      Parameters:
      containers - a consumer that will call methods on Container.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 the Volume.Builder avoiding the need to create one manually via Volume.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to volumes(List<Volume>).

      Parameters:
      volumes - a consumer that will call methods on Volume.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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.