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.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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:
deletedAdds all elements of
listtodeleted. -
deleted
Array of deleted rolesAPI name:
deletedAdds one or more values to
deleted. -
notFound
Array of roles that could not be foundAPI name:
not_foundAdds all elements of
listtonotFound. -
notFound
Array of roles that could not be foundAPI name:
not_foundAdds 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:
selfin classWithJsonObjectBuilderBase<BulkDeleteRoleResponse.Builder>
-
build
Builds aBulkDeleteRoleResponse.- Specified by:
buildin interfaceObjectBuilder<BulkDeleteRoleResponse>- Throws:
NullPointerException- if some of the required fields are null.
-