AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourceInventory.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/license-manager/model/ResourceType.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 LicenseManager
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_LICENSEMANAGER_API ResourceInventory() = default;
36 AWS_LICENSEMANAGER_API ResourceInventory(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LICENSEMANAGER_API ResourceInventory& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetResourceId() const { return m_resourceId; }
46 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
47 template<typename ResourceIdT = Aws::String>
48 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
49 template<typename ResourceIdT = Aws::String>
50 ResourceInventory& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
52
54
57 inline ResourceType GetResourceType() const { return m_resourceType; }
58 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
59 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
60 inline ResourceInventory& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
62
64
67 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
68 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
69 template<typename ResourceArnT = Aws::String>
70 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
71 template<typename ResourceArnT = Aws::String>
72 ResourceInventory& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
74
76
79 inline const Aws::String& GetPlatform() const { return m_platform; }
80 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
81 template<typename PlatformT = Aws::String>
82 void SetPlatform(PlatformT&& value) { m_platformHasBeenSet = true; m_platform = std::forward<PlatformT>(value); }
83 template<typename PlatformT = Aws::String>
84 ResourceInventory& WithPlatform(PlatformT&& value) { SetPlatform(std::forward<PlatformT>(value)); return *this;}
86
88
91 inline const Aws::String& GetPlatformVersion() const { return m_platformVersion; }
92 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
93 template<typename PlatformVersionT = Aws::String>
94 void SetPlatformVersion(PlatformVersionT&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::forward<PlatformVersionT>(value); }
95 template<typename PlatformVersionT = Aws::String>
96 ResourceInventory& WithPlatformVersion(PlatformVersionT&& value) { SetPlatformVersion(std::forward<PlatformVersionT>(value)); return *this;}
98
100
103 inline const Aws::String& GetResourceOwningAccountId() const { return m_resourceOwningAccountId; }
104 inline bool ResourceOwningAccountIdHasBeenSet() const { return m_resourceOwningAccountIdHasBeenSet; }
105 template<typename ResourceOwningAccountIdT = Aws::String>
106 void SetResourceOwningAccountId(ResourceOwningAccountIdT&& value) { m_resourceOwningAccountIdHasBeenSet = true; m_resourceOwningAccountId = std::forward<ResourceOwningAccountIdT>(value); }
107 template<typename ResourceOwningAccountIdT = Aws::String>
108 ResourceInventory& WithResourceOwningAccountId(ResourceOwningAccountIdT&& value) { SetResourceOwningAccountId(std::forward<ResourceOwningAccountIdT>(value)); return *this;}
110 private:
111
112 Aws::String m_resourceId;
113 bool m_resourceIdHasBeenSet = false;
114
115 ResourceType m_resourceType{ResourceType::NOT_SET};
116 bool m_resourceTypeHasBeenSet = false;
117
118 Aws::String m_resourceArn;
119 bool m_resourceArnHasBeenSet = false;
120
121 Aws::String m_platform;
122 bool m_platformHasBeenSet = false;
123
124 Aws::String m_platformVersion;
125 bool m_platformVersionHasBeenSet = false;
126
127 Aws::String m_resourceOwningAccountId;
128 bool m_resourceOwningAccountIdHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace LicenseManager
133} // namespace Aws
void SetPlatformVersion(PlatformVersionT &&value)
const Aws::String & GetResourceOwningAccountId() const
ResourceInventory & WithResourceType(ResourceType 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 & WithPlatform(PlatformT &&value)
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceInventory & WithResourceId(ResourceIdT &&value)
AWS_LICENSEMANAGER_API ResourceInventory()=default
void SetResourceOwningAccountId(ResourceOwningAccountIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue