Class Sql.Builder
java.lang.Object
co.elastic.clients.elasticsearch.xpack.usage.Base.AbstractBuilder<Sql.Builder>
co.elastic.clients.elasticsearch.xpack.usage.Sql.Builder
- All Implemented Interfaces:
ObjectBuilder<Sql>
- Enclosing class:
- Sql
public static class Sql.Builder extends Base.AbstractBuilder<Sql.Builder> implements ObjectBuilder<Sql>
Builder for
Sql
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description Sql
build()
Builds aSql
.Sql.Builder
features(java.util.Map<java.lang.String,java.lang.Integer> value)
Required - API name:features
Sql.Builder
putFeatures(java.lang.String key, java.lang.Integer value)
Add a key/value tofeatures(Map)
, creating the map if needed.Sql.Builder
putQueries(java.lang.String key, Query value)
Add a key/value toqueries(Map)
, creating the map if needed.Sql.Builder
putQueries(java.lang.String key, java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)
Add a key/value toqueries(Map)
, creating the map if needed.Sql.Builder
queries(java.lang.String key, java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)
Setqueries(Map)
to a singleton map.Sql.Builder
queries(java.util.Map<java.lang.String,Query> value)
Required - API name:queries
protected Sql.Builder
self()
Methods inherited from class co.elastic.clients.elasticsearch.xpack.usage.Base.AbstractBuilder
available, enabled
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
-
features
Required - API name:features
-
putFeatures
Add a key/value tofeatures(Map)
, creating the map if needed. -
queries
Required - API name:queries
-
putQueries
Add a key/value toqueries(Map)
, creating the map if needed. -
queries
public Sql.Builder queries(java.lang.String key, java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)Setqueries(Map)
to a singleton map. -
putQueries
public Sql.Builder putQueries(java.lang.String key, java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)Add a key/value toqueries(Map)
, creating the map if needed. -
self
- Specified by:
self
in classBase.AbstractBuilder<Sql.Builder>
-
build
Builds aSql
.- Specified by:
build
in interfaceObjectBuilder<Sql>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-