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 Constructor Description Builder() -
Method Summary
Modifier and Type Method Description 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, java.lang.String... values)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> list)Required - A list of strings, where each element is the name of an application privilege or action.ApplicationPrivileges.Builderresources(java.lang.String value, java.lang.String... values)Required - A list resources to which the privileges are applied.ApplicationPrivileges.Builderresources(java.util.List<java.lang.String> list)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, _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 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
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:
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
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:
resourcesAdds one or more values to
resources. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ApplicationPrivileges.Builder>
-
build
Builds aApplicationPrivileges.- Specified by:
buildin interfaceObjectBuilder<ApplicationPrivileges>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-