/*
* 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 a projected utilization metric of a recommendation option.
///
///
///
/// The Cpu
and Memory
metrics are the only projected utilization
/// metrics returned when you run the GetEC2RecommendationProjectedMetrics action.
/// Additionally, the Memory
metric is returned only for resources that have
/// the unified CloudWatch agent installed on them. For more information, see Enabling
/// Memory Utilization with the CloudWatch Agent.
///
///
///
public partial class RecommendedOptionProjectedMetric
{
private List _projectedMetrics = new List();
private int? _rank;
private string _recommendedInstanceType;
///
/// Gets and sets the property ProjectedMetrics.
///
/// An array of objects that describe a projected utilization metric.
///
///
public List ProjectedMetrics
{
get { return this._projectedMetrics; }
set { this._projectedMetrics = value; }
}
// Check to see if ProjectedMetrics property is set
internal bool IsSetProjectedMetrics()
{
return this._projectedMetrics != null && this._projectedMetrics.Count > 0;
}
///
/// Gets and sets the property Rank.
///
/// The rank of the recommendation option projected metric.
///
///
///
/// The top recommendation option is ranked as 1
.
///
///
///
/// The projected metric rank correlates to the recommendation option rank. For example,
/// the projected metric ranked as 1
is related to the recommendation option
/// that is also ranked as 1
in the same response.
///
///
public int Rank
{
get { return this._rank.GetValueOrDefault(); }
set { this._rank = value; }
}
// Check to see if Rank property is set
internal bool IsSetRank()
{
return this._rank.HasValue;
}
///
/// Gets and sets the property RecommendedInstanceType.
///
/// The recommended instance type.
///
///
public string RecommendedInstanceType
{
get { return this._recommendedInstanceType; }
set { this._recommendedInstanceType = value; }
}
// Check to see if RecommendedInstanceType property is set
internal bool IsSetRecommendedInstanceType()
{
return this._recommendedInstanceType != null;
}
}
}