Class Mapping.Builder

java.lang.Object
software.amazon.awscdk.services.eks.legacy.Mapping.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<Mapping>
Enclosing interface:
Mapping

@Stability(Deprecated) @Deprecated public static final class Mapping.Builder extends Object implements software.amazon.jsii.Builder<Mapping>
Deprecated.
A builder for Mapping
  • Constructor Details

    • Builder

      public Builder()
      Deprecated.
  • Method Details

    • groups

      @Stability(Deprecated) @Deprecated public Mapping.Builder groups(List<String> groups)
      Deprecated.
      Sets the value of Mapping.getGroups()
      Parameters:
      groups - A list of groups within Kubernetes to which the role is mapped. This parameter is required.
      Returns:
      this
    • username

      @Stability(Deprecated) @Deprecated public Mapping.Builder username(String username)
      Deprecated.
      Sets the value of Mapping.getUsername()
      Parameters:
      username - The user name within Kubernetes to map to the IAM role.
      Returns:
      this
    • build

      @Stability(Deprecated) @Deprecated public Mapping build()
      Deprecated.
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<Mapping>
      Returns:
      a new instance of Mapping
      Throws:
      NullPointerException - if any required attribute was not provided