Class GetFeaturesResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GetFeaturesResponse.Builder>
co.elastic.clients.elasticsearch.features.GetFeaturesResponse.Builder
- All Implemented Interfaces:
WithJson<GetFeaturesResponse.Builder>
,ObjectBuilder<GetFeaturesResponse>
- Enclosing class:
- GetFeaturesResponse
public static class GetFeaturesResponse.Builder
extends WithJsonObjectBuilderBase<GetFeaturesResponse.Builder>
implements ObjectBuilder<GetFeaturesResponse>
Builder for
GetFeaturesResponse
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aGetFeaturesResponse
.Required - API name:features
Required - API name:features
Required - API name:features
protected GetFeaturesResponse.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
-
features
Required - API name:features
Adds all elements of
list
tofeatures
. -
features
Required - API name:features
Adds one or more values to
features
. -
features
public final GetFeaturesResponse.Builder features(Function<Feature.Builder, ObjectBuilder<Feature>> fn) Required - API name:features
Adds a value to
features
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<GetFeaturesResponse.Builder>
-
build
Builds aGetFeaturesResponse
.- Specified by:
build
in interfaceObjectBuilder<GetFeaturesResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-