Class ShardSegmentRouting.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.indices.segments.ShardSegmentRouting.Builder
-
- All Implemented Interfaces:
ObjectBuilder<ShardSegmentRouting>
- Enclosing class:
- ShardSegmentRouting
public static class ShardSegmentRouting.Builder extends ObjectBuilderBase implements ObjectBuilder<ShardSegmentRouting>
Builder forShardSegmentRouting
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShardSegmentRouting
build()
Builds aShardSegmentRouting
.ShardSegmentRouting.Builder
node(java.lang.String value)
Required - API name:node
ShardSegmentRouting.Builder
primary(boolean value)
Required - API name:primary
ShardSegmentRouting.Builder
state(java.lang.String value)
Required - API name:state
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
node
public final ShardSegmentRouting.Builder node(java.lang.String value)
Required - API name:node
-
primary
public final ShardSegmentRouting.Builder primary(boolean value)
Required - API name:primary
-
state
public final ShardSegmentRouting.Builder state(java.lang.String value)
Required - API name:state
-
build
public ShardSegmentRouting build()
Builds aShardSegmentRouting
.- Specified by:
build
in interfaceObjectBuilder<ShardSegmentRouting>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-