@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SuppressionPeriod extends Object implements Serializable, Cloneable, StructuredPojo
If you are suppressing an anomaly temporariliy, this structure defines how long the suppression period is to be.
Constructor and Description |
---|
SuppressionPeriod() |
Modifier and Type | Method and Description |
---|---|
SuppressionPeriod |
clone() |
boolean |
equals(Object obj) |
String |
getSuppressionUnit()
Specifies whether the value of
value is in seconds, minutes, or hours. |
Integer |
getValue()
Specifies the number of seconds, minutes or hours to suppress this anomaly.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSuppressionUnit(String suppressionUnit)
Specifies whether the value of
value is in seconds, minutes, or hours. |
void |
setValue(Integer value)
Specifies the number of seconds, minutes or hours to suppress this anomaly.
|
String |
toString()
Returns a string representation of this object.
|
SuppressionPeriod |
withSuppressionUnit(String suppressionUnit)
Specifies whether the value of
value is in seconds, minutes, or hours. |
SuppressionPeriod |
withSuppressionUnit(SuppressionUnit suppressionUnit)
Specifies whether the value of
value is in seconds, minutes, or hours. |
SuppressionPeriod |
withValue(Integer value)
Specifies the number of seconds, minutes or hours to suppress this anomaly.
|
public void setValue(Integer value)
Specifies the number of seconds, minutes or hours to suppress this anomaly. There is no maximum.
value
- Specifies the number of seconds, minutes or hours to suppress this anomaly. There is no maximum.public Integer getValue()
Specifies the number of seconds, minutes or hours to suppress this anomaly. There is no maximum.
public SuppressionPeriod withValue(Integer value)
Specifies the number of seconds, minutes or hours to suppress this anomaly. There is no maximum.
value
- Specifies the number of seconds, minutes or hours to suppress this anomaly. There is no maximum.public void setSuppressionUnit(String suppressionUnit)
Specifies whether the value of value
is in seconds, minutes, or hours.
suppressionUnit
- Specifies whether the value of value
is in seconds, minutes, or hours.SuppressionUnit
public String getSuppressionUnit()
Specifies whether the value of value
is in seconds, minutes, or hours.
value
is in seconds, minutes, or hours.SuppressionUnit
public SuppressionPeriod withSuppressionUnit(String suppressionUnit)
Specifies whether the value of value
is in seconds, minutes, or hours.
suppressionUnit
- Specifies whether the value of value
is in seconds, minutes, or hours.SuppressionUnit
public SuppressionPeriod withSuppressionUnit(SuppressionUnit suppressionUnit)
Specifies whether the value of value
is in seconds, minutes, or hours.
suppressionUnit
- Specifies whether the value of value
is in seconds, minutes, or hours.SuppressionUnit
public String toString()
toString
in class Object
Object.toString()
public SuppressionPeriod clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.