Class NodeUsage.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.nodes.usage.NodeUsage.Builder
- All Implemented Interfaces:
CopyableBuilder<NodeUsage.Builder,,NodeUsage> MutableBuilder<NodeUsage.Builder,,NodeUsage> ObjectBuilder<NodeUsage>
- Enclosing class:
NodeUsage
public static class NodeUsage.Builder
extends ObjectBuilderBase
implements CopyableBuilder<NodeUsage.Builder,NodeUsage>
Builder for
NodeUsage.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal NodeUsage.Builderaggregations(String key, JsonData value) API name:aggregationsfinal NodeUsage.Builderaggregations(Map<String, JsonData> map) API name:aggregationsbuild()Builds aNodeUsage.copy()Create a new builderCopyableBuilderthat is a copy of this one.final NodeUsage.BuilderrestActions(String key, Long value) API name:rest_actionsfinal NodeUsage.BuilderrestActions(Map<String, Long> map) API name:rest_actionsfinal NodeUsage.Buildersince(long value) Required - API name:sincefinal NodeUsage.Buildertimestamp(long value) Required - API name:timestampMethods 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<NodeUsage.Builder,NodeUsage> - Returns:
- a new builder instance.
-
aggregations
API name:aggregationsAdds all elements of
maptoaggregations. -
aggregations
API name:aggregationsAdds an entry to
aggregations. -
restActions
API name:rest_actionsAdds all elements of
maptorestActions. -
restActions
API name:rest_actionsAdds an entry to
restActions. -
since
Required - API name:since -
timestamp
Required - API name:timestamp -
build
Builds aNodeUsage.- Specified by:
buildin interfaceObjectBuilder<NodeUsage>- Throws:
NullPointerException- if some of the required fields are null.
-