Class MasterRecord.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.cat.master.MasterRecord.Builder
- All Implemented Interfaces:
ObjectBuilder<MasterRecord>
- Enclosing class:
- MasterRecord
public static class MasterRecord.Builder extends ObjectBuilderBase implements ObjectBuilder<MasterRecord>
Builder for
MasterRecord
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description MasterRecord
build()
Builds aMasterRecord
.MasterRecord.Builder
host(java.lang.String value)
host nameMasterRecord.Builder
id(java.lang.String value)
node idMasterRecord.Builder
ip(java.lang.String value)
ip addressMasterRecord.Builder
node(java.lang.String value)
node nameMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
node idAPI name:
id
-
host
host nameAPI name:
host
-
ip
ip addressAPI name:
ip
-
node
node nameAPI name:
node
-
build
Builds aMasterRecord
.- Specified by:
build
in interfaceObjectBuilder<MasterRecord>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-