primary
Required - API name:
primaryWithJson<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, _mapPutAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnodeprimaryrelocating_nodestateself in class WithJsonObjectBuilderBase<ShardRouting.Builder>ShardRouting.build in interface ObjectBuilder<ShardRouting>java.lang.NullPointerException - if some of the required fields are null.