Class GetAutoscalingCapacityResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.autoscaling.GetAutoscalingCapacityResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<GetAutoscalingCapacityResponse>
- Enclosing class:
- GetAutoscalingCapacityResponse
public static class GetAutoscalingCapacityResponse.Builder extends java.lang.Object implements ObjectBuilder<GetAutoscalingCapacityResponse>
Builder for
GetAutoscalingCapacityResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GetAutoscalingCapacityResponse
build()
Builds aGetAutoscalingCapacityResponse
.GetAutoscalingCapacityResponse.Builder
policies(java.lang.String key, java.util.function.Function<AutoscalingDeciders.Builder,ObjectBuilder<AutoscalingDeciders>> fn)
Setpolicies(Map)
to a singleton map.GetAutoscalingCapacityResponse.Builder
policies(java.util.Map<java.lang.String,AutoscalingDeciders> value)
API name:policies
GetAutoscalingCapacityResponse.Builder
putPolicies(java.lang.String key, AutoscalingDeciders value)
Add a key/value topolicies(Map)
, creating the map if needed.GetAutoscalingCapacityResponse.Builder
putPolicies(java.lang.String key, java.util.function.Function<AutoscalingDeciders.Builder,ObjectBuilder<AutoscalingDeciders>> fn)
Add a key/value topolicies(Map)
, creating the map if needed.Methods 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 GetAutoscalingCapacityResponse.Builder policies(java.util.Map<java.lang.String,AutoscalingDeciders> value)API name:policies
-
putPolicies
public GetAutoscalingCapacityResponse.Builder putPolicies(java.lang.String key, AutoscalingDeciders value)Add a key/value topolicies(Map)
, creating the map if needed. -
policies
public GetAutoscalingCapacityResponse.Builder policies(java.lang.String key, java.util.function.Function<AutoscalingDeciders.Builder,ObjectBuilder<AutoscalingDeciders>> fn)Setpolicies(Map)
to a singleton map. -
putPolicies
public GetAutoscalingCapacityResponse.Builder putPolicies(java.lang.String key, java.util.function.Function<AutoscalingDeciders.Builder,ObjectBuilder<AutoscalingDeciders>> fn)Add a key/value topolicies(Map)
, creating the map if needed. -
build
Builds aGetAutoscalingCapacityResponse
.- Specified by:
build
in interfaceObjectBuilder<GetAutoscalingCapacityResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-