/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the compute-optimizer-2019-11-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.ComputeOptimizer.Model
{
///
/// This is the response object from the GetEffectiveRecommendationPreferences operation.
///
public partial class GetEffectiveRecommendationPreferencesResponse : AmazonWebServiceResponse
{
private EnhancedInfrastructureMetrics _enhancedInfrastructureMetrics;
private ExternalMetricsPreference _externalMetricsPreference;
///
/// Gets and sets the property EnhancedInfrastructureMetrics.
///
/// 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 in the Compute Optimizer User Guide.
///
///
public EnhancedInfrastructureMetrics EnhancedInfrastructureMetrics
{
get { return this._enhancedInfrastructureMetrics; }
set { this._enhancedInfrastructureMetrics = value; }
}
// Check to see if EnhancedInfrastructureMetrics property is set
internal bool IsSetEnhancedInfrastructureMetrics()
{
return this._enhancedInfrastructureMetrics != null;
}
///
/// Gets and sets the property ExternalMetricsPreference.
///
/// 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 in the Compute Optimizer User Guide.
///
///
public ExternalMetricsPreference ExternalMetricsPreference
{
get { return this._externalMetricsPreference; }
set { this._externalMetricsPreference = value; }
}
// Check to see if ExternalMetricsPreference property is set
internal bool IsSetExternalMetricsPreference()
{
return this._externalMetricsPreference != null;
}
}
}