Class RoleMapping.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.xpack.usage.RoleMapping.Builder
- All Implemented Interfaces:
ObjectBuilder<RoleMapping>
- Enclosing class:
- RoleMapping
public static class RoleMapping.Builder extends ObjectBuilderBase implements ObjectBuilder<RoleMapping>
Builder for
RoleMapping
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description RoleMapping
build()
Builds aRoleMapping
.RoleMapping.Builder
enabled(int value)
Required - API name:enabled
RoleMapping.Builder
size(int value)
Required - API name:size
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Required - API name:enabled
-
size
Required - API name:size
-
build
Builds aRoleMapping
.- Specified by:
build
in interfaceObjectBuilder<RoleMapping>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-