AWS SDK for C++

AWS SDK for C++ Version 1.11.753

Loading...
Searching...
No Matches
LicenseRecommendationOption.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/LicenseEdition.h>
9#include <aws/compute-optimizer/model/LicenseModel.h>
10#include <aws/compute-optimizer/model/SavingsOpportunity.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ComputeOptimizer {
23namespace Model {
24
32 public:
33 AWS_COMPUTEOPTIMIZER_API LicenseRecommendationOption() = default;
34 AWS_COMPUTEOPTIMIZER_API LicenseRecommendationOption(Aws::Utils::Json::JsonView jsonValue);
36 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline int GetRank() const { return m_rank; }
44 inline bool RankHasBeenSet() const { return m_rankHasBeenSet; }
45 inline void SetRank(int value) {
46 m_rankHasBeenSet = true;
47 m_rank = value;
48 }
50 SetRank(value);
51 return *this;
52 }
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) {
63 m_operatingSystemHasBeenSet = true;
64 m_operatingSystem = std::forward<OperatingSystemT>(value);
65 }
66 template <typename OperatingSystemT = Aws::String>
68 SetOperatingSystem(std::forward<OperatingSystemT>(value));
69 return *this;
70 }
72
74
78 inline LicenseEdition GetLicenseEdition() const { return m_licenseEdition; }
79 inline bool LicenseEditionHasBeenSet() const { return m_licenseEditionHasBeenSet; }
80 inline void SetLicenseEdition(LicenseEdition value) {
81 m_licenseEditionHasBeenSet = true;
82 m_licenseEdition = value;
83 }
85 SetLicenseEdition(value);
86 return *this;
87 }
89
91
94 inline LicenseModel GetLicenseModel() const { return m_licenseModel; }
95 inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; }
96 inline void SetLicenseModel(LicenseModel value) {
97 m_licenseModelHasBeenSet = true;
98 m_licenseModel = value;
99 }
101 SetLicenseModel(value);
102 return *this;
103 }
105
107
108 inline const SavingsOpportunity& GetSavingsOpportunity() const { return m_savingsOpportunity; }
109 inline bool SavingsOpportunityHasBeenSet() const { return m_savingsOpportunityHasBeenSet; }
110 template <typename SavingsOpportunityT = SavingsOpportunity>
111 void SetSavingsOpportunity(SavingsOpportunityT&& value) {
112 m_savingsOpportunityHasBeenSet = true;
113 m_savingsOpportunity = std::forward<SavingsOpportunityT>(value);
114 }
115 template <typename SavingsOpportunityT = SavingsOpportunity>
117 SetSavingsOpportunity(std::forward<SavingsOpportunityT>(value));
118 return *this;
119 }
121 private:
122 int m_rank{0};
123
124 Aws::String m_operatingSystem;
125
126 LicenseEdition m_licenseEdition{LicenseEdition::NOT_SET};
127
128 LicenseModel m_licenseModel{LicenseModel::NOT_SET};
129
130 SavingsOpportunity m_savingsOpportunity;
131 bool m_rankHasBeenSet = false;
132 bool m_operatingSystemHasBeenSet = false;
133 bool m_licenseEditionHasBeenSet = false;
134 bool m_licenseModelHasBeenSet = false;
135 bool m_savingsOpportunityHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace ComputeOptimizer
140} // 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