Class DeleteRoleRequest.Builder

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.security.DeleteRoleRequest.Builder
All Implemented Interfaces:
ObjectBuilder<DeleteRoleRequest>
Enclosing class:
DeleteRoleRequest

public static class DeleteRoleRequest.Builder
extends ObjectBuilderBase
implements ObjectBuilder<DeleteRoleRequest>
Builder for DeleteRoleRequest.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • name

      public final DeleteRoleRequest.Builder name​(java.lang.String value)
      Required - Role name

      API name: name

    • refresh

      public final DeleteRoleRequest.Builder refresh​(@Nullable Refresh value)
      If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes.

      API name: refresh

    • build

      public DeleteRoleRequest build()
      Specified by:
      build in interface ObjectBuilder<DeleteRoleRequest>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.