@Generated(value="software.amazon.awssdk:codegen") public final class PutRecommendationPreferencesRequest extends ComputeOptimizerRequest implements ToCopyableBuilder<PutRecommendationPreferencesRequest.Builder,PutRecommendationPreferencesRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
PutRecommendationPreferencesRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PutRecommendationPreferencesRequest.Builder |
builder() |
EnhancedInfrastructureMetrics |
enhancedInfrastructureMetrics()
The status of the enhanced infrastructure metrics recommendation preference to create or update.
|
String |
enhancedInfrastructureMetricsAsString()
The status of the enhanced infrastructure metrics recommendation preference to create or update.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
ExternalMetricsPreference |
externalMetricsPreference()
The provider of the external metrics recommendation preference to create or update.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
InferredWorkloadTypesPreference |
inferredWorkloadTypes()
The status of the inferred workload types recommendation preference to create or update.
|
String |
inferredWorkloadTypesAsString()
The status of the inferred workload types recommendation preference to create or update.
|
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 to create.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PutRecommendationPreferencesRequest.Builder> |
serializableBuilderClass() |
PutRecommendationPreferencesRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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.
The valid values for this parameter are Ec2Instance and AutoScalingGroup.
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.
The valid values for this parameter are Ec2Instance and AutoScalingGroup.
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.
The valid values for this parameter are Ec2Instance and AutoScalingGroup.
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.
The valid values for this parameter are Ec2Instance and AutoScalingGroup.
ResourceTypepublic final Scope scope()
An object that describes the scope of the recommendation preference to create.
You can create recommendation preferences 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.
You cannot create recommendation preferences for Auto Scaling groups at the organization and account levels. You
can create recommendation preferences for Auto Scaling groups only at the resource level by specifying a scope
name of ResourceArn and a scope value of the Auto Scaling group Amazon Resource Name (ARN). This
will configure the preference for all instances that are part of the specified Auto Scaling group. You also
cannot create recommendation preferences at the resource level for instances that are part of an Auto Scaling
group. You can create recommendation preferences at the resource level only for standalone instances.
You can create recommendation preferences 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.
You cannot create recommendation preferences for Auto Scaling groups at the organization and account
levels. You can create recommendation preferences for Auto Scaling groups only at the resource level by
specifying a scope name of ResourceArn and a scope value of the Auto Scaling group Amazon
Resource Name (ARN). This will configure the preference for all instances that are part of the specified
Auto Scaling group. You also cannot create recommendation preferences at the resource level for instances
that are part of an Auto Scaling group. You can create recommendation preferences at the resource level
only for standalone instances.
public final EnhancedInfrastructureMetrics enhancedInfrastructureMetrics()
The status of the enhanced infrastructure metrics recommendation preference to create or update.
Specify the Active status to activate the preference, or specify Inactive to deactivate
the preference.
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().
Specify the Active status to activate the preference, or specify Inactive to
deactivate the preference.
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 to create or update.
Specify the Active status to activate the preference, or specify Inactive to deactivate
the preference.
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().
Specify the Active status to activate the preference, or specify Inactive to
deactivate the preference.
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 to create or update.
The inferred workload type feature is active by default. To deactivate it, create a recommendation preference.
Specify the Inactive status to deactivate the feature, or specify Active to activate
it.
For more information, see Inferred workload types in the Compute Optimizer User Guide.
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().
The inferred workload type feature is active by default. To deactivate it, create a recommendation preference.
Specify the Inactive status to deactivate the feature, or specify Active to
activate it.
For more information, see Inferred workload types in the Compute Optimizer User Guide.
InferredWorkloadTypesPreferencepublic final String inferredWorkloadTypesAsString()
The status of the inferred workload types recommendation preference to create or update.
The inferred workload type feature is active by default. To deactivate it, create a recommendation preference.
Specify the Inactive status to deactivate the feature, or specify Active to activate
it.
For more information, see Inferred workload types in the Compute Optimizer User Guide.
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().
The inferred workload type feature is active by default. To deactivate it, create a recommendation preference.
Specify the Inactive status to deactivate the feature, or specify Active to
activate it.
For more information, see Inferred workload types in the Compute Optimizer User Guide.
InferredWorkloadTypesPreferencepublic final ExternalMetricsPreference externalMetricsPreference()
The provider of the external metrics recommendation preference to create or update.
Specify a valid provider in the source field to activate the preference. To delete this preference,
see the DeleteRecommendationPreferences action.
This preference can only be set for the Ec2Instance resource type.
For more information, see External metrics ingestion in the Compute Optimizer User Guide.
Specify a valid provider in the source field to activate the preference. To delete this
preference, see the DeleteRecommendationPreferences action.
This preference can only be set for the Ec2Instance resource type.
For more information, see External metrics ingestion in the Compute Optimizer User Guide.
public PutRecommendationPreferencesRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PutRecommendationPreferencesRequest.Builder,PutRecommendationPreferencesRequest>toBuilder in class ComputeOptimizerRequestpublic static PutRecommendationPreferencesRequest.Builder builder()
public static Class<? extends PutRecommendationPreferencesRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.