Class MasterRecord.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.cat.master.MasterRecord.Builder
- All Implemented Interfaces:
CopyableBuilder<MasterRecord.Builder,,MasterRecord> MutableBuilder<MasterRecord.Builder,,MasterRecord> ObjectBuilder<MasterRecord>
- Enclosing class:
MasterRecord
public static class MasterRecord.Builder
extends ObjectBuilderBase
implements CopyableBuilder<MasterRecord.Builder,MasterRecord>
Builder for
MasterRecord.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aMasterRecord.copy()Create a new builderCopyableBuilderthat is a copy of this one.final MasterRecord.Builderhostnamefinal MasterRecord.Buildernode idfinal MasterRecord.BuilderIP addressfinal MasterRecord.Buildernode nameMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<MasterRecord.Builder,MasterRecord> - Returns:
- a new builder instance.
-
host
hostnameAPI name:
host -
id
node idAPI name:
id -
ip
IP addressAPI name:
ip -
node
node nameAPI name:
node -
build
Builds aMasterRecord.- Specified by:
buildin interfaceObjectBuilder<MasterRecord>- Throws:
NullPointerException- if some of the required fields are null.
-