Class SuppressionPeriod
- java.lang.Object
-
- software.amazon.awssdk.services.cloudwatchlogs.model.SuppressionPeriod
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SuppressionPeriod.Builder,SuppressionPeriod>
@Generated("software.amazon.awssdk:codegen") public final class SuppressionPeriod extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SuppressionPeriod.Builder,SuppressionPeriod>
If you are suppressing an anomaly temporariliy, this structure defines how long the suppression period is to be.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSuppressionPeriod.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SuppressionPeriod.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SuppressionPeriod.Builder>serializableBuilderClass()SuppressionUnitsuppressionUnit()Specifies whether the value ofvalueis in seconds, minutes, or hours.StringsuppressionUnitAsString()Specifies whether the value ofvalueis in seconds, minutes, or hours.SuppressionPeriod.BuildertoBuilder()StringtoString()Returns a string representation of this object.Integervalue()Specifies the number of seconds, minutes or hours to suppress this anomaly.-
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
-
value
public final Integer value()
Specifies the number of seconds, minutes or hours to suppress this anomaly. There is no maximum.
- Returns:
- Specifies the number of seconds, minutes or hours to suppress this anomaly. There is no maximum.
-
suppressionUnit
public final SuppressionUnit suppressionUnit()
Specifies whether the value of
valueis in seconds, minutes, or hours.If the service returns an enum value that is not available in the current SDK version,
suppressionUnitwill returnSuppressionUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsuppressionUnitAsString().- Returns:
- Specifies whether the value of
valueis in seconds, minutes, or hours. - See Also:
SuppressionUnit
-
suppressionUnitAsString
public final String suppressionUnitAsString()
Specifies whether the value of
valueis in seconds, minutes, or hours.If the service returns an enum value that is not available in the current SDK version,
suppressionUnitwill returnSuppressionUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsuppressionUnitAsString().- Returns:
- Specifies whether the value of
valueis in seconds, minutes, or hours. - See Also:
SuppressionUnit
-
toBuilder
public SuppressionPeriod.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SuppressionPeriod.Builder,SuppressionPeriod>
-
builder
public static SuppressionPeriod.Builder builder()
-
serializableBuilderClass
public static Class<? extends SuppressionPeriod.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
-
-