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