@Generated(value="software.amazon.awssdk:codegen") public final class TrustedAdvisorCheckResult extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TrustedAdvisorCheckResult.Builder,TrustedAdvisorCheckResult>
The results of a Trusted Advisor check returned by DescribeTrustedAdvisorCheckResult.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TrustedAdvisorCheckResult.Builder |
| Modifier and Type | Method and Description |
|---|---|
static TrustedAdvisorCheckResult.Builder |
builder() |
TrustedAdvisorCategorySpecificSummary |
categorySpecificSummary()
Summary information that relates to the category of the check.
|
String |
checkId()
The unique identifier for the Trusted Advisor check.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<TrustedAdvisorResourceDetail> |
flaggedResources()
The details about each resource listed in the check result.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasFlaggedResources()
For responses, this returns true if the service returned a value for the FlaggedResources property.
|
int |
hashCode() |
TrustedAdvisorResourcesSummary |
resourcesSummary()
Returns the value of the ResourcesSummary property for this object.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends TrustedAdvisorCheckResult.Builder> |
serializableBuilderClass() |
String |
status()
The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".
|
String |
timestamp()
The time of the last refresh of the check.
|
TrustedAdvisorCheckResult.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String checkId()
The unique identifier for the Trusted Advisor check.
public final String timestamp()
The time of the last refresh of the check.
public final String status()
The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".
public final TrustedAdvisorResourcesSummary resourcesSummary()
public final TrustedAdvisorCategorySpecificSummary categorySpecificSummary()
Summary information that relates to the category of the check. Cost Optimizing is the only category that is currently supported.
public final boolean hasFlaggedResources()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<TrustedAdvisorResourceDetail> flaggedResources()
The details about each resource listed in the check result.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasFlaggedResources() method.
public TrustedAdvisorCheckResult.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TrustedAdvisorCheckResult.Builder,TrustedAdvisorCheckResult>public static TrustedAdvisorCheckResult.Builder builder()
public static Class<? extends TrustedAdvisorCheckResult.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.