Class RefreshStats.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RefreshStats.Builder
- All Implemented Interfaces:
CopyableBuilder<RefreshStats.Builder,,RefreshStats> MutableBuilder<RefreshStats.Builder,,RefreshStats> ObjectBuilder<RefreshStats>
- Enclosing class:
RefreshStats
public static class RefreshStats.Builder
extends ObjectBuilderBase
implements CopyableBuilder<RefreshStats.Builder,RefreshStats>
Builder for
RefreshStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRefreshStats.copy()Create a new builderCopyableBuilderthat is a copy of this one.final RefreshStats.BuilderexternalTotal(long value) Required - The total number of external refresh operations.final RefreshStats.BuilderThe total amount of time spent on external refresh operations.final RefreshStats.BuilderexternalTotalTime(Time value) The total amount of time spent on external refresh operations.final RefreshStats.BuilderexternalTotalTimeInMillis(long value) Required - The total amount of time spent on external refresh operations in milliseconds.final RefreshStats.Builderlisteners(long value) Required - The number of refresh listeners.final RefreshStats.Buildertotal(long value) Required - The total number of refresh operations.final RefreshStats.BuilderThe total amount of time spent on refresh operations.final RefreshStats.BuilderThe total amount of time spent on refresh operations.final RefreshStats.BuildertotalTimeInMillis(long value) Required - The total amount of time spent on refresh operations in milliseconds.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<RefreshStats.Builder,RefreshStats> - Returns:
- a new builder instance.
-
externalTotal
Required - The total number of external refresh operations.API name:
external_total -
externalTotalTime
The total amount of time spent on external refresh operations.API name:
external_total_time -
externalTotalTime
@Nonnull public final RefreshStats.Builder externalTotalTime(Function<Time.Builder, ObjectBuilder<Time>> fn) The total amount of time spent on external refresh operations.API name:
external_total_time -
externalTotalTimeInMillis
Required - The total amount of time spent on external refresh operations in milliseconds.API name:
external_total_time_in_millis -
listeners
Required - The number of refresh listeners.API name:
listeners -
total
Required - The total number of refresh operations.API name:
total -
totalTime
The total amount of time spent on refresh operations.API name:
total_time -
totalTime
The total amount of time spent on refresh operations.API name:
total_time -
totalTimeInMillis
Required - The total amount of time spent on refresh operations in milliseconds.API name:
total_time_in_millis -
build
Builds aRefreshStats.- Specified by:
buildin interfaceObjectBuilder<RefreshStats>- Throws:
NullPointerException- if some of the required fields are null.
-