Class ThrottleState.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.watcher.ThrottleState.Builder
- All Implemented Interfaces:
ObjectBuilder<ThrottleState>
- Enclosing class:
- ThrottleState
public static class ThrottleState.Builder extends ObjectBuilderBase implements ObjectBuilder<ThrottleState>
Builder for
ThrottleState
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ThrottleState
build()
Builds aThrottleState
.ThrottleState.Builder
reason(java.lang.String value)
Required - API name:reason
ThrottleState.Builder
timestamp(java.lang.String value)
Required - API name:timestamp
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
reason
Required - API name:reason
-
timestamp
Required - API name:timestamp
-
build
Builds aThrottleState
.- Specified by:
build
in interfaceObjectBuilder<ThrottleState>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-