Class NodeInfoNetworkInterface.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.nodes.info.NodeInfoNetworkInterface.Builder
- All Implemented Interfaces:
CopyableBuilder<NodeInfoNetworkInterface.Builder,,NodeInfoNetworkInterface> MutableBuilder<NodeInfoNetworkInterface.Builder,,NodeInfoNetworkInterface> ObjectBuilder<NodeInfoNetworkInterface>
- Enclosing class:
NodeInfoNetworkInterface
public static class NodeInfoNetworkInterface.Builder
extends ObjectBuilderBase
implements CopyableBuilder<NodeInfoNetworkInterface.Builder,NodeInfoNetworkInterface>
Builder for
NodeInfoNetworkInterface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRequired - The IP address of the interface.build()Builds aNodeInfoNetworkInterface.copy()Create a new builderCopyableBuilderthat is a copy of this one.macAddress(String value) Required - The MAC address of the interface.Required - API name: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<NodeInfoNetworkInterface.Builder,NodeInfoNetworkInterface> - Returns:
- a new builder instance.
-
address
Required - The IP address of the interface.API name:
address -
macAddress
Required - The MAC address of the interface.API name:
mac_address -
name
Required - API name:name -
build
Builds aNodeInfoNetworkInterface.- Specified by:
buildin interfaceObjectBuilder<NodeInfoNetworkInterface>- Throws:
NullPointerException- if some of the required fields are null.
-