commonMain.aws.sdk.kotlin.services.computeoptimizer.model.GetEffectiveRecommendationPreferencesResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of computeoptimizer-jvm Show documentation
Show all versions of computeoptimizer-jvm Show documentation
The AWS SDK for Kotlin client for Compute Optimizer
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.computeoptimizer.model
public class GetEffectiveRecommendationPreferencesResponse private constructor(builder: Builder) {
/**
* The status of the enhanced infrastructure metrics recommendation preference. Considers all applicable preferences that you might have set at the resource, account, and organization level.
*
* A status of `Active` confirms that the preference is applied in the latest recommendation refresh, and a status of `Inactive` confirms that it's not yet applied to recommendations.
*
* To validate whether the preference is applied to your last generated set of recommendations, review the `effectiveRecommendationPreferences` value in the response of the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations actions.
*
* For more information, see [Enhanced infrastructure metrics](https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html) in the *Compute Optimizer User Guide*.
*/
public val enhancedInfrastructureMetrics: aws.sdk.kotlin.services.computeoptimizer.model.EnhancedInfrastructureMetrics? = builder.enhancedInfrastructureMetrics
/**
* The provider of the external metrics recommendation preference. Considers all applicable preferences that you might have set at the account and organization level.
*
* 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.
*
* To validate whether the preference is applied to your last generated set of recommendations, review the `effectiveRecommendationPreferences` value in the response of the GetEC2InstanceRecommendations actions.
*
* For more information, see [Enhanced infrastructure metrics](https://docs.aws.amazon.com/compute-optimizer/latest/ug/external-metrics-ingestion.html) in the *Compute Optimizer User Guide*.
*/
public val externalMetricsPreference: aws.sdk.kotlin.services.computeoptimizer.model.ExternalMetricsPreference? = builder.externalMetricsPreference
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.computeoptimizer.model.GetEffectiveRecommendationPreferencesResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetEffectiveRecommendationPreferencesResponse(")
append("enhancedInfrastructureMetrics=$enhancedInfrastructureMetrics,")
append("externalMetricsPreference=$externalMetricsPreference")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = enhancedInfrastructureMetrics?.hashCode() ?: 0
result = 31 * result + (externalMetricsPreference?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as GetEffectiveRecommendationPreferencesResponse
if (enhancedInfrastructureMetrics != other.enhancedInfrastructureMetrics) return false
if (externalMetricsPreference != other.externalMetricsPreference) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.computeoptimizer.model.GetEffectiveRecommendationPreferencesResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The status of the enhanced infrastructure metrics recommendation preference. Considers all applicable preferences that you might have set at the resource, account, and organization level.
*
* A status of `Active` confirms that the preference is applied in the latest recommendation refresh, and a status of `Inactive` confirms that it's not yet applied to recommendations.
*
* To validate whether the preference is applied to your last generated set of recommendations, review the `effectiveRecommendationPreferences` value in the response of the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations actions.
*
* For more information, see [Enhanced infrastructure metrics](https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html) in the *Compute Optimizer User Guide*.
*/
public var enhancedInfrastructureMetrics: aws.sdk.kotlin.services.computeoptimizer.model.EnhancedInfrastructureMetrics? = null
/**
* The provider of the external metrics recommendation preference. Considers all applicable preferences that you might have set at the account and organization level.
*
* 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.
*
* To validate whether the preference is applied to your last generated set of recommendations, review the `effectiveRecommendationPreferences` value in the response of the GetEC2InstanceRecommendations actions.
*
* For more information, see [Enhanced infrastructure metrics](https://docs.aws.amazon.com/compute-optimizer/latest/ug/external-metrics-ingestion.html) in the *Compute Optimizer User Guide*.
*/
public var externalMetricsPreference: aws.sdk.kotlin.services.computeoptimizer.model.ExternalMetricsPreference? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.computeoptimizer.model.GetEffectiveRecommendationPreferencesResponse) : this() {
this.enhancedInfrastructureMetrics = x.enhancedInfrastructureMetrics
this.externalMetricsPreference = x.externalMetricsPreference
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.computeoptimizer.model.GetEffectiveRecommendationPreferencesResponse = GetEffectiveRecommendationPreferencesResponse(this)
/**
* construct an [aws.sdk.kotlin.services.computeoptimizer.model.ExternalMetricsPreference] inside the given [block]
*/
public fun externalMetricsPreference(block: aws.sdk.kotlin.services.computeoptimizer.model.ExternalMetricsPreference.Builder.() -> kotlin.Unit) {
this.externalMetricsPreference = aws.sdk.kotlin.services.computeoptimizer.model.ExternalMetricsPreference.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy