Class Counter
java.lang.Object
co.elastic.clients.elasticsearch.xpack.usage.Counter
- All Implemented Interfaces:
JsonpSerializable
- Direct Known Subclasses:
WatcherWatchTriggerSchedule
@JsonpDeserializable public class Counter extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
Counter.AbstractBuilder<BuilderT extends Counter.AbstractBuilder<BuilderT>>
static class
Counter.Builder
Builder forCounter
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Counter>
_DESERIALIZER
Json deserializer forCounter
-
Constructor Summary
Constructors Modifier Constructor Description protected
Counter(Counter.AbstractBuilder<?> builder)
-
Method Summary
Modifier and Type Method Description long
active()
Required - API name:active
static Counter
counterOf(java.util.function.Function<Counter.Builder,ObjectBuilder<Counter>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static <BuilderT extends Counter.AbstractBuilder<BuilderT>>
voidsetupCounterDeserializer(ObjectDeserializer<BuilderT> op)
long
total()
Required - API name:total
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forCounter
-
-
Constructor Details
-
Counter
-
-
Method Details
-
counterOf
public static Counter counterOf(java.util.function.Function<Counter.Builder,ObjectBuilder<Counter>> fn) -
active
public final long active()Required - API name:active
-
total
public final long total()Required - API name:total
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupCounterDeserializer
protected static <BuilderT extends Counter.AbstractBuilder<BuilderT>> void setupCounterDeserializer(ObjectDeserializer<BuilderT> op)
-