Class MasterIsStableIndicatorDetails.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<MasterIsStableIndicatorDetails.Builder>
co.elastic.clients.elasticsearch.core.health_report.MasterIsStableIndicatorDetails.Builder
- All Implemented Interfaces:
WithJson<MasterIsStableIndicatorDetails.Builder>,ObjectBuilder<MasterIsStableIndicatorDetails>
- Enclosing class:
- MasterIsStableIndicatorDetails
public static class MasterIsStableIndicatorDetails.Builder
extends WithJsonObjectBuilderBase<MasterIsStableIndicatorDetails.Builder>
implements ObjectBuilder<MasterIsStableIndicatorDetails>
Builder for
MasterIsStableIndicatorDetails.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aMasterIsStableIndicatorDetails.clusterFormation(MasterIsStableIndicatorClusterFormationNode value, MasterIsStableIndicatorClusterFormationNode... values) API name:cluster_formationclusterFormation(Function<MasterIsStableIndicatorClusterFormationNode.Builder, ObjectBuilder<MasterIsStableIndicatorClusterFormationNode>> fn) API name:cluster_formationAPI name:cluster_formationcurrentMaster(IndicatorNode value) Required - API name:current_masterRequired - API name:current_masterAPI name:exception_fetching_historyexceptionFetchingHistory(Function<MasterIsStableIndicatorExceptionFetchingHistory.Builder, ObjectBuilder<MasterIsStableIndicatorExceptionFetchingHistory>> fn) API name:exception_fetching_historyrecentMasters(IndicatorNode value, IndicatorNode... values) Required - API name:recent_mastersRequired - API name:recent_mastersrecentMasters(List<IndicatorNode> list) Required - API name:recent_mastersprotected MasterIsStableIndicatorDetails.Builderself()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
-
currentMaster
Required - API name:current_master -
currentMaster
public final MasterIsStableIndicatorDetails.Builder currentMaster(Function<IndicatorNode.Builder, ObjectBuilder<IndicatorNode>> fn) Required - API name:current_master -
recentMasters
Required - API name:recent_mastersAdds all elements of
listtorecentMasters. -
recentMasters
public final MasterIsStableIndicatorDetails.Builder recentMasters(IndicatorNode value, IndicatorNode... values) Required - API name:recent_mastersAdds one or more values to
recentMasters. -
recentMasters
public final MasterIsStableIndicatorDetails.Builder recentMasters(Function<IndicatorNode.Builder, ObjectBuilder<IndicatorNode>> fn) Required - API name:recent_mastersAdds a value to
recentMastersusing a builder lambda. -
exceptionFetchingHistory
public final MasterIsStableIndicatorDetails.Builder exceptionFetchingHistory(@Nullable MasterIsStableIndicatorExceptionFetchingHistory value) API name:exception_fetching_history -
exceptionFetchingHistory
public final MasterIsStableIndicatorDetails.Builder exceptionFetchingHistory(Function<MasterIsStableIndicatorExceptionFetchingHistory.Builder, ObjectBuilder<MasterIsStableIndicatorExceptionFetchingHistory>> fn) API name:exception_fetching_history -
clusterFormation
public final MasterIsStableIndicatorDetails.Builder clusterFormation(List<MasterIsStableIndicatorClusterFormationNode> list) API name:cluster_formationAdds all elements of
listtoclusterFormation. -
clusterFormation
public final MasterIsStableIndicatorDetails.Builder clusterFormation(MasterIsStableIndicatorClusterFormationNode value, MasterIsStableIndicatorClusterFormationNode... values) API name:cluster_formationAdds one or more values to
clusterFormation. -
clusterFormation
public final MasterIsStableIndicatorDetails.Builder clusterFormation(Function<MasterIsStableIndicatorClusterFormationNode.Builder, ObjectBuilder<MasterIsStableIndicatorClusterFormationNode>> fn) API name:cluster_formationAdds a value to
clusterFormationusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<MasterIsStableIndicatorDetails.Builder>
-
build
Builds aMasterIsStableIndicatorDetails.- Specified by:
buildin interfaceObjectBuilder<MasterIsStableIndicatorDetails>- Throws:
NullPointerException- if some of the required fields are null.
-