public class TrustedAdvisorCheckResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The results of a Trusted Advisor check returned by DescribeTrustedAdvisorCheckResult.
Modifier and Type | Field and Description |
---|---|
private TrustedAdvisorCategorySpecificSummary |
categorySpecificSummary
Summary information that relates to the category of the check.
|
private java.lang.String |
checkId
The unique identifier for the Trusted Advisor check.
|
private SdkInternalList<TrustedAdvisorResourceDetail> |
flaggedResources
The details about each resource listed in the check result.
|
private TrustedAdvisorResourcesSummary |
resourcesSummary |
private java.lang.String |
status
The alert status of the check: "ok" (green), "warning" (yellow), "error"
(red), or "not_available".
|
private java.lang.String |
timestamp
The time of the last refresh of the check.
|
Constructor and Description |
---|
TrustedAdvisorCheckResult() |
Modifier and Type | Method and Description |
---|---|
TrustedAdvisorCheckResult |
clone() |
boolean |
equals(java.lang.Object obj) |
TrustedAdvisorCategorySpecificSummary |
getCategorySpecificSummary()
Summary information that relates to the category of the check.
|
java.lang.String |
getCheckId()
The unique identifier for the Trusted Advisor check.
|
java.util.List<TrustedAdvisorResourceDetail> |
getFlaggedResources()
The details about each resource listed in the check result.
|
TrustedAdvisorResourcesSummary |
getResourcesSummary() |
java.lang.String |
getStatus()
The alert status of the check: "ok" (green), "warning" (yellow), "error"
(red), or "not_available".
|
java.lang.String |
getTimestamp()
The time of the last refresh of the check.
|
int |
hashCode() |
void |
setCategorySpecificSummary(TrustedAdvisorCategorySpecificSummary categorySpecificSummary)
Summary information that relates to the category of the check.
|
void |
setCheckId(java.lang.String checkId)
The unique identifier for the Trusted Advisor check.
|
void |
setFlaggedResources(java.util.Collection<TrustedAdvisorResourceDetail> flaggedResources)
The details about each resource listed in the check result.
|
void |
setResourcesSummary(TrustedAdvisorResourcesSummary resourcesSummary) |
void |
setStatus(java.lang.String status)
The alert status of the check: "ok" (green), "warning" (yellow), "error"
(red), or "not_available".
|
void |
setTimestamp(java.lang.String timestamp)
The time of the last refresh of the check.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TrustedAdvisorCheckResult |
withCategorySpecificSummary(TrustedAdvisorCategorySpecificSummary categorySpecificSummary)
Summary information that relates to the category of the check.
|
TrustedAdvisorCheckResult |
withCheckId(java.lang.String checkId)
The unique identifier for the Trusted Advisor check.
|
TrustedAdvisorCheckResult |
withFlaggedResources(java.util.Collection<TrustedAdvisorResourceDetail> flaggedResources)
The details about each resource listed in the check result.
|
TrustedAdvisorCheckResult |
withFlaggedResources(TrustedAdvisorResourceDetail... flaggedResources)
The details about each resource listed in the check result.
|
TrustedAdvisorCheckResult |
withResourcesSummary(TrustedAdvisorResourcesSummary resourcesSummary) |
TrustedAdvisorCheckResult |
withStatus(java.lang.String status)
The alert status of the check: "ok" (green), "warning" (yellow), "error"
(red), or "not_available".
|
TrustedAdvisorCheckResult |
withTimestamp(java.lang.String timestamp)
The time of the last refresh of the check.
|
private java.lang.String checkId
The unique identifier for the Trusted Advisor check.
private java.lang.String timestamp
The time of the last refresh of the check.
private java.lang.String status
The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".
private TrustedAdvisorResourcesSummary resourcesSummary
private TrustedAdvisorCategorySpecificSummary categorySpecificSummary
Summary information that relates to the category of the check. Cost Optimizing is the only category that is currently supported.
private SdkInternalList<TrustedAdvisorResourceDetail> flaggedResources
The details about each resource listed in the check result.
public void setCheckId(java.lang.String checkId)
The unique identifier for the Trusted Advisor check.
checkId
- The unique identifier for the Trusted Advisor check.public java.lang.String getCheckId()
The unique identifier for the Trusted Advisor check.
public TrustedAdvisorCheckResult withCheckId(java.lang.String checkId)
The unique identifier for the Trusted Advisor check.
checkId
- The unique identifier for the Trusted Advisor check.public void setTimestamp(java.lang.String timestamp)
The time of the last refresh of the check.
timestamp
- The time of the last refresh of the check.public java.lang.String getTimestamp()
The time of the last refresh of the check.
public TrustedAdvisorCheckResult withTimestamp(java.lang.String timestamp)
The time of the last refresh of the check.
timestamp
- The time of the last refresh of the check.public void setStatus(java.lang.String status)
The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".
status
- The alert status of the check: "ok" (green), "warning" (yellow),
"error" (red), or "not_available".public java.lang.String getStatus()
The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".
public TrustedAdvisorCheckResult withStatus(java.lang.String status)
The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".
status
- The alert status of the check: "ok" (green), "warning" (yellow),
"error" (red), or "not_available".public void setResourcesSummary(TrustedAdvisorResourcesSummary resourcesSummary)
resourcesSummary
- public TrustedAdvisorResourcesSummary getResourcesSummary()
public TrustedAdvisorCheckResult withResourcesSummary(TrustedAdvisorResourcesSummary resourcesSummary)
resourcesSummary
- public void setCategorySpecificSummary(TrustedAdvisorCategorySpecificSummary categorySpecificSummary)
Summary information that relates to the category of the check. Cost Optimizing is the only category that is currently supported.
categorySpecificSummary
- Summary information that relates to the category of the check.
Cost Optimizing is the only category that is currently supported.public TrustedAdvisorCategorySpecificSummary getCategorySpecificSummary()
Summary information that relates to the category of the check. Cost Optimizing is the only category that is currently supported.
public TrustedAdvisorCheckResult withCategorySpecificSummary(TrustedAdvisorCategorySpecificSummary categorySpecificSummary)
Summary information that relates to the category of the check. Cost Optimizing is the only category that is currently supported.
categorySpecificSummary
- Summary information that relates to the category of the check.
Cost Optimizing is the only category that is currently supported.public java.util.List<TrustedAdvisorResourceDetail> getFlaggedResources()
The details about each resource listed in the check result.
public void setFlaggedResources(java.util.Collection<TrustedAdvisorResourceDetail> flaggedResources)
The details about each resource listed in the check result.
flaggedResources
- The details about each resource listed in the check result.public TrustedAdvisorCheckResult withFlaggedResources(TrustedAdvisorResourceDetail... flaggedResources)
The details about each resource listed in the check result.
NOTE: This method appends the values to the existing list (if
any). Use setFlaggedResources(java.util.Collection)
or
withFlaggedResources(java.util.Collection)
if you want to
override the existing values.
flaggedResources
- The details about each resource listed in the check result.public TrustedAdvisorCheckResult withFlaggedResources(java.util.Collection<TrustedAdvisorResourceDetail> flaggedResources)
The details about each resource listed in the check result.
flaggedResources
- The details about each resource listed in the check result.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public TrustedAdvisorCheckResult clone()
clone
in class java.lang.Object