Class DeprecationsResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.migration.DeprecationsResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<DeprecationsResponse>
- Enclosing class:
- DeprecationsResponse
public static class DeprecationsResponse.Builder extends java.lang.Object implements ObjectBuilder<DeprecationsResponse>
Builder for
DeprecationsResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
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
-
clusterSettings
Required - API name:cluster_settings
-
clusterSettings
Required - API name:cluster_settings
-
addClusterSettings
Add a value toclusterSettings(List)
, creating the list if needed. -
clusterSettings
public DeprecationsResponse.Builder clusterSettings(java.util.function.Function<Deprecation.Builder,ObjectBuilder<Deprecation>> fn)SetclusterSettings(List)
to a singleton list. -
addClusterSettings
public DeprecationsResponse.Builder addClusterSettings(java.util.function.Function<Deprecation.Builder,ObjectBuilder<Deprecation>> fn)Add a value toclusterSettings(List)
, creating the list if needed. -
indexSettings
public DeprecationsResponse.Builder indexSettings(java.util.Map<java.lang.String,java.util.List<Deprecation>> value)Required - API name:index_settings
-
putIndexSettings
public DeprecationsResponse.Builder putIndexSettings(java.lang.String key, java.util.List<Deprecation> value)Add a key/value toindexSettings(Map)
, creating the map if needed. -
nodeSettings
Required - API name:node_settings
-
nodeSettings
Required - API name:node_settings
-
addNodeSettings
Add a value tonodeSettings(List)
, creating the list if needed. -
nodeSettings
public DeprecationsResponse.Builder nodeSettings(java.util.function.Function<Deprecation.Builder,ObjectBuilder<Deprecation>> fn)SetnodeSettings(List)
to a singleton list. -
addNodeSettings
public DeprecationsResponse.Builder addNodeSettings(java.util.function.Function<Deprecation.Builder,ObjectBuilder<Deprecation>> fn)Add a value tonodeSettings(List)
, creating the list if needed. -
mlSettings
Required - API name:ml_settings
-
mlSettings
Required - API name:ml_settings
-
addMlSettings
Add a value tomlSettings(List)
, creating the list if needed. -
mlSettings
public DeprecationsResponse.Builder mlSettings(java.util.function.Function<Deprecation.Builder,ObjectBuilder<Deprecation>> fn)SetmlSettings(List)
to a singleton list. -
addMlSettings
public DeprecationsResponse.Builder addMlSettings(java.util.function.Function<Deprecation.Builder,ObjectBuilder<Deprecation>> fn)Add a value tomlSettings(List)
, creating the list if needed. -
build
Builds aDeprecationsResponse
.- Specified by:
build
in interfaceObjectBuilder<DeprecationsResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-