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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetAutoscalingCapacityResponse.policies(String key, AutoscalingDeciders value) Required - API name:policiesRequired - API name:policiespolicies(Map<String, AutoscalingDeciders> map) Required - API name:policiesprotected GetAutoscalingCapacityResponse.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
-
policies
Required - API name:policiesAdds all entries of
maptopolicies. -
policies
Required - API name:policiesAdds an entry to
policies. -
policies
public final GetAutoscalingCapacityResponse.Builder policies(String key, Function<AutoscalingDeciders.Builder, ObjectBuilder<AutoscalingDeciders>> fn) Required - API name:policiesAdds an entry to
policiesusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<GetAutoscalingCapacityResponse.Builder>
-
build
Builds aGetAutoscalingCapacityResponse.- Specified by:
buildin interfaceObjectBuilder<GetAutoscalingCapacityResponse>- Throws:
NullPointerException- if some of the required fields are null.
-