Class GetAutoscalingCapacityResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GetAutoscalingCapacityResponse.Builder>
co.elastic.clients.elasticsearch.autoscaling.GetAutoscalingCapacityResponse.Builder
- All Implemented Interfaces:
WithJson<GetAutoscalingCapacityResponse.Builder>
,ObjectBuilder<GetAutoscalingCapacityResponse>
- Enclosing class:
- GetAutoscalingCapacityResponse
public static class GetAutoscalingCapacityResponse.Builder
extends WithJsonObjectBuilderBase<GetAutoscalingCapacityResponse.Builder>
implements ObjectBuilder<GetAutoscalingCapacityResponse>
Builder for
GetAutoscalingCapacityResponse
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aGetAutoscalingCapacityResponse
.policies
(String key, AutoscalingDeciders value) Required - API name:policies
Required - API name:policies
policies
(Map<String, AutoscalingDeciders> map) Required - API name:policies
protected GetAutoscalingCapacityResponse.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
-
policies
Required - API name:policies
Adds all entries of
map
topolicies
. -
policies
Required - API name:policies
Adds an entry to
policies
. -
policies
public final GetAutoscalingCapacityResponse.Builder policies(String key, Function<AutoscalingDeciders.Builder, ObjectBuilder<AutoscalingDeciders>> fn) Required - API name:policies
Adds an entry to
policies
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<GetAutoscalingCapacityResponse.Builder>
-
build
Builds aGetAutoscalingCapacityResponse
.- Specified by:
build
in interfaceObjectBuilder<GetAutoscalingCapacityResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-