Class IndexPrivileges.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.security.create_api_key.IndexPrivileges.Builder
- All Implemented Interfaces:
ObjectBuilder<IndexPrivileges>
- Enclosing class:
- IndexPrivileges
public static class IndexPrivileges.Builder extends ObjectBuilderBase implements ObjectBuilder<IndexPrivileges>
Builder for
IndexPrivileges.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description IndexPrivilegesbuild()Builds aIndexPrivileges.IndexPrivileges.Buildernames(java.lang.String value, java.lang.String... values)Required - API name:namesIndexPrivileges.Buildernames(java.util.List<java.lang.String> list)Required - API name:namesIndexPrivileges.Builderprivileges(IndexPrivilege value, IndexPrivilege... values)Required - API name:privilegesIndexPrivileges.Builderprivileges(java.util.List<IndexPrivilege> list)Required - API name:privilegesMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
names
Required - API name:namesAdds all elements of
listtonames. -
names
Required - API name:namesAdds one or more values to
names. -
privileges
Required - API name:privilegesAdds all elements of
listtoprivileges. -
privileges
Required - API name:privilegesAdds one or more values to
privileges. -
build
Builds aIndexPrivileges.- Specified by:
buildin interfaceObjectBuilder<IndexPrivileges>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-