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
-
Method Summary
Modifier and TypeMethodDescriptionapplication
(String value) Required - The name of the application.build()
Builds aApplicationPrivilegesCheck
.privileges
(String value, String... values) Required - A list of the privileges that you want to check for the specified resources.privileges
(List<String> list) Required - A list of the privileges that you want to check for the specified resources.Required - A list of resource names against which the privileges should be checkedRequired - 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
-
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
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
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:
NullPointerException
- if some of the required fields are null.
-