Class RoleDescriptor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<RoleDescriptor.Builder>
co.elastic.clients.elasticsearch.security.RoleDescriptor.Builder
- All Implemented Interfaces:
WithJson<RoleDescriptor.Builder>,ObjectBuilder<RoleDescriptor>
- Enclosing class:
- RoleDescriptor
public static class RoleDescriptor.Builder extends WithJsonObjectBuilderBase<RoleDescriptor.Builder> implements ObjectBuilder<RoleDescriptor>
Builder for
RoleDescriptor.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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
-
cluster
API name:clusterAdds all elements of
listtocluster. -
cluster
API name:clusterAdds one or more values to
cluster. -
indices
API name:indicesAdds all elements of
listtoindices. -
indices
API name:indicesAdds one or more values to
indices. -
indices
public final RoleDescriptor.Builder indices(java.util.function.Function<IndicesPrivileges.Builder,ObjectBuilder<IndicesPrivileges>> fn)API name:indicesAdds a value to
indicesusing a builder lambda. -
global
API name:globalAdds all elements of
listtoglobal. -
global
API name:globalAdds one or more values to
global. -
global
public final RoleDescriptor.Builder global(java.util.function.Function<GlobalPrivilege.Builder,ObjectBuilder<GlobalPrivilege>> fn)API name:globalAdds a value to
globalusing a builder lambda. -
applications
API name:applicationsAdds all elements of
listtoapplications. -
applications
public final RoleDescriptor.Builder applications(ApplicationPrivileges value, ApplicationPrivileges... values)API name:applicationsAdds one or more values to
applications. -
applications
public final RoleDescriptor.Builder applications(java.util.function.Function<ApplicationPrivileges.Builder,ObjectBuilder<ApplicationPrivileges>> fn)API name:applicationsAdds a value to
applicationsusing a builder lambda. -
metadata
API name:metadataAdds all entries of
maptometadata. -
metadata
API name:metadataAdds an entry to
metadata. -
runAs
API name:run_asAdds all elements of
listtorunAs. -
runAs
API name:run_asAdds one or more values to
runAs. -
transientMetadata
API name:transient_metadata -
transientMetadata
public final RoleDescriptor.Builder transientMetadata(java.util.function.Function<TransientMetadataConfig.Builder,ObjectBuilder<TransientMetadataConfig>> fn)API name:transient_metadata -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<RoleDescriptor.Builder>
-
build
Builds aRoleDescriptor.- Specified by:
buildin interfaceObjectBuilder<RoleDescriptor>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-