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 Constructor Description Builder() -
Method Summary
Modifier and Type Method Description GetAutoscalingCapacityResponsebuild()Builds aGetAutoscalingCapacityResponse.GetAutoscalingCapacityResponse.Builderpolicies(java.lang.String key, AutoscalingDeciders value)Required - API name:policiesGetAutoscalingCapacityResponse.Builderpolicies(java.lang.String key, java.util.function.Function<AutoscalingDeciders.Builder,ObjectBuilder<AutoscalingDeciders>> fn)Required - API name:policiesGetAutoscalingCapacityResponse.Builderpolicies(java.util.Map<java.lang.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, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policies
public final GetAutoscalingCapacityResponse.Builder policies(java.util.Map<java.lang.String,AutoscalingDeciders> map)Required - API name:policiesAdds all entries of
maptopolicies. -
policies
public final GetAutoscalingCapacityResponse.Builder policies(java.lang.String key, AutoscalingDeciders value)Required - API name:policiesAdds an entry to
policies. -
policies
public final GetAutoscalingCapacityResponse.Builder policies(java.lang.String key, java.util.function.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:
java.lang.NullPointerException- if some of the required fields are null.
-