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.Builder
addPrivileges(java.lang.String value)
Add a value toprivileges(List)
, creating the list if needed.ApplicationPrivileges.Builder
addResources(java.lang.String value)
Add a value toresources(List)
, creating the list if needed.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)
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> value)
Required - A list of strings, where each element is the name of an application privilege or action.ApplicationPrivileges.Builder
resources(java.lang.String... value)
Required - A list resources to which the privileges are applied.ApplicationPrivileges.Builder
resources(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:
build
in interfaceObjectBuilder<ApplicationPrivileges>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-