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