Class SummarizedCounter
- java.lang.Object
-
- software.amazon.awssdk.services.shield.model.SummarizedCounter
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SummarizedCounter.Builder,SummarizedCounter>
@Generated("software.amazon.awssdk:codegen") public final class SummarizedCounter extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SummarizedCounter.Builder,SummarizedCounter>
The counter that describes a DDoS attack.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSummarizedCounter.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Doubleaverage()The average value of the counter for a specified time period.static SummarizedCounter.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Doublemax()The maximum value of the counter for a specified time period.Integern()The number of counters for a specified time period.Stringname()The counter name.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SummarizedCounter.Builder>serializableBuilderClass()Doublesum()The total of counter values for a specified time period.SummarizedCounter.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringunit()The unit of the counters.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final String name()
The counter name.
- Returns:
- The counter name.
-
max
public final Double max()
The maximum value of the counter for a specified time period.
- Returns:
- The maximum value of the counter for a specified time period.
-
average
public final Double average()
The average value of the counter for a specified time period.
- Returns:
- The average value of the counter for a specified time period.
-
sum
public final Double sum()
The total of counter values for a specified time period.
- Returns:
- The total of counter values for a specified time period.
-
n
public final Integer n()
The number of counters for a specified time period.
- Returns:
- The number of counters for a specified time period.
-
unit
public final String unit()
The unit of the counters.
- Returns:
- The unit of the counters.
-
toBuilder
public SummarizedCounter.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SummarizedCounter.Builder,SummarizedCounter>
-
builder
public static SummarizedCounter.Builder builder()
-
serializableBuilderClass
public static Class<? extends SummarizedCounter.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-