Class HasPrivilegesResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.security.HasPrivilegesResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<HasPrivilegesResponse>
- Enclosing class:
- HasPrivilegesResponse
public static class HasPrivilegesResponse.Builder extends java.lang.Object implements ObjectBuilder<HasPrivilegesResponse>
Builder for
HasPrivilegesResponse.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description HasPrivilegesResponse.Builderapplication(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Boolean>>> value)Required - API name:applicationHasPrivilegesResponsebuild()Builds aHasPrivilegesResponse.HasPrivilegesResponse.Buildercluster(java.util.Map<java.lang.String,java.lang.Boolean> value)Required - API name:clusterHasPrivilegesResponse.BuilderhasAllRequested(boolean value)Required - API name:has_all_requestedHasPrivilegesResponse.Builderindex(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Boolean>> value)Required - API name:indexHasPrivilegesResponse.BuilderputApplication(java.lang.String key, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Boolean>> value)Add a key/value toapplication(Map), creating the map if needed.HasPrivilegesResponse.BuilderputCluster(java.lang.String key, java.lang.Boolean value)Add a key/value tocluster(Map), creating the map if needed.HasPrivilegesResponse.BuilderputIndex(java.lang.String key, java.util.Map<java.lang.String,java.lang.Boolean> value)Add a key/value toindex(Map), creating the map if needed.HasPrivilegesResponse.Builderusername(java.lang.String value)Required - API name:usernameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
application
public HasPrivilegesResponse.Builder application(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Boolean>>> value)Required - API name:application -
putApplication
public HasPrivilegesResponse.Builder putApplication(java.lang.String key, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Boolean>> value)Add a key/value toapplication(Map), creating the map if needed. -
cluster
public HasPrivilegesResponse.Builder cluster(java.util.Map<java.lang.String,java.lang.Boolean> value)Required - API name:cluster -
putCluster
Add a key/value tocluster(Map), creating the map if needed. -
hasAllRequested
Required - API name:has_all_requested -
index
public HasPrivilegesResponse.Builder index(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Boolean>> value)Required - API name:index -
putIndex
public HasPrivilegesResponse.Builder putIndex(java.lang.String key, java.util.Map<java.lang.String,java.lang.Boolean> value)Add a key/value toindex(Map), creating the map if needed. -
username
Required - API name:username -
build
Builds aHasPrivilegesResponse.- Specified by:
buildin interfaceObjectBuilder<HasPrivilegesResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-