AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
SoftwareResourceResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
29 public:
30 AWS_SECURITYHUB_API SoftwareResourceResult() = default;
31 AWS_SECURITYHUB_API SoftwareResourceResult(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetAccountId() const { return m_accountId; }
41 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
42 template <typename AccountIdT = Aws::String>
43 void SetAccountId(AccountIdT&& value) {
44 m_accountIdHasBeenSet = true;
45 m_accountId = std::forward<AccountIdT>(value);
46 }
47 template <typename AccountIdT = Aws::String>
49 SetAccountId(std::forward<AccountIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetResourceType() const { return m_resourceType; }
60 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
61 template <typename ResourceTypeT = Aws::String>
62 void SetResourceType(ResourceTypeT&& value) {
63 m_resourceTypeHasBeenSet = true;
64 m_resourceType = std::forward<ResourceTypeT>(value);
65 }
66 template <typename ResourceTypeT = Aws::String>
67 SoftwareResourceResult& WithResourceType(ResourceTypeT&& value) {
68 SetResourceType(std::forward<ResourceTypeT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetRegion() const { return m_region; }
79 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
80 template <typename RegionT = Aws::String>
81 void SetRegion(RegionT&& value) {
82 m_regionHasBeenSet = true;
83 m_region = std::forward<RegionT>(value);
84 }
85 template <typename RegionT = Aws::String>
87 SetRegion(std::forward<RegionT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetResourceId() const { return m_resourceId; }
97 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
98 template <typename ResourceIdT = Aws::String>
99 void SetResourceId(ResourceIdT&& value) {
100 m_resourceIdHasBeenSet = true;
101 m_resourceId = std::forward<ResourceIdT>(value);
102 }
103 template <typename ResourceIdT = Aws::String>
105 SetResourceId(std::forward<ResourceIdT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetResourceProvider() const { return m_resourceProvider; }
116 inline bool ResourceProviderHasBeenSet() const { return m_resourceProviderHasBeenSet; }
117 template <typename ResourceProviderT = Aws::String>
118 void SetResourceProvider(ResourceProviderT&& value) {
119 m_resourceProviderHasBeenSet = true;
120 m_resourceProvider = std::forward<ResourceProviderT>(value);
121 }
122 template <typename ResourceProviderT = Aws::String>
123 SoftwareResourceResult& WithResourceProvider(ResourceProviderT&& value) {
124 SetResourceProvider(std::forward<ResourceProviderT>(value));
125 return *this;
126 }
128
130
135 inline const Aws::String& GetResourceOwnerOrgId() const { return m_resourceOwnerOrgId; }
136 inline bool ResourceOwnerOrgIdHasBeenSet() const { return m_resourceOwnerOrgIdHasBeenSet; }
137 template <typename ResourceOwnerOrgIdT = Aws::String>
138 void SetResourceOwnerOrgId(ResourceOwnerOrgIdT&& value) {
139 m_resourceOwnerOrgIdHasBeenSet = true;
140 m_resourceOwnerOrgId = std::forward<ResourceOwnerOrgIdT>(value);
141 }
142 template <typename ResourceOwnerOrgIdT = Aws::String>
143 SoftwareResourceResult& WithResourceOwnerOrgId(ResourceOwnerOrgIdT&& value) {
144 SetResourceOwnerOrgId(std::forward<ResourceOwnerOrgIdT>(value));
145 return *this;
146 }
148
150
155 inline const Aws::String& GetResourceOwnerAccountId() const { return m_resourceOwnerAccountId; }
156 inline bool ResourceOwnerAccountIdHasBeenSet() const { return m_resourceOwnerAccountIdHasBeenSet; }
157 template <typename ResourceOwnerAccountIdT = Aws::String>
158 void SetResourceOwnerAccountId(ResourceOwnerAccountIdT&& value) {
159 m_resourceOwnerAccountIdHasBeenSet = true;
160 m_resourceOwnerAccountId = std::forward<ResourceOwnerAccountIdT>(value);
161 }
162 template <typename ResourceOwnerAccountIdT = Aws::String>
163 SoftwareResourceResult& WithResourceOwnerAccountId(ResourceOwnerAccountIdT&& value) {
164 SetResourceOwnerAccountId(std::forward<ResourceOwnerAccountIdT>(value));
165 return *this;
166 }
168
170
176 inline const Aws::String& GetResourceCloudPartition() const { return m_resourceCloudPartition; }
177 inline bool ResourceCloudPartitionHasBeenSet() const { return m_resourceCloudPartitionHasBeenSet; }
178 template <typename ResourceCloudPartitionT = Aws::String>
179 void SetResourceCloudPartition(ResourceCloudPartitionT&& value) {
180 m_resourceCloudPartitionHasBeenSet = true;
181 m_resourceCloudPartition = std::forward<ResourceCloudPartitionT>(value);
182 }
183 template <typename ResourceCloudPartitionT = Aws::String>
184 SoftwareResourceResult& WithResourceCloudPartition(ResourceCloudPartitionT&& value) {
185 SetResourceCloudPartition(std::forward<ResourceCloudPartitionT>(value));
186 return *this;
187 }
189
191
197 inline const Aws::String& GetResourceRegion() const { return m_resourceRegion; }
198 inline bool ResourceRegionHasBeenSet() const { return m_resourceRegionHasBeenSet; }
199 template <typename ResourceRegionT = Aws::String>
200 void SetResourceRegion(ResourceRegionT&& value) {
201 m_resourceRegionHasBeenSet = true;
202 m_resourceRegion = std::forward<ResourceRegionT>(value);
203 }
204 template <typename ResourceRegionT = Aws::String>
205 SoftwareResourceResult& WithResourceRegion(ResourceRegionT&& value) {
206 SetResourceRegion(std::forward<ResourceRegionT>(value));
207 return *this;
208 }
210 private:
211 Aws::String m_accountId;
212
213 Aws::String m_resourceType;
214
215 Aws::String m_region;
216
217 Aws::String m_resourceId;
218
219 Aws::String m_resourceProvider;
220
221 Aws::String m_resourceOwnerOrgId;
222
223 Aws::String m_resourceOwnerAccountId;
224
225 Aws::String m_resourceCloudPartition;
226
227 Aws::String m_resourceRegion;
228 bool m_accountIdHasBeenSet = false;
229 bool m_resourceTypeHasBeenSet = false;
230 bool m_regionHasBeenSet = false;
231 bool m_resourceIdHasBeenSet = false;
232 bool m_resourceProviderHasBeenSet = false;
233 bool m_resourceOwnerOrgIdHasBeenSet = false;
234 bool m_resourceOwnerAccountIdHasBeenSet = false;
235 bool m_resourceCloudPartitionHasBeenSet = false;
236 bool m_resourceRegionHasBeenSet = false;
237};
238
239} // namespace Model
240} // namespace SecurityHub
241} // namespace Aws
SoftwareResourceResult & WithResourceProvider(ResourceProviderT &&value)
SoftwareResourceResult & WithResourceId(ResourceIdT &&value)
SoftwareResourceResult & WithAccountId(AccountIdT &&value)
AWS_SECURITYHUB_API SoftwareResourceResult & operator=(Aws::Utils::Json::JsonView jsonValue)
SoftwareResourceResult & WithRegion(RegionT &&value)
AWS_SECURITYHUB_API SoftwareResourceResult()=default
SoftwareResourceResult & WithResourceType(ResourceTypeT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceOwnerOrgId(ResourceOwnerOrgIdT &&value)
SoftwareResourceResult & WithResourceOwnerAccountId(ResourceOwnerAccountIdT &&value)
SoftwareResourceResult & WithResourceRegion(ResourceRegionT &&value)
SoftwareResourceResult & WithResourceCloudPartition(ResourceCloudPartitionT &&value)
void SetResourceCloudPartition(ResourceCloudPartitionT &&value)
void SetResourceOwnerAccountId(ResourceOwnerAccountIdT &&value)
AWS_SECURITYHUB_API SoftwareResourceResult(Aws::Utils::Json::JsonView jsonValue)
SoftwareResourceResult & WithResourceOwnerOrgId(ResourceOwnerOrgIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue