Class ClusterNetworkTypes.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.cluster.stats.ClusterNetworkTypes.Builder
- All Implemented Interfaces:
CopyableBuilder<ClusterNetworkTypes.Builder,,ClusterNetworkTypes> MutableBuilder<ClusterNetworkTypes.Builder,,ClusterNetworkTypes> ObjectBuilder<ClusterNetworkTypes>
- Enclosing class:
ClusterNetworkTypes
public static class ClusterNetworkTypes.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ClusterNetworkTypes.Builder,ClusterNetworkTypes>
Builder for
ClusterNetworkTypes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aClusterNetworkTypes.copy()Create a new builderCopyableBuilderthat is a copy of this one.Required - Contains statistics about the HTTP network types used by selected nodes.Required - Contains statistics about the HTTP network types used by selected nodes.transportTypes(String key, Integer value) Required - Contains statistics about the transport network types used by selected nodes.transportTypes(Map<String, Integer> map) Required - Contains statistics about the transport network types used by selected nodes.Methods 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<ClusterNetworkTypes.Builder,ClusterNetworkTypes> - Returns:
- a new builder instance.
-
httpTypes
Required - Contains statistics about the HTTP network types used by selected nodes.API name:
http_typesAdds all elements of
maptohttpTypes. -
httpTypes
Required - Contains statistics about the HTTP network types used by selected nodes.API name:
http_typesAdds an entry to
httpTypes. -
transportTypes
Required - Contains statistics about the transport network types used by selected nodes.API name:
transport_typesAdds all elements of
maptotransportTypes. -
transportTypes
Required - Contains statistics about the transport network types used by selected nodes.API name:
transport_typesAdds an entry to
transportTypes. -
build
Builds aClusterNetworkTypes.- Specified by:
buildin interfaceObjectBuilder<ClusterNetworkTypes>- Throws:
NullPointerException- if some of the required fields are null.
-