@Generated(value="software.amazon.awssdk:codegen") public final class RecommendationPreferencesDetail extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RecommendationPreferencesDetail.Builder,RecommendationPreferencesDetail>
Describes a recommendation preference.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RecommendationPreferencesDetail.Builder |
| Modifier and Type | Method and Description |
|---|---|
static RecommendationPreferencesDetail.Builder |
builder() |
EnhancedInfrastructureMetrics |
enhancedInfrastructureMetrics()
The status of the enhanced infrastructure metrics recommendation preference.
|
String |
enhancedInfrastructureMetricsAsString()
The status of the enhanced infrastructure metrics recommendation preference.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
ExternalMetricsPreference |
externalMetricsPreference()
An object that describes the external metrics recommendation preference.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
InferredWorkloadTypesPreference |
inferredWorkloadTypes()
The status of the inferred workload types recommendation preference.
|
String |
inferredWorkloadTypesAsString()
The status of the inferred workload types recommendation preference.
|
ResourceType |
resourceType()
The target resource type of the recommendation preference to create.
|
String |
resourceTypeAsString()
The target resource type of the recommendation preference to create.
|
Scope |
scope()
An object that describes the scope of the recommendation preference.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RecommendationPreferencesDetail.Builder> |
serializableBuilderClass() |
RecommendationPreferencesDetail.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Scope scope()
An object that describes the scope of the recommendation preference.
Recommendation preferences can be created at the organization level (for management accounts of an organization only), account level, and resource level. For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.
Recommendation preferences can be created at the organization level (for management accounts of an organization only), account level, and resource level. For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.
public final ResourceType resourceType()
The target resource type of the recommendation preference to create.
The Ec2Instance option encompasses standalone instances and instances that are part of Auto Scaling
groups. The AutoScalingGroup option encompasses only instances that are part of an Auto Scaling
group.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
The Ec2Instance option encompasses standalone instances and instances that are part of Auto
Scaling groups. The AutoScalingGroup option encompasses only instances that are part of an
Auto Scaling group.
ResourceTypepublic final String resourceTypeAsString()
The target resource type of the recommendation preference to create.
The Ec2Instance option encompasses standalone instances and instances that are part of Auto Scaling
groups. The AutoScalingGroup option encompasses only instances that are part of an Auto Scaling
group.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
The Ec2Instance option encompasses standalone instances and instances that are part of Auto
Scaling groups. The AutoScalingGroup option encompasses only instances that are part of an
Auto Scaling group.
ResourceTypepublic final EnhancedInfrastructureMetrics enhancedInfrastructureMetrics()
The status of the enhanced infrastructure metrics recommendation preference.
When the recommendations page is refreshed, a status of Active confirms that the preference is
applied to the recommendations, and a status of Inactive confirms that the preference isn't yet
applied to recommendations.
For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
If the service returns an enum value that is not available in the current SDK version,
enhancedInfrastructureMetrics will return EnhancedInfrastructureMetrics.UNKNOWN_TO_SDK_VERSION.
The raw value returned by the service is available from enhancedInfrastructureMetricsAsString().
When the recommendations page is refreshed, a status of Active confirms that the preference
is applied to the recommendations, and a status of Inactive confirms that the preference
isn't yet applied to recommendations.
For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
EnhancedInfrastructureMetricspublic final String enhancedInfrastructureMetricsAsString()
The status of the enhanced infrastructure metrics recommendation preference.
When the recommendations page is refreshed, a status of Active confirms that the preference is
applied to the recommendations, and a status of Inactive confirms that the preference isn't yet
applied to recommendations.
For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
If the service returns an enum value that is not available in the current SDK version,
enhancedInfrastructureMetrics will return EnhancedInfrastructureMetrics.UNKNOWN_TO_SDK_VERSION.
The raw value returned by the service is available from enhancedInfrastructureMetricsAsString().
When the recommendations page is refreshed, a status of Active confirms that the preference
is applied to the recommendations, and a status of Inactive confirms that the preference
isn't yet applied to recommendations.
For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
EnhancedInfrastructureMetricspublic final InferredWorkloadTypesPreference inferredWorkloadTypes()
The status of the inferred workload types recommendation preference.
When the recommendations page is refreshed, a status of Active confirms that the preference is
applied to the recommendations, and a status of Inactive confirms that the preference isn't yet
applied to recommendations.
If the service returns an enum value that is not available in the current SDK version,
inferredWorkloadTypes will return InferredWorkloadTypesPreference.UNKNOWN_TO_SDK_VERSION. The
raw value returned by the service is available from inferredWorkloadTypesAsString().
When the recommendations page is refreshed, a status of Active confirms that the preference
is applied to the recommendations, and a status of Inactive confirms that the preference
isn't yet applied to recommendations.
InferredWorkloadTypesPreferencepublic final String inferredWorkloadTypesAsString()
The status of the inferred workload types recommendation preference.
When the recommendations page is refreshed, a status of Active confirms that the preference is
applied to the recommendations, and a status of Inactive confirms that the preference isn't yet
applied to recommendations.
If the service returns an enum value that is not available in the current SDK version,
inferredWorkloadTypes will return InferredWorkloadTypesPreference.UNKNOWN_TO_SDK_VERSION. The
raw value returned by the service is available from inferredWorkloadTypesAsString().
When the recommendations page is refreshed, a status of Active confirms that the preference
is applied to the recommendations, and a status of Inactive confirms that the preference
isn't yet applied to recommendations.
InferredWorkloadTypesPreferencepublic final ExternalMetricsPreference externalMetricsPreference()
An object that describes the external metrics recommendation preference.
If the preference is applied in the latest recommendation refresh, an object with a valid source
value appears in the response. If the preference isn't applied to the recommendations already, then this object
doesn't appear in the response.
If the preference is applied in the latest recommendation refresh, an object with a valid
source value appears in the response. If the preference isn't applied to the recommendations
already, then this object doesn't appear in the response.
public RecommendationPreferencesDetail.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RecommendationPreferencesDetail.Builder,RecommendationPreferencesDetail>public static RecommendationPreferencesDetail.Builder builder()
public static Class<? extends RecommendationPreferencesDetail.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.