AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename InstanceTypeT = Aws::String>
63 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
64 template<typename InstanceTypeT = Aws::String>
65 LicenseConfiguration& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
67
69
72 inline const Aws::String& GetOperatingSystem() const { return m_operatingSystem; }
73 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
74 template<typename OperatingSystemT = Aws::String>
75 void SetOperatingSystem(OperatingSystemT&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::forward<OperatingSystemT>(value); }
76 template<typename OperatingSystemT = Aws::String>
77 LicenseConfiguration& WithOperatingSystem(OperatingSystemT&& value) { SetOperatingSystem(std::forward<OperatingSystemT>(value)); return *this;}
79
81
85 inline LicenseEdition GetLicenseEdition() const { return m_licenseEdition; }
86 inline bool LicenseEditionHasBeenSet() const { return m_licenseEditionHasBeenSet; }
87 inline void SetLicenseEdition(LicenseEdition value) { m_licenseEditionHasBeenSet = true; m_licenseEdition = value; }
90
92
95 inline LicenseName GetLicenseName() const { return m_licenseName; }
96 inline bool LicenseNameHasBeenSet() const { return m_licenseNameHasBeenSet; }
97 inline void SetLicenseName(LicenseName value) { m_licenseNameHasBeenSet = true; m_licenseName = value; }
98 inline LicenseConfiguration& WithLicenseName(LicenseName value) { SetLicenseName(value); return *this;}
100
102
105 inline LicenseModel GetLicenseModel() const { return m_licenseModel; }
106 inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; }
107 inline void SetLicenseModel(LicenseModel value) { m_licenseModelHasBeenSet = true; m_licenseModel = value; }
110
112
116 inline const Aws::String& GetLicenseVersion() const { return m_licenseVersion; }
117 inline bool LicenseVersionHasBeenSet() const { return m_licenseVersionHasBeenSet; }
118 template<typename LicenseVersionT = Aws::String>
119 void SetLicenseVersion(LicenseVersionT&& value) { m_licenseVersionHasBeenSet = true; m_licenseVersion = std::forward<LicenseVersionT>(value); }
120 template<typename LicenseVersionT = Aws::String>
121 LicenseConfiguration& WithLicenseVersion(LicenseVersionT&& value) { SetLicenseVersion(std::forward<LicenseVersionT>(value)); return *this;}
123
125
129 inline const Aws::Vector<MetricSource>& GetMetricsSource() const { return m_metricsSource; }
130 inline bool MetricsSourceHasBeenSet() const { return m_metricsSourceHasBeenSet; }
131 template<typename MetricsSourceT = Aws::Vector<MetricSource>>
132 void SetMetricsSource(MetricsSourceT&& value) { m_metricsSourceHasBeenSet = true; m_metricsSource = std::forward<MetricsSourceT>(value); }
133 template<typename MetricsSourceT = Aws::Vector<MetricSource>>
134 LicenseConfiguration& WithMetricsSource(MetricsSourceT&& value) { SetMetricsSource(std::forward<MetricsSourceT>(value)); return *this;}
135 template<typename MetricsSourceT = MetricSource>
136 LicenseConfiguration& AddMetricsSource(MetricsSourceT&& value) { m_metricsSourceHasBeenSet = true; m_metricsSource.emplace_back(std::forward<MetricsSourceT>(value)); return *this; }
138 private:
139
140 int m_numberOfCores{0};
141 bool m_numberOfCoresHasBeenSet = false;
142
143 Aws::String m_instanceType;
144 bool m_instanceTypeHasBeenSet = false;
145
146 Aws::String m_operatingSystem;
147 bool m_operatingSystemHasBeenSet = false;
148
149 LicenseEdition m_licenseEdition{LicenseEdition::NOT_SET};
150 bool m_licenseEditionHasBeenSet = false;
151
152 LicenseName m_licenseName{LicenseName::NOT_SET};
153 bool m_licenseNameHasBeenSet = false;
154
155 LicenseModel m_licenseModel{LicenseModel::NOT_SET};
156 bool m_licenseModelHasBeenSet = false;
157
158 Aws::String m_licenseVersion;
159 bool m_licenseVersionHasBeenSet = false;
160
161 Aws::Vector<MetricSource> m_metricsSource;
162 bool m_metricsSourceHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace ComputeOptimizer
167} // namespace Aws
LicenseConfiguration & WithLicenseModel(LicenseModel value)
AWS_COMPUTEOPTIMIZER_API LicenseConfiguration()=default
LicenseConfiguration & WithLicenseName(LicenseName value)
LicenseConfiguration & WithMetricsSource(MetricsSourceT &&value)
LicenseConfiguration & AddMetricsSource(MetricsSourceT &&value)
AWS_COMPUTEOPTIMIZER_API LicenseConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
LicenseConfiguration & WithLicenseEdition(LicenseEdition value)
LicenseConfiguration & WithInstanceType(InstanceTypeT &&value)
LicenseConfiguration & WithOperatingSystem(OperatingSystemT &&value)
AWS_COMPUTEOPTIMIZER_API LicenseConfiguration(Aws::Utils::Json::JsonView jsonValue)
LicenseConfiguration & WithLicenseVersion(LicenseVersionT &&value)
const Aws::Vector< MetricSource > & GetMetricsSource() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue