/*
* 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
{
///
/// Describes the effective recommendation preferences for a resource.
///
public partial class EffectiveRecommendationPreferences
{
private List _cpuVendorArchitectures = new List();
private EnhancedInfrastructureMetrics _enhancedInfrastructureMetrics;
private ExternalMetricsPreference _externalMetricsPreference;
private InferredWorkloadTypesPreference _inferredWorkloadTypes;
///
/// Gets and sets the property CpuVendorArchitectures.
///
/// Describes the CPU vendor and architecture for an instance or Auto Scaling group recommendations.
///
///
///
/// For example, when you specify AWS_ARM64
with:
///
///
///
public List CpuVendorArchitectures
{
get { return this._cpuVendorArchitectures; }
set { this._cpuVendorArchitectures = value; }
}
// Check to see if CpuVendorArchitectures property is set
internal bool IsSetCpuVendorArchitectures()
{
return this._cpuVendorArchitectures != null && this._cpuVendorArchitectures.Count > 0;
}
///
/// Gets and sets the property EnhancedInfrastructureMetrics.
///
/// Describes the activation status of the enhanced infrastructure metrics preference.
///
///
///
/// 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.
///
///
///
/// 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.
///
/// 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.
///
///
///
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;
}
///
/// Gets and sets the property InferredWorkloadTypes.
///
/// Describes the activation status of the inferred workload types preference.
///
///
///
/// A status of Active
confirms that the preference is applied in the latest
/// recommendation refresh. A status of Inactive
confirms that it's not yet
/// applied to recommendations.
///
///
public InferredWorkloadTypesPreference InferredWorkloadTypes
{
get { return this._inferredWorkloadTypes; }
set { this._inferredWorkloadTypes = value; }
}
// Check to see if InferredWorkloadTypes property is set
internal bool IsSetInferredWorkloadTypes()
{
return this._inferredWorkloadTypes != null;
}
}
}