Interface KubernetesUserDetails.Builder

All Superinterfaces:
Buildable, CopyableBuilder<KubernetesUserDetails.Builder,KubernetesUserDetails>, SdkBuilder<KubernetesUserDetails.Builder,KubernetesUserDetails>, SdkPojo
Enclosing class:
KubernetesUserDetails

public static interface KubernetesUserDetails.Builder extends SdkPojo, CopyableBuilder<KubernetesUserDetails.Builder,KubernetesUserDetails>
  • Method Details

    • username

      The username of the user who called the Kubernetes API.

      Parameters:
      username - The username of the user who called the Kubernetes API.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • uid

      The user ID of the user who called the Kubernetes API.

      Parameters:
      uid - The user ID of the user who called the Kubernetes API.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groups

      The groups that include the user who called the Kubernetes API.

      Parameters:
      groups - The groups that include the user who called the Kubernetes API.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groups

      The groups that include the user who called the Kubernetes API.

      Parameters:
      groups - The groups that include the user who called the Kubernetes API.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionName

      KubernetesUserDetails.Builder sessionName(Collection<String> sessionName)

      Entity that assumes the IAM role when Kubernetes RBAC permissions are assigned to that role.

      Parameters:
      sessionName - Entity that assumes the IAM role when Kubernetes RBAC permissions are assigned to that role.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionName

      KubernetesUserDetails.Builder sessionName(String... sessionName)

      Entity that assumes the IAM role when Kubernetes RBAC permissions are assigned to that role.

      Parameters:
      sessionName - Entity that assumes the IAM role when Kubernetes RBAC permissions are assigned to that role.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • impersonatedUser

      KubernetesUserDetails.Builder impersonatedUser(ImpersonatedUser impersonatedUser)

      Information about the impersonated user.

      Parameters:
      impersonatedUser - Information about the impersonated user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • impersonatedUser

      default KubernetesUserDetails.Builder impersonatedUser(Consumer<ImpersonatedUser.Builder> impersonatedUser)

      Information about the impersonated user.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to impersonatedUser(ImpersonatedUser).

      Parameters:
      impersonatedUser - a consumer that will call methods on ImpersonatedUser.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: