Class IndexRoutingAllocationInclude.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.IndexRoutingAllocationInclude.Builder
- All Implemented Interfaces:
ObjectBuilder<IndexRoutingAllocationInclude>
- Enclosing class:
- IndexRoutingAllocationInclude
public static class IndexRoutingAllocationInclude.Builder extends ObjectBuilderBase implements ObjectBuilder<IndexRoutingAllocationInclude>
Builder for
IndexRoutingAllocationInclude
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description IndexRoutingAllocationInclude
build()
Builds aIndexRoutingAllocationInclude
.IndexRoutingAllocationInclude.Builder
id(java.lang.String value)
API name:_id
IndexRoutingAllocationInclude.Builder
tierPreference(java.lang.String value)
API name:_tier_preference
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tierPreference
public final IndexRoutingAllocationInclude.Builder tierPreference(@Nullable java.lang.String value)API name:_tier_preference
-
id
API name:_id
-
build
Builds aIndexRoutingAllocationInclude
.- Specified by:
build
in interfaceObjectBuilder<IndexRoutingAllocationInclude>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-