Class DeprecationsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DeprecationsResponse.Builder>
co.elastic.clients.elasticsearch.migration.DeprecationsResponse.Builder
- All Implemented Interfaces:
WithJson<DeprecationsResponse.Builder>
,ObjectBuilder<DeprecationsResponse>
- Enclosing class:
- DeprecationsResponse
public static class DeprecationsResponse.Builder
extends WithJsonObjectBuilderBase<DeprecationsResponse.Builder>
implements ObjectBuilder<DeprecationsResponse>
Builder for
DeprecationsResponse
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aDeprecationsResponse
.clusterSettings
(Deprecation value, Deprecation... values) Required - API name:cluster_settings
Required - API name:cluster_settings
clusterSettings
(List<Deprecation> list) Required - API name:cluster_settings
indexSettings
(String key, List<Deprecation> value) Required - API name:index_settings
indexSettings
(Map<String, List<Deprecation>> map) Required - API name:index_settings
mlSettings
(Deprecation value, Deprecation... values) Required - API name:ml_settings
Required - API name:ml_settings
mlSettings
(List<Deprecation> list) Required - API name:ml_settings
nodeSettings
(Deprecation value, Deprecation... values) Required - API name:node_settings
Required - API name:node_settings
nodeSettings
(List<Deprecation> list) Required - API name:node_settings
protected DeprecationsResponse.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterSettings
Required - API name:cluster_settings
Adds all elements of
list
toclusterSettings
. -
clusterSettings
Required - API name:cluster_settings
Adds one or more values to
clusterSettings
. -
clusterSettings
public final DeprecationsResponse.Builder clusterSettings(Function<Deprecation.Builder, ObjectBuilder<Deprecation>> fn) Required - API name:cluster_settings
Adds a value to
clusterSettings
using a builder lambda. -
indexSettings
Required - API name:index_settings
Adds all entries of
map
toindexSettings
. -
indexSettings
Required - API name:index_settings
Adds an entry to
indexSettings
. -
nodeSettings
Required - API name:node_settings
Adds all elements of
list
tonodeSettings
. -
nodeSettings
Required - API name:node_settings
Adds one or more values to
nodeSettings
. -
nodeSettings
public final DeprecationsResponse.Builder nodeSettings(Function<Deprecation.Builder, ObjectBuilder<Deprecation>> fn) Required - API name:node_settings
Adds a value to
nodeSettings
using a builder lambda. -
mlSettings
Required - API name:ml_settings
Adds all elements of
list
tomlSettings
. -
mlSettings
Required - API name:ml_settings
Adds one or more values to
mlSettings
. -
mlSettings
public final DeprecationsResponse.Builder mlSettings(Function<Deprecation.Builder, ObjectBuilder<Deprecation>> fn) Required - API name:ml_settings
Adds a value to
mlSettings
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<DeprecationsResponse.Builder>
-
build
Builds aDeprecationsResponse
.- Specified by:
build
in interfaceObjectBuilder<DeprecationsResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-