Class GetUserPrivilegesResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.security.GetUserPrivilegesResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<GetUserPrivilegesResponse>
- Enclosing class:
- GetUserPrivilegesResponse
public static class GetUserPrivilegesResponse.Builder extends java.lang.Object implements ObjectBuilder<GetUserPrivilegesResponse>
Builder for
GetUserPrivilegesResponse.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
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
-
applications
Required - API name:applications -
applications
Required - API name:applications -
addApplications
Add a value toapplications(List), creating the list if needed. -
applications
public GetUserPrivilegesResponse.Builder applications(java.util.function.Function<ApplicationPrivileges.Builder,ObjectBuilder<ApplicationPrivileges>> fn)Setapplications(List)to a singleton list. -
addApplications
public GetUserPrivilegesResponse.Builder addApplications(java.util.function.Function<ApplicationPrivileges.Builder,ObjectBuilder<ApplicationPrivileges>> fn)Add a value toapplications(List), creating the list if needed. -
cluster
Required - API name:cluster -
cluster
Required - API name:cluster -
addCluster
Add a value tocluster(List), creating the list if needed. -
global
Required - API name:global -
global
Required - API name:global -
addGlobal
Add a value toglobal(List), creating the list if needed. -
global
public GetUserPrivilegesResponse.Builder global(java.util.function.Function<GlobalPrivilege.Builder,ObjectBuilder<GlobalPrivilege>> fn)Setglobal(List)to a singleton list. -
addGlobal
public GetUserPrivilegesResponse.Builder addGlobal(java.util.function.Function<GlobalPrivilege.Builder,ObjectBuilder<GlobalPrivilege>> fn)Add a value toglobal(List), creating the list if needed. -
indices
Required - API name:indices -
indices
Required - API name:indices -
addIndices
Add a value toindices(List), creating the list if needed. -
indices
public GetUserPrivilegesResponse.Builder indices(java.util.function.Function<IndicesPrivileges.Builder,ObjectBuilder<IndicesPrivileges>> fn)Setindices(List)to a singleton list. -
addIndices
public GetUserPrivilegesResponse.Builder addIndices(java.util.function.Function<IndicesPrivileges.Builder,ObjectBuilder<IndicesPrivileges>> fn)Add a value toindices(List), creating the list if needed. -
runAs
Required - API name:run_as -
runAs
Required - API name:run_as -
addRunAs
Add a value torunAs(List), creating the list if needed. -
build
Builds aGetUserPrivilegesResponse.- Specified by:
buildin interfaceObjectBuilder<GetUserPrivilegesResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-