AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ResourceInventory.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/license-manager/LicenseManager_EXPORTS.h>
10#include <aws/license-manager/model/ResourceType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LicenseManager {
22namespace Model {
23
30 public:
31 AWS_LICENSEMANAGER_API ResourceInventory() = default;
32 AWS_LICENSEMANAGER_API ResourceInventory(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LICENSEMANAGER_API ResourceInventory& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetResourceId() const { return m_resourceId; }
41 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
42 template <typename ResourceIdT = Aws::String>
43 void SetResourceId(ResourceIdT&& value) {
44 m_resourceIdHasBeenSet = true;
45 m_resourceId = std::forward<ResourceIdT>(value);
46 }
47 template <typename ResourceIdT = Aws::String>
48 ResourceInventory& WithResourceId(ResourceIdT&& value) {
49 SetResourceId(std::forward<ResourceIdT>(value));
50 return *this;
51 }
53
55
58 inline ResourceType GetResourceType() const { return m_resourceType; }
59 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
60 inline void SetResourceType(ResourceType value) {
61 m_resourceTypeHasBeenSet = true;
62 m_resourceType = value;
63 }
65 SetResourceType(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
75 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
76 template <typename ResourceArnT = Aws::String>
77 void SetResourceArn(ResourceArnT&& value) {
78 m_resourceArnHasBeenSet = true;
79 m_resourceArn = std::forward<ResourceArnT>(value);
80 }
81 template <typename ResourceArnT = Aws::String>
82 ResourceInventory& WithResourceArn(ResourceArnT&& value) {
83 SetResourceArn(std::forward<ResourceArnT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetPlatform() const { return m_platform; }
93 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
94 template <typename PlatformT = Aws::String>
95 void SetPlatform(PlatformT&& value) {
96 m_platformHasBeenSet = true;
97 m_platform = std::forward<PlatformT>(value);
98 }
99 template <typename PlatformT = Aws::String>
100 ResourceInventory& WithPlatform(PlatformT&& value) {
101 SetPlatform(std::forward<PlatformT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetPlatformVersion() const { return m_platformVersion; }
111 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
112 template <typename PlatformVersionT = Aws::String>
113 void SetPlatformVersion(PlatformVersionT&& value) {
114 m_platformVersionHasBeenSet = true;
115 m_platformVersion = std::forward<PlatformVersionT>(value);
116 }
117 template <typename PlatformVersionT = Aws::String>
118 ResourceInventory& WithPlatformVersion(PlatformVersionT&& value) {
119 SetPlatformVersion(std::forward<PlatformVersionT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetResourceOwningAccountId() const { return m_resourceOwningAccountId; }
129 inline bool ResourceOwningAccountIdHasBeenSet() const { return m_resourceOwningAccountIdHasBeenSet; }
130 template <typename ResourceOwningAccountIdT = Aws::String>
131 void SetResourceOwningAccountId(ResourceOwningAccountIdT&& value) {
132 m_resourceOwningAccountIdHasBeenSet = true;
133 m_resourceOwningAccountId = std::forward<ResourceOwningAccountIdT>(value);
134 }
135 template <typename ResourceOwningAccountIdT = Aws::String>
136 ResourceInventory& WithResourceOwningAccountId(ResourceOwningAccountIdT&& value) {
137 SetResourceOwningAccountId(std::forward<ResourceOwningAccountIdT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Vector<Aws::String>& GetMarketplaceProductCodes() const { return m_marketplaceProductCodes; }
147 inline bool MarketplaceProductCodesHasBeenSet() const { return m_marketplaceProductCodesHasBeenSet; }
148 template <typename MarketplaceProductCodesT = Aws::Vector<Aws::String>>
149 void SetMarketplaceProductCodes(MarketplaceProductCodesT&& value) {
150 m_marketplaceProductCodesHasBeenSet = true;
151 m_marketplaceProductCodes = std::forward<MarketplaceProductCodesT>(value);
152 }
153 template <typename MarketplaceProductCodesT = Aws::Vector<Aws::String>>
154 ResourceInventory& WithMarketplaceProductCodes(MarketplaceProductCodesT&& value) {
155 SetMarketplaceProductCodes(std::forward<MarketplaceProductCodesT>(value));
156 return *this;
157 }
158 template <typename MarketplaceProductCodesT = Aws::String>
159 ResourceInventory& AddMarketplaceProductCodes(MarketplaceProductCodesT&& value) {
160 m_marketplaceProductCodesHasBeenSet = true;
161 m_marketplaceProductCodes.emplace_back(std::forward<MarketplaceProductCodesT>(value));
162 return *this;
163 }
165
167
171 inline const Aws::String& GetUsageOperation() const { return m_usageOperation; }
172 inline bool UsageOperationHasBeenSet() const { return m_usageOperationHasBeenSet; }
173 template <typename UsageOperationT = Aws::String>
174 void SetUsageOperation(UsageOperationT&& value) {
175 m_usageOperationHasBeenSet = true;
176 m_usageOperation = std::forward<UsageOperationT>(value);
177 }
178 template <typename UsageOperationT = Aws::String>
179 ResourceInventory& WithUsageOperation(UsageOperationT&& value) {
180 SetUsageOperation(std::forward<UsageOperationT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::String& GetAmiId() const { return m_amiId; }
190 inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; }
191 template <typename AmiIdT = Aws::String>
192 void SetAmiId(AmiIdT&& value) {
193 m_amiIdHasBeenSet = true;
194 m_amiId = std::forward<AmiIdT>(value);
195 }
196 template <typename AmiIdT = Aws::String>
197 ResourceInventory& WithAmiId(AmiIdT&& value) {
198 SetAmiId(std::forward<AmiIdT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::String& GetHostId() const { return m_hostId; }
208 inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; }
209 template <typename HostIdT = Aws::String>
210 void SetHostId(HostIdT&& value) {
211 m_hostIdHasBeenSet = true;
212 m_hostId = std::forward<HostIdT>(value);
213 }
214 template <typename HostIdT = Aws::String>
215 ResourceInventory& WithHostId(HostIdT&& value) {
216 SetHostId(std::forward<HostIdT>(value));
217 return *this;
218 }
220
222
225 inline const Aws::String& GetRegion() const { return m_region; }
226 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
227 template <typename RegionT = Aws::String>
228 void SetRegion(RegionT&& value) {
229 m_regionHasBeenSet = true;
230 m_region = std::forward<RegionT>(value);
231 }
232 template <typename RegionT = Aws::String>
233 ResourceInventory& WithRegion(RegionT&& value) {
234 SetRegion(std::forward<RegionT>(value));
235 return *this;
236 }
238
240
243 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
244 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
245 template <typename InstanceTypeT = Aws::String>
246 void SetInstanceType(InstanceTypeT&& value) {
247 m_instanceTypeHasBeenSet = true;
248 m_instanceType = std::forward<InstanceTypeT>(value);
249 }
250 template <typename InstanceTypeT = Aws::String>
251 ResourceInventory& WithInstanceType(InstanceTypeT&& value) {
252 SetInstanceType(std::forward<InstanceTypeT>(value));
253 return *this;
254 }
256 private:
257 Aws::String m_resourceId;
258
259 ResourceType m_resourceType{ResourceType::NOT_SET};
260
261 Aws::String m_resourceArn;
262
263 Aws::String m_platform;
264
265 Aws::String m_platformVersion;
266
267 Aws::String m_resourceOwningAccountId;
268
269 Aws::Vector<Aws::String> m_marketplaceProductCodes;
270
271 Aws::String m_usageOperation;
272
273 Aws::String m_amiId;
274
275 Aws::String m_hostId;
276
277 Aws::String m_region;
278
279 Aws::String m_instanceType;
280 bool m_resourceIdHasBeenSet = false;
281 bool m_resourceTypeHasBeenSet = false;
282 bool m_resourceArnHasBeenSet = false;
283 bool m_platformHasBeenSet = false;
284 bool m_platformVersionHasBeenSet = false;
285 bool m_resourceOwningAccountIdHasBeenSet = false;
286 bool m_marketplaceProductCodesHasBeenSet = false;
287 bool m_usageOperationHasBeenSet = false;
288 bool m_amiIdHasBeenSet = false;
289 bool m_hostIdHasBeenSet = false;
290 bool m_regionHasBeenSet = false;
291 bool m_instanceTypeHasBeenSet = false;
292};
293
294} // namespace Model
295} // namespace LicenseManager
296} // namespace Aws
void SetPlatformVersion(PlatformVersionT &&value)
const Aws::String & GetResourceOwningAccountId() const
ResourceInventory & WithResourceType(ResourceType value)
ResourceInventory & WithRegion(RegionT &&value)
void SetMarketplaceProductCodes(MarketplaceProductCodesT &&value)
ResourceInventory & WithMarketplaceProductCodes(MarketplaceProductCodesT &&value)
ResourceInventory & WithResourceOwningAccountId(ResourceOwningAccountIdT &&value)
ResourceInventory & WithPlatformVersion(PlatformVersionT &&value)
ResourceInventory & WithResourceArn(ResourceArnT &&value)
AWS_LICENSEMANAGER_API ResourceInventory(Aws::Utils::Json::JsonView jsonValue)
AWS_LICENSEMANAGER_API ResourceInventory & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceInventory & WithUsageOperation(UsageOperationT &&value)
ResourceInventory & WithInstanceType(InstanceTypeT &&value)
ResourceInventory & WithPlatform(PlatformT &&value)
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceInventory & WithAmiId(AmiIdT &&value)
ResourceInventory & WithResourceId(ResourceIdT &&value)
void SetUsageOperation(UsageOperationT &&value)
AWS_LICENSEMANAGER_API ResourceInventory()=default
void SetResourceOwningAccountId(ResourceOwningAccountIdT &&value)
const Aws::Vector< Aws::String > & GetMarketplaceProductCodes() const
ResourceInventory & AddMarketplaceProductCodes(MarketplaceProductCodesT &&value)
ResourceInventory & WithHostId(HostIdT &&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