Class RoleMapping.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<RoleMapping.Builder>
co.elastic.clients.elasticsearch.xpack.usage.RoleMapping.Builder
- All Implemented Interfaces:
WithJson<RoleMapping.Builder>,ObjectBuilder<RoleMapping>
- Enclosing class:
- RoleMapping
public static class RoleMapping.Builder
extends WithJsonObjectBuilderBase<RoleMapping.Builder>
implements ObjectBuilder<RoleMapping>
Builder for
RoleMapping.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRoleMapping.final RoleMapping.Builderenabled(int value) Required - API name:enabledprotected RoleMapping.Builderself()final RoleMapping.Buildersize(int value) Required - API name:sizeMethods 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
-
enabled
Required - API name:enabled -
size
Required - API name:size -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<RoleMapping.Builder>
-
build
Builds aRoleMapping.- Specified by:
buildin interfaceObjectBuilder<RoleMapping>- Throws:
NullPointerException- if some of the required fields are null.
-