Class InfoResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<InfoResponse.Builder>
co.elastic.clients.elasticsearch.core.InfoResponse.Builder
- All Implemented Interfaces:
WithJson<InfoResponse.Builder>,ObjectBuilder<InfoResponse>
- Enclosing class:
- InfoResponse
public static class InfoResponse.Builder
extends WithJsonObjectBuilderBase<InfoResponse.Builder>
implements ObjectBuilder<InfoResponse>
Builder for
InfoResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aInfoResponse.final InfoResponse.BuilderclusterName(String value) Required - The responding cluster's name.final InfoResponse.BuilderclusterUuid(String value) Required - API name:cluster_uuidfinal InfoResponse.BuilderRequired - The responding node's name.protected InfoResponse.Builderself()final InfoResponse.BuilderRequired - API name:taglinefinal InfoResponse.Builderversion(ElasticsearchVersionInfo value) Required - Version information for the Elasticsearch cluster.final InfoResponse.BuilderRequired - Version information for the Elasticsearch cluster.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
-
clusterName
Required - The responding cluster's name.API name:
cluster_name -
clusterUuid
Required - API name:cluster_uuid -
name
Required - The responding node's name.API name:
name -
tagline
Required - API name:tagline -
version
Required - Version information for the Elasticsearch cluster. In Serverless,version.numberalways reports the next target Elasticsearch release version at the time of the request, not an actual deployed version. The version number is provided to maintain client compatibility but is not meaningful for assessing feature availability. Usebuild_flavor: serverlessto detect a Serverless environment.API name:
version -
version
public final InfoResponse.Builder version(Function<ElasticsearchVersionInfo.Builder, ObjectBuilder<ElasticsearchVersionInfo>> fn) Required - Version information for the Elasticsearch cluster. In Serverless,version.numberalways reports the next target Elasticsearch release version at the time of the request, not an actual deployed version. The version number is provided to maintain client compatibility but is not meaningful for assessing feature availability. Usebuild_flavor: serverlessto detect a Serverless environment.API name:
version -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<InfoResponse.Builder>
-
build
Builds aInfoResponse.- Specified by:
buildin interfaceObjectBuilder<InfoResponse>- Throws:
NullPointerException- if some of the required fields are null.
-