Class GetUserPrivilegesResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GetUserPrivilegesResponse.Builder>
co.elastic.clients.elasticsearch.security.GetUserPrivilegesResponse.Builder
- All Implemented Interfaces:
WithJson<GetUserPrivilegesResponse.Builder>,ObjectBuilder<GetUserPrivilegesResponse>
- Enclosing class:
- GetUserPrivilegesResponse
public static class GetUserPrivilegesResponse.Builder extends WithJsonObjectBuilderBase<GetUserPrivilegesResponse.Builder> implements ObjectBuilder<GetUserPrivilegesResponse>
Builder for
GetUserPrivilegesResponse.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description GetUserPrivilegesResponse.Builderapplications(ApplicationPrivileges value, ApplicationPrivileges... values)Required - API name:applicationsGetUserPrivilegesResponse.Builderapplications(java.util.function.Function<ApplicationPrivileges.Builder,ObjectBuilder<ApplicationPrivileges>> fn)Required - API name:applicationsGetUserPrivilegesResponse.Builderapplications(java.util.List<ApplicationPrivileges> list)Required - API name:applicationsGetUserPrivilegesResponsebuild()Builds aGetUserPrivilegesResponse.GetUserPrivilegesResponse.Buildercluster(java.lang.String value, java.lang.String... values)Required - API name:clusterGetUserPrivilegesResponse.Buildercluster(java.util.List<java.lang.String> list)Required - API name:clusterGetUserPrivilegesResponse.Builderglobal(GlobalPrivilege value, GlobalPrivilege... values)Required - API name:globalGetUserPrivilegesResponse.Builderglobal(java.util.function.Function<GlobalPrivilege.Builder,ObjectBuilder<GlobalPrivilege>> fn)Required - API name:globalGetUserPrivilegesResponse.Builderglobal(java.util.List<GlobalPrivilege> list)Required - API name:globalGetUserPrivilegesResponse.Builderindices(IndicesPrivileges value, IndicesPrivileges... values)Required - In this contextIndicesPrivileges.queryproperty can only be a string, seeIndicesPrivilegesdocumentation for detail.GetUserPrivilegesResponse.Builderindices(java.util.function.Function<IndicesPrivileges.Builder,ObjectBuilder<IndicesPrivileges>> fn)Required - In this contextIndicesPrivileges.queryproperty can only be a string, seeIndicesPrivilegesdocumentation for detail.GetUserPrivilegesResponse.Builderindices(java.util.List<IndicesPrivileges> list)Required - In this contextIndicesPrivileges.queryproperty can only be a string, seeIndicesPrivilegesdocumentation for detail.GetUserPrivilegesResponse.BuilderrunAs(java.lang.String value, java.lang.String... values)Required - API name:run_asGetUserPrivilegesResponse.BuilderrunAs(java.util.List<java.lang.String> list)Required - API name:run_asprotected GetUserPrivilegesResponse.Builderself()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
-
applications
public final GetUserPrivilegesResponse.Builder applications(java.util.List<ApplicationPrivileges> list)Required - API name:applicationsAdds all elements of
listtoapplications. -
applications
public final GetUserPrivilegesResponse.Builder applications(ApplicationPrivileges value, ApplicationPrivileges... values)Required - API name:applicationsAdds one or more values to
applications. -
applications
public final GetUserPrivilegesResponse.Builder applications(java.util.function.Function<ApplicationPrivileges.Builder,ObjectBuilder<ApplicationPrivileges>> fn)Required - API name:applicationsAdds a value to
applicationsusing a builder lambda. -
cluster
Required - API name:clusterAdds all elements of
listtocluster. -
cluster
public final GetUserPrivilegesResponse.Builder cluster(java.lang.String value, java.lang.String... values)Required - API name:clusterAdds one or more values to
cluster. -
global
Required - API name:globalAdds all elements of
listtoglobal. -
global
public final GetUserPrivilegesResponse.Builder global(GlobalPrivilege value, GlobalPrivilege... values)Required - API name:globalAdds one or more values to
global. -
global
public final GetUserPrivilegesResponse.Builder global(java.util.function.Function<GlobalPrivilege.Builder,ObjectBuilder<GlobalPrivilege>> fn)Required - API name:globalAdds a value to
globalusing a builder lambda. -
indices
Required - In this contextIndicesPrivileges.queryproperty can only be a string, seeIndicesPrivilegesdocumentation for detail.API name:
indicesAdds all elements of
listtoindices. -
indices
public final GetUserPrivilegesResponse.Builder indices(IndicesPrivileges value, IndicesPrivileges... values)Required - In this contextIndicesPrivileges.queryproperty can only be a string, seeIndicesPrivilegesdocumentation for detail.API name:
indicesAdds one or more values to
indices. -
indices
public final GetUserPrivilegesResponse.Builder indices(java.util.function.Function<IndicesPrivileges.Builder,ObjectBuilder<IndicesPrivileges>> fn)Required - In this contextIndicesPrivileges.queryproperty can only be a string, seeIndicesPrivilegesdocumentation for detail.API name:
indicesAdds a value to
indicesusing a builder lambda. -
runAs
Required - API name:run_asAdds all elements of
listtorunAs. -
runAs
public final GetUserPrivilegesResponse.Builder runAs(java.lang.String value, java.lang.String... values)Required - API name:run_asAdds one or more values to
runAs. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<GetUserPrivilegesResponse.Builder>
-
build
Builds aGetUserPrivilegesResponse.- Specified by:
buildin interfaceObjectBuilder<GetUserPrivilegesResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-