This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/InstanceRecommendationOption.h

212 lines
8.2 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/compute-optimizer/model/UtilizationMetric.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ComputeOptimizer
{
namespace Model
{
/**
* <p>Describes a recommendation option for an Amazon EC2 instance.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/InstanceRecommendationOption">AWS
* API Reference</a></p>
*/
class AWS_COMPUTEOPTIMIZER_API InstanceRecommendationOption
{
public:
InstanceRecommendationOption();
InstanceRecommendationOption(Aws::Utils::Json::JsonView jsonValue);
InstanceRecommendationOption& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The instance type of the instance recommendation.</p>
*/
inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
/**
* <p>The instance type of the instance recommendation.</p>
*/
inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
/**
* <p>The instance type of the instance recommendation.</p>
*/
inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
/**
* <p>The instance type of the instance recommendation.</p>
*/
inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
/**
* <p>The instance type of the instance recommendation.</p>
*/
inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
/**
* <p>The instance type of the instance recommendation.</p>
*/
inline InstanceRecommendationOption& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
/**
* <p>The instance type of the instance recommendation.</p>
*/
inline InstanceRecommendationOption& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
/**
* <p>The instance type of the instance recommendation.</p>
*/
inline InstanceRecommendationOption& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
/**
* <p>An array of objects that describe the projected utilization metrics of the
* instance recommendation option.</p>
*/
inline const Aws::Vector<UtilizationMetric>& GetProjectedUtilizationMetrics() const{ return m_projectedUtilizationMetrics; }
/**
* <p>An array of objects that describe the projected utilization metrics of the
* instance recommendation option.</p>
*/
inline bool ProjectedUtilizationMetricsHasBeenSet() const { return m_projectedUtilizationMetricsHasBeenSet; }
/**
* <p>An array of objects that describe the projected utilization metrics of the
* instance recommendation option.</p>
*/
inline void SetProjectedUtilizationMetrics(const Aws::Vector<UtilizationMetric>& value) { m_projectedUtilizationMetricsHasBeenSet = true; m_projectedUtilizationMetrics = value; }
/**
* <p>An array of objects that describe the projected utilization metrics of the
* instance recommendation option.</p>
*/
inline void SetProjectedUtilizationMetrics(Aws::Vector<UtilizationMetric>&& value) { m_projectedUtilizationMetricsHasBeenSet = true; m_projectedUtilizationMetrics = std::move(value); }
/**
* <p>An array of objects that describe the projected utilization metrics of the
* instance recommendation option.</p>
*/
inline InstanceRecommendationOption& WithProjectedUtilizationMetrics(const Aws::Vector<UtilizationMetric>& value) { SetProjectedUtilizationMetrics(value); return *this;}
/**
* <p>An array of objects that describe the projected utilization metrics of the
* instance recommendation option.</p>
*/
inline InstanceRecommendationOption& WithProjectedUtilizationMetrics(Aws::Vector<UtilizationMetric>&& value) { SetProjectedUtilizationMetrics(std::move(value)); return *this;}
/**
* <p>An array of objects that describe the projected utilization metrics of the
* instance recommendation option.</p>
*/
inline InstanceRecommendationOption& AddProjectedUtilizationMetrics(const UtilizationMetric& value) { m_projectedUtilizationMetricsHasBeenSet = true; m_projectedUtilizationMetrics.push_back(value); return *this; }
/**
* <p>An array of objects that describe the projected utilization metrics of the
* instance recommendation option.</p>
*/
inline InstanceRecommendationOption& AddProjectedUtilizationMetrics(UtilizationMetric&& value) { m_projectedUtilizationMetricsHasBeenSet = true; m_projectedUtilizationMetrics.push_back(std::move(value)); return *this; }
/**
* <p>The performance risk of the instance recommendation option.</p>
* <p>Performance risk is the likelihood of the recommended instance type not
* meeting the performance requirement of your workload.</p> <p>The lowest
* performance risk is categorized as <code>0</code>, and the highest as
* <code>5</code>.</p>
*/
inline double GetPerformanceRisk() const{ return m_performanceRisk; }
/**
* <p>The performance risk of the instance recommendation option.</p>
* <p>Performance risk is the likelihood of the recommended instance type not
* meeting the performance requirement of your workload.</p> <p>The lowest
* performance risk is categorized as <code>0</code>, and the highest as
* <code>5</code>.</p>
*/
inline bool PerformanceRiskHasBeenSet() const { return m_performanceRiskHasBeenSet; }
/**
* <p>The performance risk of the instance recommendation option.</p>
* <p>Performance risk is the likelihood of the recommended instance type not
* meeting the performance requirement of your workload.</p> <p>The lowest
* performance risk is categorized as <code>0</code>, and the highest as
* <code>5</code>.</p>
*/
inline void SetPerformanceRisk(double value) { m_performanceRiskHasBeenSet = true; m_performanceRisk = value; }
/**
* <p>The performance risk of the instance recommendation option.</p>
* <p>Performance risk is the likelihood of the recommended instance type not
* meeting the performance requirement of your workload.</p> <p>The lowest
* performance risk is categorized as <code>0</code>, and the highest as
* <code>5</code>.</p>
*/
inline InstanceRecommendationOption& WithPerformanceRisk(double value) { SetPerformanceRisk(value); return *this;}
/**
* <p>The rank of the instance recommendation option.</p> <p>The top recommendation
* option is ranked as <code>1</code>.</p>
*/
inline int GetRank() const{ return m_rank; }
/**
* <p>The rank of the instance recommendation option.</p> <p>The top recommendation
* option is ranked as <code>1</code>.</p>
*/
inline bool RankHasBeenSet() const { return m_rankHasBeenSet; }
/**
* <p>The rank of the instance recommendation option.</p> <p>The top recommendation
* option is ranked as <code>1</code>.</p>
*/
inline void SetRank(int value) { m_rankHasBeenSet = true; m_rank = value; }
/**
* <p>The rank of the instance recommendation option.</p> <p>The top recommendation
* option is ranked as <code>1</code>.</p>
*/
inline InstanceRecommendationOption& WithRank(int value) { SetRank(value); return *this;}
private:
Aws::String m_instanceType;
bool m_instanceTypeHasBeenSet;
Aws::Vector<UtilizationMetric> m_projectedUtilizationMetrics;
bool m_projectedUtilizationMetricsHasBeenSet;
double m_performanceRisk;
bool m_performanceRiskHasBeenSet;
int m_rank;
bool m_rankHasBeenSet;
};
} // namespace Model
} // namespace ComputeOptimizer
} // namespace Aws