Class BulkPutRoleResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BulkPutRoleResponse.Builder>
co.elastic.clients.elasticsearch.security.BulkPutRoleResponse.Builder
- All Implemented Interfaces:
WithJson<BulkPutRoleResponse.Builder>
,ObjectBuilder<BulkPutRoleResponse>
- Enclosing class:
- BulkPutRoleResponse
public static class BulkPutRoleResponse.Builder
extends WithJsonObjectBuilderBase<BulkPutRoleResponse.Builder>
implements ObjectBuilder<BulkPutRoleResponse>
Builder for
BulkPutRoleResponse
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aBulkPutRoleResponse
.Array of created rolesArray of created rolesPresent if any updates resulted in errorsPresent if any updates resulted in errorsArray of role names without any changesArray of role names without any changesprotected BulkPutRoleResponse.Builder
self()
Array of updated rolesArray of updated rolesMethods 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
-
created
Array of created rolesAPI name:
created
Adds all elements of
list
tocreated
. -
created
Array of created rolesAPI name:
created
Adds one or more values to
created
. -
updated
Array of updated rolesAPI name:
updated
Adds all elements of
list
toupdated
. -
updated
Array of updated rolesAPI name:
updated
Adds one or more values to
updated
. -
noop
Array of role names without any changesAPI name:
noop
Adds all elements of
list
tonoop
. -
noop
Array of role names without any changesAPI name:
noop
Adds one or more values to
noop
. -
errors
Present if any updates resulted in errorsAPI name:
errors
-
errors
public final BulkPutRoleResponse.Builder errors(Function<BulkError.Builder, ObjectBuilder<BulkError>> fn) Present if any updates resulted in errorsAPI name:
errors
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<BulkPutRoleResponse.Builder>
-
build
Builds aBulkPutRoleResponse
.- Specified by:
build
in interfaceObjectBuilder<BulkPutRoleResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-