AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LicenseConfiguration.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/LicenseName.h>
11#include <aws/compute-optimizer/model/LicenseModel.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/compute-optimizer/model/MetricSource.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ComputeOptimizer
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_COMPUTEOPTIMIZER_API LicenseConfiguration();
41 AWS_COMPUTEOPTIMIZER_API LicenseConfiguration(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COMPUTEOPTIMIZER_API LicenseConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline int GetNumberOfCores() const{ return m_numberOfCores; }
51 inline bool NumberOfCoresHasBeenSet() const { return m_numberOfCoresHasBeenSet; }
52 inline void SetNumberOfCores(int value) { m_numberOfCoresHasBeenSet = true; m_numberOfCores = value; }
53 inline LicenseConfiguration& WithNumberOfCores(int value) { SetNumberOfCores(value); return *this;}
55
57
60 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
61 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
62 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
63 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
64 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
65 inline LicenseConfiguration& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
66 inline LicenseConfiguration& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
67 inline LicenseConfiguration& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
69
71
74 inline const Aws::String& GetOperatingSystem() const{ return m_operatingSystem; }
75 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
76 inline void SetOperatingSystem(const Aws::String& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
77 inline void SetOperatingSystem(Aws::String&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::move(value); }
78 inline void SetOperatingSystem(const char* value) { m_operatingSystemHasBeenSet = true; m_operatingSystem.assign(value); }
79 inline LicenseConfiguration& WithOperatingSystem(const Aws::String& value) { SetOperatingSystem(value); return *this;}
80 inline LicenseConfiguration& WithOperatingSystem(Aws::String&& value) { SetOperatingSystem(std::move(value)); return *this;}
81 inline LicenseConfiguration& WithOperatingSystem(const char* value) { SetOperatingSystem(value); return *this;}
83
85
89 inline const LicenseEdition& GetLicenseEdition() const{ return m_licenseEdition; }
90 inline bool LicenseEditionHasBeenSet() const { return m_licenseEditionHasBeenSet; }
91 inline void SetLicenseEdition(const LicenseEdition& value) { m_licenseEditionHasBeenSet = true; m_licenseEdition = value; }
92 inline void SetLicenseEdition(LicenseEdition&& value) { m_licenseEditionHasBeenSet = true; m_licenseEdition = std::move(value); }
93 inline LicenseConfiguration& WithLicenseEdition(const LicenseEdition& value) { SetLicenseEdition(value); return *this;}
94 inline LicenseConfiguration& WithLicenseEdition(LicenseEdition&& value) { SetLicenseEdition(std::move(value)); return *this;}
96
98
101 inline const LicenseName& GetLicenseName() const{ return m_licenseName; }
102 inline bool LicenseNameHasBeenSet() const { return m_licenseNameHasBeenSet; }
103 inline void SetLicenseName(const LicenseName& value) { m_licenseNameHasBeenSet = true; m_licenseName = value; }
104 inline void SetLicenseName(LicenseName&& value) { m_licenseNameHasBeenSet = true; m_licenseName = std::move(value); }
105 inline LicenseConfiguration& WithLicenseName(const LicenseName& value) { SetLicenseName(value); return *this;}
106 inline LicenseConfiguration& WithLicenseName(LicenseName&& value) { SetLicenseName(std::move(value)); return *this;}
108
110
113 inline const LicenseModel& GetLicenseModel() const{ return m_licenseModel; }
114 inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; }
115 inline void SetLicenseModel(const LicenseModel& value) { m_licenseModelHasBeenSet = true; m_licenseModel = value; }
116 inline void SetLicenseModel(LicenseModel&& value) { m_licenseModelHasBeenSet = true; m_licenseModel = std::move(value); }
117 inline LicenseConfiguration& WithLicenseModel(const LicenseModel& value) { SetLicenseModel(value); return *this;}
118 inline LicenseConfiguration& WithLicenseModel(LicenseModel&& value) { SetLicenseModel(std::move(value)); return *this;}
120
122
126 inline const Aws::String& GetLicenseVersion() const{ return m_licenseVersion; }
127 inline bool LicenseVersionHasBeenSet() const { return m_licenseVersionHasBeenSet; }
128 inline void SetLicenseVersion(const Aws::String& value) { m_licenseVersionHasBeenSet = true; m_licenseVersion = value; }
129 inline void SetLicenseVersion(Aws::String&& value) { m_licenseVersionHasBeenSet = true; m_licenseVersion = std::move(value); }
130 inline void SetLicenseVersion(const char* value) { m_licenseVersionHasBeenSet = true; m_licenseVersion.assign(value); }
131 inline LicenseConfiguration& WithLicenseVersion(const Aws::String& value) { SetLicenseVersion(value); return *this;}
132 inline LicenseConfiguration& WithLicenseVersion(Aws::String&& value) { SetLicenseVersion(std::move(value)); return *this;}
133 inline LicenseConfiguration& WithLicenseVersion(const char* value) { SetLicenseVersion(value); return *this;}
135
137
141 inline const Aws::Vector<MetricSource>& GetMetricsSource() const{ return m_metricsSource; }
142 inline bool MetricsSourceHasBeenSet() const { return m_metricsSourceHasBeenSet; }
143 inline void SetMetricsSource(const Aws::Vector<MetricSource>& value) { m_metricsSourceHasBeenSet = true; m_metricsSource = value; }
144 inline void SetMetricsSource(Aws::Vector<MetricSource>&& value) { m_metricsSourceHasBeenSet = true; m_metricsSource = std::move(value); }
146 inline LicenseConfiguration& WithMetricsSource(Aws::Vector<MetricSource>&& value) { SetMetricsSource(std::move(value)); return *this;}
147 inline LicenseConfiguration& AddMetricsSource(const MetricSource& value) { m_metricsSourceHasBeenSet = true; m_metricsSource.push_back(value); return *this; }
148 inline LicenseConfiguration& AddMetricsSource(MetricSource&& value) { m_metricsSourceHasBeenSet = true; m_metricsSource.push_back(std::move(value)); return *this; }
150 private:
151
152 int m_numberOfCores;
153 bool m_numberOfCoresHasBeenSet = false;
154
155 Aws::String m_instanceType;
156 bool m_instanceTypeHasBeenSet = false;
157
158 Aws::String m_operatingSystem;
159 bool m_operatingSystemHasBeenSet = false;
160
161 LicenseEdition m_licenseEdition;
162 bool m_licenseEditionHasBeenSet = false;
163
164 LicenseName m_licenseName;
165 bool m_licenseNameHasBeenSet = false;
166
167 LicenseModel m_licenseModel;
168 bool m_licenseModelHasBeenSet = false;
169
170 Aws::String m_licenseVersion;
171 bool m_licenseVersionHasBeenSet = false;
172
173 Aws::Vector<MetricSource> m_metricsSource;
174 bool m_metricsSourceHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace ComputeOptimizer
179} // namespace Aws
LicenseConfiguration & WithLicenseVersion(const Aws::String &value)
LicenseConfiguration & WithLicenseVersion(Aws::String &&value)
LicenseConfiguration & WithLicenseModel(const LicenseModel &value)
LicenseConfiguration & WithOperatingSystem(Aws::String &&value)
LicenseConfiguration & WithInstanceType(const char *value)
LicenseConfiguration & WithLicenseName(LicenseName &&value)
void SetMetricsSource(const Aws::Vector< MetricSource > &value)
AWS_COMPUTEOPTIMIZER_API LicenseConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
LicenseConfiguration & WithOperatingSystem(const Aws::String &value)
LicenseConfiguration & WithInstanceType(Aws::String &&value)
LicenseConfiguration & WithOperatingSystem(const char *value)
LicenseConfiguration & AddMetricsSource(const MetricSource &value)
LicenseConfiguration & AddMetricsSource(MetricSource &&value)
LicenseConfiguration & WithMetricsSource(Aws::Vector< MetricSource > &&value)
AWS_COMPUTEOPTIMIZER_API LicenseConfiguration(Aws::Utils::Json::JsonView jsonValue)
LicenseConfiguration & WithLicenseModel(LicenseModel &&value)
LicenseConfiguration & WithLicenseVersion(const char *value)
LicenseConfiguration & WithInstanceType(const Aws::String &value)
LicenseConfiguration & WithLicenseEdition(LicenseEdition &&value)
LicenseConfiguration & WithLicenseEdition(const LicenseEdition &value)
LicenseConfiguration & WithMetricsSource(const Aws::Vector< MetricSource > &value)
void SetMetricsSource(Aws::Vector< MetricSource > &&value)
const Aws::Vector< MetricSource > & GetMetricsSource() const
LicenseConfiguration & WithLicenseName(const LicenseName &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue