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 -
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 checked.Required - A list of resource names against which the privileges should be checked.protected ApplicationPrivilegesCheck.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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. It may be either application privilege names or the names of actions that are granted by those privilegesAPI name:
privilegesAdds all elements of
listtoprivileges. -
privileges
Required - A list of the privileges that you want to check for the specified resources. It may be either application privilege names or the names of actions that are granted by those privilegesAPI name:
privilegesAdds one or more values to
privileges. -
resources
Required - A list of resource names against which the privileges should be checked.API name:
resourcesAdds all elements of
listtoresources. -
resources
Required - A list of resource names against which the privileges should be checked.API name:
resourcesAdds one or more values to
resources. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ApplicationPrivilegesCheck.Builder>
-
build
Builds aApplicationPrivilegesCheck.- Specified by:
buildin interfaceObjectBuilder<ApplicationPrivilegesCheck>- Throws:
NullPointerException- if some of the required fields are null.
-