Class Owner.Builder

java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ml.Owner.Builder
All Implemented Interfaces:
CopyableBuilder<Owner.Builder,Owner>, MutableBuilder<Owner.Builder,Owner>, ObjectBuilder<Owner>
Enclosing class:
Owner

public static class Owner.Builder extends ObjectBuilderBase implements CopyableBuilder<Owner.Builder,Owner>
Builder for Owner.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • copy

      @Nonnull public Owner.Builder copy()
      Description copied from interface: CopyableBuilder
      Create a new builder CopyableBuilder that is a copy of this one.
      Specified by:
      copy in interface CopyableBuilder<Owner.Builder,Owner>
      Returns:
      a new builder instance.
    • backendRoles

      @Nonnull public final Owner.Builder backendRoles(List<String> list)
      The backend roles.

      API name: backend_roles

      Adds all elements of list to backendRoles.

    • backendRoles

      @Nonnull public final Owner.Builder backendRoles(String value, String... values)
      The backend roles.

      API name: backend_roles

      Adds one or more values to backendRoles.

    • customAttributeNames

      @Nonnull public final Owner.Builder customAttributeNames(List<String> list)
      The custom attribute names.

      API name: custom_attribute_names

      Adds all elements of list to customAttributeNames.

    • customAttributeNames

      @Nonnull public final Owner.Builder customAttributeNames(String value, String... values)
      The custom attribute names.

      API name: custom_attribute_names

      Adds one or more values to customAttributeNames.

    • name

      @Nonnull public final Owner.Builder name(String value)
      Required - API name: name
    • roles

      @Nonnull public final Owner.Builder roles(List<String> list)
      The roles.

      API name: roles

      Adds all elements of list to roles.

    • roles

      @Nonnull public final Owner.Builder roles(String value, String... values)
      The roles.

      API name: roles

      Adds one or more values to roles.

    • userRequestedTenant

      @Nonnull public final Owner.Builder userRequestedTenant(@Nullable String value)
      The user requested tenant.

      API name: user_requested_tenant

    • build

      @Nonnull public Owner build()
      Builds a Owner.
      Specified by:
      build in interface ObjectBuilder<Owner>
      Throws:
      NullPointerException - if some of the required fields are null.