@Generated(value="software.amazon.awssdk:codegen") public final class RecommendationSummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RecommendationSummary.Builder,RecommendationSummary>
A summary of a recommendation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RecommendationSummary.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accountId()
The Amazon Web Services account ID of the recommendation summary.
|
static RecommendationSummary.Builder |
builder() |
CurrentPerformanceRiskRatings |
currentPerformanceRiskRatings()
An object that describes the performance risk ratings for a given resource type.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasInferredWorkloadSavings()
For responses, this returns true if the service returned a value for the InferredWorkloadSavings property.
|
boolean |
hasSummaries()
For responses, this returns true if the service returned a value for the Summaries property.
|
List<InferredWorkloadSaving> |
inferredWorkloadSavings()
An array of objects that describes the estimated monthly saving amounts for the instances running on the
specified
inferredWorkloadTypes. |
RecommendationSourceType |
recommendationResourceType()
The resource type that the recommendation summary applies to.
|
String |
recommendationResourceTypeAsString()
The resource type that the recommendation summary applies to.
|
SavingsOpportunity |
savingsOpportunity()
An object that describes the savings opportunity for a given resource type.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RecommendationSummary.Builder> |
serializableBuilderClass() |
List<Summary> |
summaries()
An array of objects that describe a recommendation summary.
|
RecommendationSummary.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasSummaries()
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<Summary> summaries()
An array of objects that describe a recommendation summary.
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 hasSummaries() method.
public final RecommendationSourceType recommendationResourceType()
The resource type that the recommendation summary applies to.
If the service returns an enum value that is not available in the current SDK version,
recommendationResourceType will return RecommendationSourceType.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from recommendationResourceTypeAsString().
RecommendationSourceTypepublic final String recommendationResourceTypeAsString()
The resource type that the recommendation summary applies to.
If the service returns an enum value that is not available in the current SDK version,
recommendationResourceType will return RecommendationSourceType.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from recommendationResourceTypeAsString().
RecommendationSourceTypepublic final String accountId()
The Amazon Web Services account ID of the recommendation summary.
public final SavingsOpportunity savingsOpportunity()
An object that describes the savings opportunity for a given resource type. Savings opportunity includes the estimated monthly savings amount and percentage.
public final CurrentPerformanceRiskRatings currentPerformanceRiskRatings()
An object that describes the performance risk ratings for a given resource type.
public final boolean hasInferredWorkloadSavings()
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<InferredWorkloadSaving> inferredWorkloadSavings()
An array of objects that describes the estimated monthly saving amounts for the instances running on the
specified inferredWorkloadTypes. The array contains the top three savings opportunites for the
instances running inferred workload types.
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 hasInferredWorkloadSavings() method.
inferredWorkloadTypes. The array contains the top three savings opportunites for
the instances running inferred workload types.public RecommendationSummary.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RecommendationSummary.Builder,RecommendationSummary>public static RecommendationSummary.Builder builder()
public static Class<? extends RecommendationSummary.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.