Class ApplicationPrivileges.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.security.ApplicationPrivileges.Builder
- All Implemented Interfaces:
ObjectBuilder<ApplicationPrivileges>
- Enclosing class:
- ApplicationPrivileges
public static class ApplicationPrivileges.Builder extends ObjectBuilderBase implements ObjectBuilder<ApplicationPrivileges>
Builder for
ApplicationPrivileges
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ApplicationPrivileges.Builder
application(java.lang.String value)
Required - The name of the application to which this entry applies.ApplicationPrivileges
build()
Builds aApplicationPrivileges
.ApplicationPrivileges.Builder
privileges(java.lang.String value, java.lang.String... values)
Required - A list of strings, where each element is the name of an application privilege or action.ApplicationPrivileges.Builder
privileges(java.util.List<java.lang.String> list)
Required - A list of strings, where each element is the name of an application privilege or action.ApplicationPrivileges.Builder
resources(java.lang.String value, java.lang.String... values)
Required - A list resources to which the privileges are applied.ApplicationPrivileges.Builder
resources(java.util.List<java.lang.String> list)
Required - A list resources to which the privileges are applied.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 to which this entry applies.API name:
application
-
privileges
Required - A list of strings, where each element is the name of an application privilege or action.API name:
privileges
Adds all elements of
list
toprivileges
. -
privileges
public final ApplicationPrivileges.Builder privileges(java.lang.String value, java.lang.String... values)Required - A list of strings, where each element is the name of an application privilege or action.API name:
privileges
Adds one or more values to
privileges
. -
resources
Required - A list resources to which the privileges are applied.API name:
resources
Adds all elements of
list
toresources
. -
resources
public final ApplicationPrivileges.Builder resources(java.lang.String value, java.lang.String... values)Required - A list resources to which the privileges are applied.API name:
resources
Adds one or more values to
resources
. -
build
Builds aApplicationPrivileges
.- Specified by:
build
in interfaceObjectBuilder<ApplicationPrivileges>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-