AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetOperatingSystem(const Aws::String& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
62 inline void SetOperatingSystem(Aws::String&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::move(value); }
63 inline void SetOperatingSystem(const char* value) { m_operatingSystemHasBeenSet = true; m_operatingSystem.assign(value); }
65 inline LicenseRecommendationOption& WithOperatingSystem(Aws::String&& value) { SetOperatingSystem(std::move(value)); return *this;}
66 inline LicenseRecommendationOption& WithOperatingSystem(const char* value) { SetOperatingSystem(value); return *this;}
68
70
74 inline const LicenseEdition& GetLicenseEdition() const{ return m_licenseEdition; }
75 inline bool LicenseEditionHasBeenSet() const { return m_licenseEditionHasBeenSet; }
76 inline void SetLicenseEdition(const LicenseEdition& value) { m_licenseEditionHasBeenSet = true; m_licenseEdition = value; }
77 inline void SetLicenseEdition(LicenseEdition&& value) { m_licenseEditionHasBeenSet = true; m_licenseEdition = std::move(value); }
79 inline LicenseRecommendationOption& WithLicenseEdition(LicenseEdition&& value) { SetLicenseEdition(std::move(value)); return *this;}
81
83
86 inline const LicenseModel& GetLicenseModel() const{ return m_licenseModel; }
87 inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; }
88 inline void SetLicenseModel(const LicenseModel& value) { m_licenseModelHasBeenSet = true; m_licenseModel = value; }
89 inline void SetLicenseModel(LicenseModel&& value) { m_licenseModelHasBeenSet = true; m_licenseModel = std::move(value); }
90 inline LicenseRecommendationOption& WithLicenseModel(const LicenseModel& value) { SetLicenseModel(value); return *this;}
91 inline LicenseRecommendationOption& WithLicenseModel(LicenseModel&& value) { SetLicenseModel(std::move(value)); return *this;}
93
95
96 inline const SavingsOpportunity& GetSavingsOpportunity() const{ return m_savingsOpportunity; }
97 inline bool SavingsOpportunityHasBeenSet() const { return m_savingsOpportunityHasBeenSet; }
98 inline void SetSavingsOpportunity(const SavingsOpportunity& value) { m_savingsOpportunityHasBeenSet = true; m_savingsOpportunity = value; }
99 inline void SetSavingsOpportunity(SavingsOpportunity&& value) { m_savingsOpportunityHasBeenSet = true; m_savingsOpportunity = std::move(value); }
103 private:
104
105 int m_rank;
106 bool m_rankHasBeenSet = false;
107
108 Aws::String m_operatingSystem;
109 bool m_operatingSystemHasBeenSet = false;
110
111 LicenseEdition m_licenseEdition;
112 bool m_licenseEditionHasBeenSet = false;
113
114 LicenseModel m_licenseModel;
115 bool m_licenseModelHasBeenSet = false;
116
117 SavingsOpportunity m_savingsOpportunity;
118 bool m_savingsOpportunityHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace ComputeOptimizer
123} // namespace Aws
LicenseRecommendationOption & WithSavingsOpportunity(SavingsOpportunity &&value)
LicenseRecommendationOption & WithLicenseModel(LicenseModel &&value)
LicenseRecommendationOption & WithOperatingSystem(const char *value)
LicenseRecommendationOption & WithOperatingSystem(Aws::String &&value)
AWS_COMPUTEOPTIMIZER_API LicenseRecommendationOption(Aws::Utils::Json::JsonView jsonValue)
LicenseRecommendationOption & WithLicenseEdition(LicenseEdition &&value)
LicenseRecommendationOption & WithLicenseModel(const LicenseModel &value)
LicenseRecommendationOption & WithLicenseEdition(const LicenseEdition &value)
AWS_COMPUTEOPTIMIZER_API LicenseRecommendationOption & operator=(Aws::Utils::Json::JsonView jsonValue)
LicenseRecommendationOption & WithOperatingSystem(const Aws::String &value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
LicenseRecommendationOption & WithSavingsOpportunity(const SavingsOpportunity &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue