primary
Required - API name:
primary
WithJson<ShardRouting.Builder>
, ObjectBuilder<ShardRouting>
public static class ShardRouting.Builder extends WithJsonObjectBuilderBase<ShardRouting.Builder> implements ObjectBuilder<ShardRouting>
ShardRouting
.Constructor | Description |
---|---|
Builder() |
Modifier and Type | Method | Description |
---|---|---|
ShardRouting |
build() |
Builds a
ShardRouting . |
ShardRouting.Builder |
node(java.lang.String value) |
Required - API name:
node |
ShardRouting.Builder |
primary(boolean value) |
Required - API name:
primary |
ShardRouting.Builder |
relocatingNode(java.lang.String value) |
API name:
relocating_node |
protected ShardRouting.Builder |
self() |
|
ShardRouting.Builder |
state(ShardRoutingState value) |
Required - API name:
state |
withJson
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
node
primary
relocating_node
state
self
in class WithJsonObjectBuilderBase<ShardRouting.Builder>
ShardRouting
.build
in interface ObjectBuilder<ShardRouting>
java.lang.NullPointerException
- if some of the required fields are null.