Class RateLimiter.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ml.RateLimiter.Builder
- All Implemented Interfaces:
CopyableBuilder<RateLimiter.Builder,,RateLimiter> MutableBuilder<RateLimiter.Builder,,RateLimiter> ObjectBuilder<RateLimiter>
- Enclosing class:
RateLimiter
public static class RateLimiter.Builder
extends ObjectBuilderBase
implements CopyableBuilder<RateLimiter.Builder,RateLimiter>
Builder for
RateLimiter.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRateLimiter.copy()Create a new builderCopyableBuilderthat is a copy of this one.final RateLimiter.Builderlimit(double value) Required - The maximum limit.final RateLimiter.BuilderRequired - The unit of time.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<RateLimiter.Builder,RateLimiter> - Returns:
- a new builder instance.
-
limit
Required - The maximum limit.API name:
limit -
unit
Required - The unit of time.API name:
unit -
build
Builds aRateLimiter.- Specified by:
buildin interfaceObjectBuilder<RateLimiter>- Throws:
NullPointerException- if some of the required fields are null.
-