Class PutRoleResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<PutRoleResponse.Builder>
co.elastic.clients.elasticsearch.security.PutRoleResponse.Builder
- All Implemented Interfaces:
WithJson<PutRoleResponse.Builder>,ObjectBuilder<PutRoleResponse>
- Enclosing class:
- PutRoleResponse
public static class PutRoleResponse.Builder
extends WithJsonObjectBuilderBase<PutRoleResponse.Builder>
implements ObjectBuilder<PutRoleResponse>
Builder for
PutRoleResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPutRoleResponse.final PutRoleResponse.Builderrole(CreatedStatus value) Required - When an existing role is updated,createdis set tofalse.final PutRoleResponse.BuilderRequired - When an existing role is updated,createdis set tofalse.protected PutRoleResponse.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
-
role
Required - When an existing role is updated,createdis set tofalse.API name:
role -
role
public final PutRoleResponse.Builder role(Function<CreatedStatus.Builder, ObjectBuilder<CreatedStatus>> fn) Required - When an existing role is updated,createdis set tofalse.API name:
role -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<PutRoleResponse.Builder>
-
build
Builds aPutRoleResponse.- Specified by:
buildin interfaceObjectBuilder<PutRoleResponse>- Throws:
NullPointerException- if some of the required fields are null.
-