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
-
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 Constructor Description Counter(Counter.AbstractBuilder<?> builder)
-
Method Summary
Modifier and Type Method Description long
active()
Required - API name:active
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(DelegatingDeserializer<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
-
active
public long active()Required - API name:active
-
total
public 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(DelegatingDeserializer<BuilderT> op)
-