Class TrustedAdvisorCheckResult
- java.lang.Object
-
- com.amazonaws.services.support.model.TrustedAdvisorCheckResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class TrustedAdvisorCheckResult extends Object implements Serializable, Cloneable
The results of a Trusted Advisor check returned by DescribeTrustedAdvisorCheckResult.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TrustedAdvisorCheckResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TrustedAdvisorCheckResult
clone()
boolean
equals(Object obj)
TrustedAdvisorCategorySpecificSummary
getCategorySpecificSummary()
Summary information that relates to the category of the check.String
getCheckId()
The unique identifier for the Trusted Advisor check.List<TrustedAdvisorResourceDetail>
getFlaggedResources()
The details about each resource listed in the check result.TrustedAdvisorResourcesSummary
getResourcesSummary()
String
getStatus()
The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".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(String checkId)
The unique identifier for the Trusted Advisor check.void
setFlaggedResources(Collection<TrustedAdvisorResourceDetail> flaggedResources)
The details about each resource listed in the check result.void
setResourcesSummary(TrustedAdvisorResourcesSummary resourcesSummary)
void
setStatus(String status)
The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".void
setTimestamp(String timestamp)
The time of the last refresh of the check.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(String checkId)
The unique identifier for the Trusted Advisor check.TrustedAdvisorCheckResult
withFlaggedResources(TrustedAdvisorResourceDetail... flaggedResources)
The details about each resource listed in the check result.TrustedAdvisorCheckResult
withFlaggedResources(Collection<TrustedAdvisorResourceDetail> flaggedResources)
The details about each resource listed in the check result.TrustedAdvisorCheckResult
withResourcesSummary(TrustedAdvisorResourcesSummary resourcesSummary)
TrustedAdvisorCheckResult
withStatus(String status)
The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".TrustedAdvisorCheckResult
withTimestamp(String timestamp)
The time of the last refresh of the check.
-
-
-
Method Detail
-
setCheckId
public void setCheckId(String checkId)
The unique identifier for the Trusted Advisor check.
- Parameters:
checkId
- The unique identifier for the Trusted Advisor check.
-
getCheckId
public String getCheckId()
The unique identifier for the Trusted Advisor check.
- Returns:
- The unique identifier for the Trusted Advisor check.
-
withCheckId
public TrustedAdvisorCheckResult withCheckId(String checkId)
The unique identifier for the Trusted Advisor check.
- Parameters:
checkId
- The unique identifier for the Trusted Advisor check.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTimestamp
public void setTimestamp(String timestamp)
The time of the last refresh of the check.
- Parameters:
timestamp
- The time of the last refresh of the check.
-
getTimestamp
public String getTimestamp()
The time of the last refresh of the check.
- Returns:
- The time of the last refresh of the check.
-
withTimestamp
public TrustedAdvisorCheckResult withTimestamp(String timestamp)
The time of the last refresh of the check.
- Parameters:
timestamp
- The time of the last refresh of the check.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
public void setStatus(String status)
The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".
- Parameters:
status
- The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".
-
getStatus
public String getStatus()
The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".
- Returns:
- The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".
-
withStatus
public TrustedAdvisorCheckResult withStatus(String status)
The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".
- Parameters:
status
- The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setResourcesSummary
public void setResourcesSummary(TrustedAdvisorResourcesSummary resourcesSummary)
- Parameters:
resourcesSummary
-
-
getResourcesSummary
public TrustedAdvisorResourcesSummary getResourcesSummary()
- Returns:
-
withResourcesSummary
public TrustedAdvisorCheckResult withResourcesSummary(TrustedAdvisorResourcesSummary resourcesSummary)
- Parameters:
resourcesSummary
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCategorySpecificSummary
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.
- Parameters:
categorySpecificSummary
- Summary information that relates to the category of the check. Cost Optimizing is the only category that is currently supported.
-
getCategorySpecificSummary
public TrustedAdvisorCategorySpecificSummary getCategorySpecificSummary()
Summary information that relates to the category of the check. Cost Optimizing is the only category that is currently supported.
- Returns:
- Summary information that relates to the category of the check. Cost Optimizing is the only category that is currently supported.
-
withCategorySpecificSummary
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.
- Parameters:
categorySpecificSummary
- Summary information that relates to the category of the check. Cost Optimizing is the only category that is currently supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getFlaggedResources
public List<TrustedAdvisorResourceDetail> getFlaggedResources()
The details about each resource listed in the check result.
- Returns:
- The details about each resource listed in the check result.
-
setFlaggedResources
public void setFlaggedResources(Collection<TrustedAdvisorResourceDetail> flaggedResources)
The details about each resource listed in the check result.
- Parameters:
flaggedResources
- The details about each resource listed in the check result.
-
withFlaggedResources
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)
orwithFlaggedResources(java.util.Collection)
if you want to override the existing values.- Parameters:
flaggedResources
- The details about each resource listed in the check result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withFlaggedResources
public TrustedAdvisorCheckResult withFlaggedResources(Collection<TrustedAdvisorResourceDetail> flaggedResources)
The details about each resource listed in the check result.
- Parameters:
flaggedResources
- The details about each resource listed in the check result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public TrustedAdvisorCheckResult clone()
-
-