@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Anomaly extends Object implements Serializable, Cloneable, StructuredPojo
An unusual cost pattern. This consists of the detailed metadata and the current status of the anomaly object.
Constructor and Description |
---|
Anomaly() |
Modifier and Type | Method and Description |
---|---|
Anomaly |
clone() |
boolean |
equals(Object obj) |
String |
getAnomalyEndDate()
The last day the anomaly is detected.
|
String |
getAnomalyId()
The unique identifier for the anomaly.
|
AnomalyScore |
getAnomalyScore()
The latest and maximum score for the anomaly.
|
String |
getAnomalyStartDate()
The first day the anomaly is detected.
|
String |
getDimensionValue()
The dimension for the anomaly (for example, an Amazon Web Service in a service monitor).
|
String |
getFeedback()
The feedback value.
|
Impact |
getImpact()
The dollar impact for the anomaly.
|
String |
getMonitorArn()
The Amazon Resource Name (ARN) for the cost monitor that generated this anomaly.
|
List<RootCause> |
getRootCauses()
The list of identified root causes for the anomaly.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAnomalyEndDate(String anomalyEndDate)
The last day the anomaly is detected.
|
void |
setAnomalyId(String anomalyId)
The unique identifier for the anomaly.
|
void |
setAnomalyScore(AnomalyScore anomalyScore)
The latest and maximum score for the anomaly.
|
void |
setAnomalyStartDate(String anomalyStartDate)
The first day the anomaly is detected.
|
void |
setDimensionValue(String dimensionValue)
The dimension for the anomaly (for example, an Amazon Web Service in a service monitor).
|
void |
setFeedback(String feedback)
The feedback value.
|
void |
setImpact(Impact impact)
The dollar impact for the anomaly.
|
void |
setMonitorArn(String monitorArn)
The Amazon Resource Name (ARN) for the cost monitor that generated this anomaly.
|
void |
setRootCauses(Collection<RootCause> rootCauses)
The list of identified root causes for the anomaly.
|
String |
toString()
Returns a string representation of this object.
|
Anomaly |
withAnomalyEndDate(String anomalyEndDate)
The last day the anomaly is detected.
|
Anomaly |
withAnomalyId(String anomalyId)
The unique identifier for the anomaly.
|
Anomaly |
withAnomalyScore(AnomalyScore anomalyScore)
The latest and maximum score for the anomaly.
|
Anomaly |
withAnomalyStartDate(String anomalyStartDate)
The first day the anomaly is detected.
|
Anomaly |
withDimensionValue(String dimensionValue)
The dimension for the anomaly (for example, an Amazon Web Service in a service monitor).
|
Anomaly |
withFeedback(AnomalyFeedbackType feedback)
The feedback value.
|
Anomaly |
withFeedback(String feedback)
The feedback value.
|
Anomaly |
withImpact(Impact impact)
The dollar impact for the anomaly.
|
Anomaly |
withMonitorArn(String monitorArn)
The Amazon Resource Name (ARN) for the cost monitor that generated this anomaly.
|
Anomaly |
withRootCauses(Collection<RootCause> rootCauses)
The list of identified root causes for the anomaly.
|
Anomaly |
withRootCauses(RootCause... rootCauses)
The list of identified root causes for the anomaly.
|
public void setAnomalyId(String anomalyId)
The unique identifier for the anomaly.
anomalyId
- The unique identifier for the anomaly.public String getAnomalyId()
The unique identifier for the anomaly.
public Anomaly withAnomalyId(String anomalyId)
The unique identifier for the anomaly.
anomalyId
- The unique identifier for the anomaly.public void setAnomalyStartDate(String anomalyStartDate)
The first day the anomaly is detected.
anomalyStartDate
- The first day the anomaly is detected.public String getAnomalyStartDate()
The first day the anomaly is detected.
public Anomaly withAnomalyStartDate(String anomalyStartDate)
The first day the anomaly is detected.
anomalyStartDate
- The first day the anomaly is detected.public void setAnomalyEndDate(String anomalyEndDate)
The last day the anomaly is detected.
anomalyEndDate
- The last day the anomaly is detected.public String getAnomalyEndDate()
The last day the anomaly is detected.
public Anomaly withAnomalyEndDate(String anomalyEndDate)
The last day the anomaly is detected.
anomalyEndDate
- The last day the anomaly is detected.public void setDimensionValue(String dimensionValue)
The dimension for the anomaly (for example, an Amazon Web Service in a service monitor).
dimensionValue
- The dimension for the anomaly (for example, an Amazon Web Service in a service monitor).public String getDimensionValue()
The dimension for the anomaly (for example, an Amazon Web Service in a service monitor).
public Anomaly withDimensionValue(String dimensionValue)
The dimension for the anomaly (for example, an Amazon Web Service in a service monitor).
dimensionValue
- The dimension for the anomaly (for example, an Amazon Web Service in a service monitor).public List<RootCause> getRootCauses()
The list of identified root causes for the anomaly.
public void setRootCauses(Collection<RootCause> rootCauses)
The list of identified root causes for the anomaly.
rootCauses
- The list of identified root causes for the anomaly.public Anomaly withRootCauses(RootCause... rootCauses)
The list of identified root causes for the anomaly.
NOTE: This method appends the values to the existing list (if any). Use
setRootCauses(java.util.Collection)
or withRootCauses(java.util.Collection)
if you want to
override the existing values.
rootCauses
- The list of identified root causes for the anomaly.public Anomaly withRootCauses(Collection<RootCause> rootCauses)
The list of identified root causes for the anomaly.
rootCauses
- The list of identified root causes for the anomaly.public void setAnomalyScore(AnomalyScore anomalyScore)
The latest and maximum score for the anomaly.
anomalyScore
- The latest and maximum score for the anomaly.public AnomalyScore getAnomalyScore()
The latest and maximum score for the anomaly.
public Anomaly withAnomalyScore(AnomalyScore anomalyScore)
The latest and maximum score for the anomaly.
anomalyScore
- The latest and maximum score for the anomaly.public void setImpact(Impact impact)
The dollar impact for the anomaly.
impact
- The dollar impact for the anomaly.public Impact getImpact()
The dollar impact for the anomaly.
public Anomaly withImpact(Impact impact)
The dollar impact for the anomaly.
impact
- The dollar impact for the anomaly.public void setMonitorArn(String monitorArn)
The Amazon Resource Name (ARN) for the cost monitor that generated this anomaly.
monitorArn
- The Amazon Resource Name (ARN) for the cost monitor that generated this anomaly.public String getMonitorArn()
The Amazon Resource Name (ARN) for the cost monitor that generated this anomaly.
public Anomaly withMonitorArn(String monitorArn)
The Amazon Resource Name (ARN) for the cost monitor that generated this anomaly.
monitorArn
- The Amazon Resource Name (ARN) for the cost monitor that generated this anomaly.public void setFeedback(String feedback)
The feedback value.
feedback
- The feedback value.AnomalyFeedbackType
public String getFeedback()
The feedback value.
AnomalyFeedbackType
public Anomaly withFeedback(String feedback)
The feedback value.
feedback
- The feedback value.AnomalyFeedbackType
public Anomaly withFeedback(AnomalyFeedbackType feedback)
The feedback value.
feedback
- The feedback value.AnomalyFeedbackType
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.