Class Monitoring.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.xpack.usage.Base.AbstractBuilder<Monitoring.Builder>
co.elastic.clients.elasticsearch.xpack.usage.Monitoring.Builder
- All Implemented Interfaces:
ObjectBuilder<Monitoring>
- Enclosing class:
- Monitoring
public static class Monitoring.Builder extends Base.AbstractBuilder<Monitoring.Builder> implements ObjectBuilder<Monitoring>
Builder for
Monitoring.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description Monitoringbuild()Builds aMonitoring.Monitoring.BuildercollectionEnabled(boolean value)Required - API name:collection_enabledMonitoring.BuilderenabledExporters(java.lang.String key, java.lang.Long value)Required - API name:enabled_exportersMonitoring.BuilderenabledExporters(java.util.Map<java.lang.String,java.lang.Long> map)Required - API name:enabled_exportersprotected Monitoring.Builderself()Methods inherited from class co.elastic.clients.elasticsearch.xpack.usage.Base.AbstractBuilder
available, enabledMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
collectionEnabled
Required - API name:collection_enabled -
enabledExporters
public final Monitoring.Builder enabledExporters(java.util.Map<java.lang.String,java.lang.Long> map)Required - API name:enabled_exportersAdds all entries of
maptoenabledExporters. -
enabledExporters
Required - API name:enabled_exportersAdds an entry to
enabledExporters. -
self
- Specified by:
selfin classBase.AbstractBuilder<Monitoring.Builder>
-
build
Builds aMonitoring.- Specified by:
buildin interfaceObjectBuilder<Monitoring>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-