Class BulkDeleteRoleResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BulkDeleteRoleResponse.Builder>
co.elastic.clients.elasticsearch.security.BulkDeleteRoleResponse.Builder
- All Implemented Interfaces:
WithJson<BulkDeleteRoleResponse.Builder>
,ObjectBuilder<BulkDeleteRoleResponse>
- Enclosing class:
- BulkDeleteRoleResponse
public static class BulkDeleteRoleResponse.Builder
extends WithJsonObjectBuilderBase<BulkDeleteRoleResponse.Builder>
implements ObjectBuilder<BulkDeleteRoleResponse>
Builder for
BulkDeleteRoleResponse
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aBulkDeleteRoleResponse
.Array of deleted rolesArray of deleted rolesPresent if any deletes resulted in errorsPresent if any deletes resulted in errorsArray of roles that could not be foundArray of roles that could not be foundprotected BulkDeleteRoleResponse.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deleted
Array of deleted rolesAPI name:
deleted
Adds all elements of
list
todeleted
. -
deleted
Array of deleted rolesAPI name:
deleted
Adds one or more values to
deleted
. -
notFound
Array of roles that could not be foundAPI name:
not_found
Adds all elements of
list
tonotFound
. -
notFound
Array of roles that could not be foundAPI name:
not_found
Adds one or more values to
notFound
. -
errors
Present if any deletes resulted in errorsAPI name:
errors
-
errors
public final BulkDeleteRoleResponse.Builder errors(Function<BulkError.Builder, ObjectBuilder<BulkError>> fn) Present if any deletes resulted in errorsAPI name:
errors
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<BulkDeleteRoleResponse.Builder>
-
build
Builds aBulkDeleteRoleResponse
.- Specified by:
build
in interfaceObjectBuilder<BulkDeleteRoleResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-