@Generated(value="com.ibm.cos.v2:codegen") public class StatsEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<StatsEvent.Builder,StatsEvent>, SelectObjectContentEventStream
Container for the Stats Event.
| Modifier and Type | Class and Description |
|---|---|
static interface |
StatsEvent.Builder |
protected static class |
StatsEvent.BuilderImpl |
SelectObjectContentEventStream.EventTypeUNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
StatsEvent(StatsEvent.BuilderImpl builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(SelectObjectContentResponseHandler.Visitor visitor)
Calls the appropriate visit method depending on the subtype of
StatsEvent. |
static StatsEvent.Builder |
builder() |
StatsEvent |
copy(Consumer<? super StatsEvent.Builder> modifier)
A convenience method for calling
ToCopyableBuilder.toBuilder(), updating the returned builder and then calling
SdkBuilder.build(). |
Stats |
details()
The Stats event details.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Map<String,SdkField<?>> |
sdkFieldNameToField() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends StatsEvent.Builder> |
serializableBuilderClass() |
StatsEvent.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcontBuilder, endBuilder, progressBuilder, recordsBuilder, sdkEventType, statsBuilderprotected StatsEvent(StatsEvent.BuilderImpl builder)
public final Stats details()
The Stats event details.
public StatsEvent.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<StatsEvent.Builder,StatsEvent>public static StatsEvent.Builder builder()
public static Class<? extends StatsEvent.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojoSdkPojo class,
and is generated based on a service model.
If an SdkPojo class does not have any inherited fields, equalsBySdkFields
and equals are essentially the same.
equalsBySdkFields in interface SdkPojoobj - the object to be compared withpublic final String toString()
public final StatsEvent copy(Consumer<? super StatsEvent.Builder> modifier)
ToCopyableBuilderToCopyableBuilder.toBuilder(), updating the returned builder and then calling
SdkBuilder.build(). This is useful for making small modifications to the existing object.copy in interface ToCopyableBuilder<StatsEvent.Builder,StatsEvent>modifier - A function that mutates this immutable object using the provided builder.public final Map<String,SdkField<?>> sdkFieldNameToField()
sdkFieldNameToField in interface SdkPojopublic void accept(SelectObjectContentResponseHandler.Visitor visitor)
StatsEvent.accept in interface SelectObjectContentEventStreamvisitor - Visitor to invoke.Copyright © 2026. All rights reserved.