/* * 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 { /// /// A summary of a recommendation. /// public partial class RecommendationSummary { private string _accountId; private CurrentPerformanceRiskRatings _currentPerformanceRiskRatings; private List _inferredWorkloadSavings = new List(); private RecommendationSourceType _recommendationResourceType; private SavingsOpportunity _savingsOpportunity; private List _summaries = new List(); /// /// Gets and sets the property AccountId. /// /// The Amazon Web Services account ID of the recommendation summary. /// /// public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// /// Gets and sets the property CurrentPerformanceRiskRatings. /// /// An object that describes the performance risk ratings for a given resource type. /// /// public CurrentPerformanceRiskRatings CurrentPerformanceRiskRatings { get { return this._currentPerformanceRiskRatings; } set { this._currentPerformanceRiskRatings = value; } } // Check to see if CurrentPerformanceRiskRatings property is set internal bool IsSetCurrentPerformanceRiskRatings() { return this._currentPerformanceRiskRatings != null; } /// /// Gets and sets the property InferredWorkloadSavings. /// /// An array of objects that describes the estimated monthly saving amounts for the instances /// running on the specified inferredWorkloadTypes. The array contains the /// top three savings opportunites for the instances running inferred workload types. /// /// /// public List InferredWorkloadSavings { get { return this._inferredWorkloadSavings; } set { this._inferredWorkloadSavings = value; } } // Check to see if InferredWorkloadSavings property is set internal bool IsSetInferredWorkloadSavings() { return this._inferredWorkloadSavings != null && this._inferredWorkloadSavings.Count > 0; } /// /// Gets and sets the property RecommendationResourceType. /// /// The resource type that the recommendation summary applies to. /// /// public RecommendationSourceType RecommendationResourceType { get { return this._recommendationResourceType; } set { this._recommendationResourceType = value; } } // Check to see if RecommendationResourceType property is set internal bool IsSetRecommendationResourceType() { return this._recommendationResourceType != null; } /// /// Gets and sets the property SavingsOpportunity. /// /// An object that describes the savings opportunity for a given resource type. Savings /// opportunity includes the estimated monthly savings amount and percentage. /// /// public SavingsOpportunity SavingsOpportunity { get { return this._savingsOpportunity; } set { this._savingsOpportunity = value; } } // Check to see if SavingsOpportunity property is set internal bool IsSetSavingsOpportunity() { return this._savingsOpportunity != null; } /// /// Gets and sets the property Summaries. /// /// An array of objects that describe a recommendation summary. /// /// public List Summaries { get { return this._summaries; } set { this._summaries = value; } } // Check to see if Summaries property is set internal bool IsSetSummaries() { return this._summaries != null && this._summaries.Count > 0; } } }