Class AllocationResponse.Builder
java.lang.Object
org.opensearch.client.opensearch.cat.AllocationResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<AllocationResponse>
- Enclosing class:
- AllocationResponse
public static class AllocationResponse.Builder extends java.lang.Object implements ObjectBuilder<AllocationResponse>
Builder for
AllocationResponse.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description AllocationResponse.BuilderaddValue(java.util.function.Function<AllocationRecord.Builder,ObjectBuilder<AllocationRecord>> fn)Add a value tovalue(List), creating the list if needed.AllocationResponse.BuilderaddValue(AllocationRecord value)Add a value tovalue(List), creating the list if needed.AllocationResponsebuild()Builds aAllocationResponse.AllocationResponse.Buildervalue(java.util.function.Function<AllocationRecord.Builder,ObjectBuilder<AllocationRecord>> fn)Setvalue(List)to a singleton list.AllocationResponse.Buildervalue(java.util.List<AllocationRecord> value)Response value.AllocationResponse.Buildervalue(AllocationRecord... value)Response value.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
value
Response value. API name:value -
value
Response value. API name:value -
addValue
Add a value tovalue(List), creating the list if needed. -
value
public AllocationResponse.Builder value(java.util.function.Function<AllocationRecord.Builder,ObjectBuilder<AllocationRecord>> fn)Setvalue(List)to a singleton list. -
addValue
public AllocationResponse.Builder addValue(java.util.function.Function<AllocationRecord.Builder,ObjectBuilder<AllocationRecord>> fn)Add a value tovalue(List), creating the list if needed. -
build
Builds aAllocationResponse.- Specified by:
buildin interfaceObjectBuilder<AllocationResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-