AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Instance.h
1
6#pragma once
7#include <aws/license-manager-linux-subscriptions/LicenseManagerLinuxSubscriptions_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LicenseManagerLinuxSubscriptions
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LICENSEMANAGERLINUXSUBSCRIPTIONS_API Instance();
37 AWS_LICENSEMANAGERLINUXSUBSCRIPTIONS_API Instance(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LICENSEMANAGERLINUXSUBSCRIPTIONS_API Instance& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LICENSEMANAGERLINUXSUBSCRIPTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAccountID() const{ return m_accountID; }
47 inline bool AccountIDHasBeenSet() const { return m_accountIDHasBeenSet; }
48 inline void SetAccountID(const Aws::String& value) { m_accountIDHasBeenSet = true; m_accountID = value; }
49 inline void SetAccountID(Aws::String&& value) { m_accountIDHasBeenSet = true; m_accountID = std::move(value); }
50 inline void SetAccountID(const char* value) { m_accountIDHasBeenSet = true; m_accountID.assign(value); }
51 inline Instance& WithAccountID(const Aws::String& value) { SetAccountID(value); return *this;}
52 inline Instance& WithAccountID(Aws::String&& value) { SetAccountID(std::move(value)); return *this;}
53 inline Instance& WithAccountID(const char* value) { SetAccountID(value); return *this;}
55
57
60 inline const Aws::String& GetAmiId() const{ return m_amiId; }
61 inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; }
62 inline void SetAmiId(const Aws::String& value) { m_amiIdHasBeenSet = true; m_amiId = value; }
63 inline void SetAmiId(Aws::String&& value) { m_amiIdHasBeenSet = true; m_amiId = std::move(value); }
64 inline void SetAmiId(const char* value) { m_amiIdHasBeenSet = true; m_amiId.assign(value); }
65 inline Instance& WithAmiId(const Aws::String& value) { SetAmiId(value); return *this;}
66 inline Instance& WithAmiId(Aws::String&& value) { SetAmiId(std::move(value)); return *this;}
67 inline Instance& WithAmiId(const char* value) { SetAmiId(value); return *this;}
69
71
75 inline const Aws::String& GetDualSubscription() const{ return m_dualSubscription; }
76 inline bool DualSubscriptionHasBeenSet() const { return m_dualSubscriptionHasBeenSet; }
77 inline void SetDualSubscription(const Aws::String& value) { m_dualSubscriptionHasBeenSet = true; m_dualSubscription = value; }
78 inline void SetDualSubscription(Aws::String&& value) { m_dualSubscriptionHasBeenSet = true; m_dualSubscription = std::move(value); }
79 inline void SetDualSubscription(const char* value) { m_dualSubscriptionHasBeenSet = true; m_dualSubscription.assign(value); }
80 inline Instance& WithDualSubscription(const Aws::String& value) { SetDualSubscription(value); return *this;}
81 inline Instance& WithDualSubscription(Aws::String&& value) { SetDualSubscription(std::move(value)); return *this;}
82 inline Instance& WithDualSubscription(const char* value) { SetDualSubscription(value); return *this;}
84
86
89 inline const Aws::String& GetInstanceID() const{ return m_instanceID; }
90 inline bool InstanceIDHasBeenSet() const { return m_instanceIDHasBeenSet; }
91 inline void SetInstanceID(const Aws::String& value) { m_instanceIDHasBeenSet = true; m_instanceID = value; }
92 inline void SetInstanceID(Aws::String&& value) { m_instanceIDHasBeenSet = true; m_instanceID = std::move(value); }
93 inline void SetInstanceID(const char* value) { m_instanceIDHasBeenSet = true; m_instanceID.assign(value); }
94 inline Instance& WithInstanceID(const Aws::String& value) { SetInstanceID(value); return *this;}
95 inline Instance& WithInstanceID(Aws::String&& value) { SetInstanceID(std::move(value)); return *this;}
96 inline Instance& WithInstanceID(const char* value) { SetInstanceID(value); return *this;}
98
100
103 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
104 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
105 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
106 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
107 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
108 inline Instance& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
109 inline Instance& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
110 inline Instance& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
112
114
117 inline const Aws::String& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
118 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
119 inline void SetLastUpdatedTime(const Aws::String& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
120 inline void SetLastUpdatedTime(Aws::String&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
121 inline void SetLastUpdatedTime(const char* value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime.assign(value); }
122 inline Instance& WithLastUpdatedTime(const Aws::String& value) { SetLastUpdatedTime(value); return *this;}
123 inline Instance& WithLastUpdatedTime(Aws::String&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
124 inline Instance& WithLastUpdatedTime(const char* value) { SetLastUpdatedTime(value); return *this;}
126
128
131 inline const Aws::String& GetOsVersion() const{ return m_osVersion; }
132 inline bool OsVersionHasBeenSet() const { return m_osVersionHasBeenSet; }
133 inline void SetOsVersion(const Aws::String& value) { m_osVersionHasBeenSet = true; m_osVersion = value; }
134 inline void SetOsVersion(Aws::String&& value) { m_osVersionHasBeenSet = true; m_osVersion = std::move(value); }
135 inline void SetOsVersion(const char* value) { m_osVersionHasBeenSet = true; m_osVersion.assign(value); }
136 inline Instance& WithOsVersion(const Aws::String& value) { SetOsVersion(value); return *this;}
137 inline Instance& WithOsVersion(Aws::String&& value) { SetOsVersion(std::move(value)); return *this;}
138 inline Instance& WithOsVersion(const char* value) { SetOsVersion(value); return *this;}
140
142
147 inline const Aws::Vector<Aws::String>& GetProductCode() const{ return m_productCode; }
148 inline bool ProductCodeHasBeenSet() const { return m_productCodeHasBeenSet; }
149 inline void SetProductCode(const Aws::Vector<Aws::String>& value) { m_productCodeHasBeenSet = true; m_productCode = value; }
150 inline void SetProductCode(Aws::Vector<Aws::String>&& value) { m_productCodeHasBeenSet = true; m_productCode = std::move(value); }
151 inline Instance& WithProductCode(const Aws::Vector<Aws::String>& value) { SetProductCode(value); return *this;}
152 inline Instance& WithProductCode(Aws::Vector<Aws::String>&& value) { SetProductCode(std::move(value)); return *this;}
153 inline Instance& AddProductCode(const Aws::String& value) { m_productCodeHasBeenSet = true; m_productCode.push_back(value); return *this; }
154 inline Instance& AddProductCode(Aws::String&& value) { m_productCodeHasBeenSet = true; m_productCode.push_back(std::move(value)); return *this; }
155 inline Instance& AddProductCode(const char* value) { m_productCodeHasBeenSet = true; m_productCode.push_back(value); return *this; }
157
159
162 inline const Aws::String& GetRegion() const{ return m_region; }
163 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
164 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
165 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
166 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
167 inline Instance& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
168 inline Instance& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
169 inline Instance& WithRegion(const char* value) { SetRegion(value); return *this;}
171
173
178 inline const Aws::String& GetRegisteredWithSubscriptionProvider() const{ return m_registeredWithSubscriptionProvider; }
179 inline bool RegisteredWithSubscriptionProviderHasBeenSet() const { return m_registeredWithSubscriptionProviderHasBeenSet; }
180 inline void SetRegisteredWithSubscriptionProvider(const Aws::String& value) { m_registeredWithSubscriptionProviderHasBeenSet = true; m_registeredWithSubscriptionProvider = value; }
181 inline void SetRegisteredWithSubscriptionProvider(Aws::String&& value) { m_registeredWithSubscriptionProviderHasBeenSet = true; m_registeredWithSubscriptionProvider = std::move(value); }
182 inline void SetRegisteredWithSubscriptionProvider(const char* value) { m_registeredWithSubscriptionProviderHasBeenSet = true; m_registeredWithSubscriptionProvider.assign(value); }
187
189
192 inline const Aws::String& GetStatus() const{ return m_status; }
193 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
194 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
195 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
196 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
197 inline Instance& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
198 inline Instance& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
199 inline Instance& WithStatus(const char* value) { SetStatus(value); return *this;}
201
203
206 inline const Aws::String& GetSubscriptionName() const{ return m_subscriptionName; }
207 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
208 inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
209 inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
210 inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
211 inline Instance& WithSubscriptionName(const Aws::String& value) { SetSubscriptionName(value); return *this;}
212 inline Instance& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;}
213 inline Instance& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
215
217
221 inline const Aws::String& GetSubscriptionProviderCreateTime() const{ return m_subscriptionProviderCreateTime; }
222 inline bool SubscriptionProviderCreateTimeHasBeenSet() const { return m_subscriptionProviderCreateTimeHasBeenSet; }
223 inline void SetSubscriptionProviderCreateTime(const Aws::String& value) { m_subscriptionProviderCreateTimeHasBeenSet = true; m_subscriptionProviderCreateTime = value; }
224 inline void SetSubscriptionProviderCreateTime(Aws::String&& value) { m_subscriptionProviderCreateTimeHasBeenSet = true; m_subscriptionProviderCreateTime = std::move(value); }
225 inline void SetSubscriptionProviderCreateTime(const char* value) { m_subscriptionProviderCreateTimeHasBeenSet = true; m_subscriptionProviderCreateTime.assign(value); }
228 inline Instance& WithSubscriptionProviderCreateTime(const char* value) { SetSubscriptionProviderCreateTime(value); return *this;}
230
232
236 inline const Aws::String& GetSubscriptionProviderUpdateTime() const{ return m_subscriptionProviderUpdateTime; }
237 inline bool SubscriptionProviderUpdateTimeHasBeenSet() const { return m_subscriptionProviderUpdateTimeHasBeenSet; }
238 inline void SetSubscriptionProviderUpdateTime(const Aws::String& value) { m_subscriptionProviderUpdateTimeHasBeenSet = true; m_subscriptionProviderUpdateTime = value; }
239 inline void SetSubscriptionProviderUpdateTime(Aws::String&& value) { m_subscriptionProviderUpdateTimeHasBeenSet = true; m_subscriptionProviderUpdateTime = std::move(value); }
240 inline void SetSubscriptionProviderUpdateTime(const char* value) { m_subscriptionProviderUpdateTimeHasBeenSet = true; m_subscriptionProviderUpdateTime.assign(value); }
243 inline Instance& WithSubscriptionProviderUpdateTime(const char* value) { SetSubscriptionProviderUpdateTime(value); return *this;}
245
247
253 inline const Aws::String& GetUsageOperation() const{ return m_usageOperation; }
254 inline bool UsageOperationHasBeenSet() const { return m_usageOperationHasBeenSet; }
255 inline void SetUsageOperation(const Aws::String& value) { m_usageOperationHasBeenSet = true; m_usageOperation = value; }
256 inline void SetUsageOperation(Aws::String&& value) { m_usageOperationHasBeenSet = true; m_usageOperation = std::move(value); }
257 inline void SetUsageOperation(const char* value) { m_usageOperationHasBeenSet = true; m_usageOperation.assign(value); }
258 inline Instance& WithUsageOperation(const Aws::String& value) { SetUsageOperation(value); return *this;}
259 inline Instance& WithUsageOperation(Aws::String&& value) { SetUsageOperation(std::move(value)); return *this;}
260 inline Instance& WithUsageOperation(const char* value) { SetUsageOperation(value); return *this;}
262 private:
263
264 Aws::String m_accountID;
265 bool m_accountIDHasBeenSet = false;
266
267 Aws::String m_amiId;
268 bool m_amiIdHasBeenSet = false;
269
270 Aws::String m_dualSubscription;
271 bool m_dualSubscriptionHasBeenSet = false;
272
273 Aws::String m_instanceID;
274 bool m_instanceIDHasBeenSet = false;
275
276 Aws::String m_instanceType;
277 bool m_instanceTypeHasBeenSet = false;
278
279 Aws::String m_lastUpdatedTime;
280 bool m_lastUpdatedTimeHasBeenSet = false;
281
282 Aws::String m_osVersion;
283 bool m_osVersionHasBeenSet = false;
284
285 Aws::Vector<Aws::String> m_productCode;
286 bool m_productCodeHasBeenSet = false;
287
288 Aws::String m_region;
289 bool m_regionHasBeenSet = false;
290
291 Aws::String m_registeredWithSubscriptionProvider;
292 bool m_registeredWithSubscriptionProviderHasBeenSet = false;
293
294 Aws::String m_status;
295 bool m_statusHasBeenSet = false;
296
297 Aws::String m_subscriptionName;
298 bool m_subscriptionNameHasBeenSet = false;
299
300 Aws::String m_subscriptionProviderCreateTime;
301 bool m_subscriptionProviderCreateTimeHasBeenSet = false;
302
303 Aws::String m_subscriptionProviderUpdateTime;
304 bool m_subscriptionProviderUpdateTimeHasBeenSet = false;
305
306 Aws::String m_usageOperation;
307 bool m_usageOperationHasBeenSet = false;
308 };
309
310} // namespace Model
311} // namespace LicenseManagerLinuxSubscriptions
312} // namespace Aws
void SetProductCode(Aws::Vector< Aws::String > &&value)
Definition Instance.h:150
Instance & WithSubscriptionProviderUpdateTime(const char *value)
Definition Instance.h:243
Instance & WithStatus(const Aws::String &value)
Definition Instance.h:197
Instance & WithRegisteredWithSubscriptionProvider(const Aws::String &value)
Definition Instance.h:183
void SetSubscriptionProviderCreateTime(Aws::String &&value)
Definition Instance.h:224
Instance & WithProductCode(Aws::Vector< Aws::String > &&value)
Definition Instance.h:152
Instance & WithSubscriptionProviderCreateTime(const Aws::String &value)
Definition Instance.h:226
Instance & WithAmiId(const Aws::String &value)
Definition Instance.h:65
void SetUsageOperation(const Aws::String &value)
Definition Instance.h:255
Instance & WithProductCode(const Aws::Vector< Aws::String > &value)
Definition Instance.h:151
Instance & WithLastUpdatedTime(const char *value)
Definition Instance.h:124
Instance & WithDualSubscription(Aws::String &&value)
Definition Instance.h:81
Instance & WithSubscriptionProviderUpdateTime(Aws::String &&value)
Definition Instance.h:242
Instance & WithUsageOperation(const Aws::String &value)
Definition Instance.h:258
Instance & WithDualSubscription(const char *value)
Definition Instance.h:82
Instance & WithAccountID(const Aws::String &value)
Definition Instance.h:51
void SetProductCode(const Aws::Vector< Aws::String > &value)
Definition Instance.h:149
const Aws::String & GetRegisteredWithSubscriptionProvider() const
Definition Instance.h:178
Instance & WithInstanceID(Aws::String &&value)
Definition Instance.h:95
void SetRegisteredWithSubscriptionProvider(const char *value)
Definition Instance.h:182
const Aws::String & GetSubscriptionProviderUpdateTime() const
Definition Instance.h:236
Instance & WithInstanceType(const Aws::String &value)
Definition Instance.h:108
Instance & WithLastUpdatedTime(const Aws::String &value)
Definition Instance.h:122
Instance & WithInstanceID(const Aws::String &value)
Definition Instance.h:94
Instance & WithSubscriptionName(Aws::String &&value)
Definition Instance.h:212
Instance & AddProductCode(Aws::String &&value)
Definition Instance.h:154
void SetSubscriptionProviderUpdateTime(Aws::String &&value)
Definition Instance.h:239
Instance & WithUsageOperation(const char *value)
Definition Instance.h:260
const Aws::Vector< Aws::String > & GetProductCode() const
Definition Instance.h:147
Instance & AddProductCode(const Aws::String &value)
Definition Instance.h:153
void SetSubscriptionProviderCreateTime(const Aws::String &value)
Definition Instance.h:223
void SetSubscriptionProviderUpdateTime(const Aws::String &value)
Definition Instance.h:238
Instance & WithOsVersion(Aws::String &&value)
Definition Instance.h:137
AWS_LICENSEMANAGERLINUXSUBSCRIPTIONS_API Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
Instance & WithLastUpdatedTime(Aws::String &&value)
Definition Instance.h:123
Instance & WithSubscriptionProviderCreateTime(Aws::String &&value)
Definition Instance.h:227
void SetDualSubscription(const Aws::String &value)
Definition Instance.h:77
AWS_LICENSEMANAGERLINUXSUBSCRIPTIONS_API Instance()
const Aws::String & GetSubscriptionProviderCreateTime() const
Definition Instance.h:221
Instance & WithAmiId(Aws::String &&value)
Definition Instance.h:66
Instance & WithUsageOperation(Aws::String &&value)
Definition Instance.h:259
Instance & WithAccountID(Aws::String &&value)
Definition Instance.h:52
void SetSubscriptionName(const Aws::String &value)
Definition Instance.h:208
Instance & WithSubscriptionName(const char *value)
Definition Instance.h:213
Instance & WithSubscriptionProviderUpdateTime(const Aws::String &value)
Definition Instance.h:241
AWS_LICENSEMANAGERLINUXSUBSCRIPTIONS_API Instance(Aws::Utils::Json::JsonView jsonValue)
Instance & WithRegisteredWithSubscriptionProvider(const char *value)
Definition Instance.h:185
Instance & WithDualSubscription(const Aws::String &value)
Definition Instance.h:80
Instance & WithOsVersion(const Aws::String &value)
Definition Instance.h:136
Instance & WithSubscriptionProviderCreateTime(const char *value)
Definition Instance.h:228
Instance & WithRegisteredWithSubscriptionProvider(Aws::String &&value)
Definition Instance.h:184
void SetLastUpdatedTime(const Aws::String &value)
Definition Instance.h:119
void SetRegisteredWithSubscriptionProvider(const Aws::String &value)
Definition Instance.h:180
Instance & WithSubscriptionName(const Aws::String &value)
Definition Instance.h:211
Instance & WithInstanceType(Aws::String &&value)
Definition Instance.h:109
Instance & WithRegion(const Aws::String &value)
Definition Instance.h:167
void SetInstanceType(const Aws::String &value)
Definition Instance.h:105
void SetAccountID(const Aws::String &value)
Definition Instance.h:48
void SetInstanceID(const Aws::String &value)
Definition Instance.h:91
AWS_LICENSEMANAGERLINUXSUBSCRIPTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRegisteredWithSubscriptionProvider(Aws::String &&value)
Definition Instance.h:181
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue