Class ApplicationPrivilegesCheck.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ApplicationPrivilegesCheck.Builder>
co.elastic.clients.elasticsearch.security.has_privileges.ApplicationPrivilegesCheck.Builder
- All Implemented Interfaces:
WithJson<ApplicationPrivilegesCheck.Builder>
,ObjectBuilder<ApplicationPrivilegesCheck>
- Enclosing class:
- ApplicationPrivilegesCheck
public static class ApplicationPrivilegesCheck.Builder extends WithJsonObjectBuilderBase<ApplicationPrivilegesCheck.Builder> implements ObjectBuilder<ApplicationPrivilegesCheck>
Builder for
ApplicationPrivilegesCheck
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ApplicationPrivilegesCheck.Builder
application(java.lang.String value)
Required - The name of the application.ApplicationPrivilegesCheck
build()
Builds aApplicationPrivilegesCheck
.ApplicationPrivilegesCheck.Builder
privileges(java.lang.String value, java.lang.String... values)
Required - A list of the privileges that you want to check for the specified resources.ApplicationPrivilegesCheck.Builder
privileges(java.util.List<java.lang.String> list)
Required - A list of the privileges that you want to check for the specified resources.ApplicationPrivilegesCheck.Builder
resources(java.lang.String value, java.lang.String... values)
Required - A list of resource names against which the privileges should be checkedApplicationPrivilegesCheck.Builder
resources(java.util.List<java.lang.String> list)
Required - A list of resource names against which the privileges should be checkedprotected ApplicationPrivilegesCheck.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
-
application
Required - The name of the application.API name:
application
-
privileges
Required - A list of the privileges that you want to check for the specified resources. May be either application privilege names, or the names of actions that are granted by those privilegesAPI name:
privileges
Adds all elements of
list
toprivileges
. -
privileges
public final ApplicationPrivilegesCheck.Builder privileges(java.lang.String value, java.lang.String... values)Required - A list of the privileges that you want to check for the specified resources. May be either application privilege names, or the names of actions that are granted by those privilegesAPI name:
privileges
Adds one or more values to
privileges
. -
resources
Required - A list of resource names against which the privileges should be checkedAPI name:
resources
Adds all elements of
list
toresources
. -
resources
public final ApplicationPrivilegesCheck.Builder resources(java.lang.String value, java.lang.String... values)Required - A list of resource names against which the privileges should be checkedAPI name:
resources
Adds one or more values to
resources
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ApplicationPrivilegesCheck.Builder>
-
build
Builds aApplicationPrivilegesCheck
.- Specified by:
build
in interfaceObjectBuilder<ApplicationPrivilegesCheck>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-