Class ApplicationPrivilegesCheck.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.security.has_privileges.ApplicationPrivilegesCheck.Builder
- All Implemented Interfaces:
ObjectBuilder<ApplicationPrivilegesCheck>
- Enclosing class:
- ApplicationPrivilegesCheck
public static class ApplicationPrivilegesCheck.Builder extends ObjectBuilderBase implements ObjectBuilder<ApplicationPrivilegesCheck>
Builder for
ApplicationPrivilegesCheck.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ApplicationPrivilegesCheck.Builderapplication(java.lang.String value)Required - The name of the application.ApplicationPrivilegesCheckbuild()Builds aApplicationPrivilegesCheck.ApplicationPrivilegesCheck.Builderprivileges(java.lang.String value, java.lang.String... values)Required - A list of the privileges that you want to check for the specified resources.ApplicationPrivilegesCheck.Builderprivileges(java.util.List<java.lang.String> list)Required - A list of the privileges that you want to check for the specified resources.ApplicationPrivilegesCheck.Builderresources(java.lang.String value, java.lang.String... values)Required - A list of resource names against which the privileges should be checkedApplicationPrivilegesCheck.Builderresources(java.util.List<java.lang.String> list)Required - A list of resource names against which the privileges should be checkedMethods 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
-
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:
privilegesAdds all elements of
listtoprivileges. -
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:
privilegesAdds one or more values to
privileges. -
resources
Required - A list of resource names against which the privileges should be checkedAPI name:
resourcesAdds all elements of
listtoresources. -
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:
resourcesAdds one or more values to
resources. -
build
Builds aApplicationPrivilegesCheck.- Specified by:
buildin interfaceObjectBuilder<ApplicationPrivilegesCheck>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-