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 SummaryConstructors
- 
Method SummaryModifier 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.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
applicationRequired - The name of the application to which this entry applies.API name: application
- 
privilegesRequired - A list of strings, where each element is the name of an application privilege or action.API name: privilegesAdds all elements of listtoprivileges.
- 
privilegesRequired - 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.
- 
resourcesRequired - A list resources to which the privileges are applied.API name: resourcesAdds all elements of listtoresources.
- 
resourcesRequired - A list resources to which the privileges are applied.API name: resourcesAdds one or more values to resources.
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<ApplicationPrivileges.Builder>
 
- 
buildBuilds aApplicationPrivileges.- Specified by:
- buildin interface- ObjectBuilder<ApplicationPrivileges>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-