Class DataSourcePrivileges.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DataSourcePrivileges.Builder>
co.elastic.clients.elasticsearch.security.DataSourcePrivileges.Builder
- All Implemented Interfaces:
WithJson<DataSourcePrivileges.Builder>,ObjectBuilder<DataSourcePrivileges>
- Enclosing class:
- DataSourcePrivileges
public static class DataSourcePrivileges.Builder
extends WithJsonObjectBuilderBase<DataSourcePrivileges.Builder>
implements ObjectBuilder<DataSourcePrivileges>
Builder for
DataSourcePrivileges.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDataSourcePrivileges.Required - A list of data source names or wildcard patterns to which the permissions in this entry apply.Required - A list of data source names or wildcard patterns to which the permissions in this entry apply.privileges(DataSourcePrivilege value, DataSourcePrivilege... values) Required - The data source privileges that owners of the role have for the specified data sources.privileges(String value, String... values) Required - The data source privileges that owners of the role have for the specified data sources.privileges(List<String> list) Required - The data source privileges that owners of the role have for the specified data sources.protected DataSourcePrivileges.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
-
names
Required - A list of data source names or wildcard patterns to which the permissions in this entry apply.API name:
namesAdds all elements of
listtonames. -
names
Required - A list of data source names or wildcard patterns to which the permissions in this entry apply.API name:
namesAdds one or more values to
names. -
privileges
Required - The data source privileges that owners of the role have for the specified data sources.API name:
privilegesAdds all elements of
listtoprivileges. -
privileges
Required - The data source privileges that owners of the role have for the specified data sources.API name:
privilegesAdds one or more values to
privileges. -
privileges
public final DataSourcePrivileges.Builder privileges(DataSourcePrivilege value, DataSourcePrivilege... values) Required - The data source privileges that owners of the role have for the specified data sources.API name:
privilegesAdds one or more enum values to
privileges. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DataSourcePrivileges.Builder>
-
build
Builds aDataSourcePrivileges.- Specified by:
buildin interfaceObjectBuilder<DataSourcePrivileges>- Throws:
NullPointerException- if some of the required fields are null.
-