Class ShardSegmentRouting.Builder
java.lang.Object
org.opensearch.client.opensearch.indices.segments.ShardSegmentRouting.Builder
- All Implemented Interfaces:
ObjectBuilder<ShardSegmentRouting>
- Enclosing class:
- ShardSegmentRouting
public static class ShardSegmentRouting.Builder extends java.lang.Object implements ObjectBuilder<ShardSegmentRouting>
Builder for
ShardSegmentRouting.-
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 ShardSegmentRoutingbuild()Builds aShardSegmentRouting.ShardSegmentRouting.Buildernode(java.lang.String value)API name:nodeShardSegmentRouting.Builderprimary(java.lang.Boolean value)API name:primaryShardSegmentRouting.Builderstate(java.lang.String value)API name:state
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
node
API name:node -
primary
API name:primary -
state
API name:state -
build
Builds aShardSegmentRouting.- Specified by:
buildin interfaceObjectBuilder<ShardSegmentRouting>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-