Interface KubernetesWorkloadDetails.Builder

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