AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
LicenseRecommendationOption.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/compute-optimizer/model/LicenseEdition.h>
10#include <aws/compute-optimizer/model/LicenseModel.h>
11#include <aws/compute-optimizer/model/SavingsOpportunity.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ComputeOptimizer
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_COMPUTEOPTIMIZER_API LicenseRecommendationOption() = default;
39 AWS_COMPUTEOPTIMIZER_API LicenseRecommendationOption(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline int GetRank() const { return m_rank; }
50 inline bool RankHasBeenSet() const { return m_rankHasBeenSet; }
51 inline void SetRank(int value) { m_rankHasBeenSet = true; m_rank = value; }
52 inline LicenseRecommendationOption& WithRank(int value) { SetRank(value); return *this;}
54
56
59 inline const Aws::String& GetOperatingSystem() const { return m_operatingSystem; }
60 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
61 template<typename OperatingSystemT = Aws::String>
62 void SetOperatingSystem(OperatingSystemT&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::forward<OperatingSystemT>(value); }
63 template<typename OperatingSystemT = Aws::String>
64 LicenseRecommendationOption& WithOperatingSystem(OperatingSystemT&& value) { SetOperatingSystem(std::forward<OperatingSystemT>(value)); return *this;}
66
68
72 inline LicenseEdition GetLicenseEdition() const { return m_licenseEdition; }
73 inline bool LicenseEditionHasBeenSet() const { return m_licenseEditionHasBeenSet; }
74 inline void SetLicenseEdition(LicenseEdition value) { m_licenseEditionHasBeenSet = true; m_licenseEdition = value; }
77
79
82 inline LicenseModel GetLicenseModel() const { return m_licenseModel; }
83 inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; }
84 inline void SetLicenseModel(LicenseModel value) { m_licenseModelHasBeenSet = true; m_licenseModel = value; }
87
89
90 inline const SavingsOpportunity& GetSavingsOpportunity() const { return m_savingsOpportunity; }
91 inline bool SavingsOpportunityHasBeenSet() const { return m_savingsOpportunityHasBeenSet; }
92 template<typename SavingsOpportunityT = SavingsOpportunity>
93 void SetSavingsOpportunity(SavingsOpportunityT&& value) { m_savingsOpportunityHasBeenSet = true; m_savingsOpportunity = std::forward<SavingsOpportunityT>(value); }
94 template<typename SavingsOpportunityT = SavingsOpportunity>
95 LicenseRecommendationOption& WithSavingsOpportunity(SavingsOpportunityT&& value) { SetSavingsOpportunity(std::forward<SavingsOpportunityT>(value)); return *this;}
97 private:
98
99 int m_rank{0};
100 bool m_rankHasBeenSet = false;
101
102 Aws::String m_operatingSystem;
103 bool m_operatingSystemHasBeenSet = false;
104
105 LicenseEdition m_licenseEdition{LicenseEdition::NOT_SET};
106 bool m_licenseEditionHasBeenSet = false;
107
108 LicenseModel m_licenseModel{LicenseModel::NOT_SET};
109 bool m_licenseModelHasBeenSet = false;
110
111 SavingsOpportunity m_savingsOpportunity;
112 bool m_savingsOpportunityHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace ComputeOptimizer
117} // namespace Aws
LicenseRecommendationOption & WithSavingsOpportunity(SavingsOpportunityT &&value)
AWS_COMPUTEOPTIMIZER_API LicenseRecommendationOption(Aws::Utils::Json::JsonView jsonValue)
LicenseRecommendationOption & WithLicenseEdition(LicenseEdition value)
LicenseRecommendationOption & WithLicenseModel(LicenseModel value)
LicenseRecommendationOption & WithOperatingSystem(OperatingSystemT &&value)
AWS_COMPUTEOPTIMIZER_API LicenseRecommendationOption()=default
AWS_COMPUTEOPTIMIZER_API LicenseRecommendationOption & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue