AWS SDK for C++

AWS SDK for C++ Version 1.11.905

Loading...
Searching...
No Matches
RemediationResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9#include <aws/securityhub/model/CloudProviderName.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityHub {
21namespace Model {
22
30 public:
31 AWS_SECURITYHUB_API RemediationResource() = default;
32 AWS_SECURITYHUB_API RemediationResource(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetAccountId() const { return m_accountId; }
42 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
43 template <typename AccountIdT = Aws::String>
44 void SetAccountId(AccountIdT&& value) {
45 m_accountIdHasBeenSet = true;
46 m_accountId = std::forward<AccountIdT>(value);
47 }
48 template <typename AccountIdT = Aws::String>
49 RemediationResource& WithAccountId(AccountIdT&& value) {
50 SetAccountId(std::forward<AccountIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetRegion() const { return m_region; }
61 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
62 template <typename RegionT = Aws::String>
63 void SetRegion(RegionT&& value) {
64 m_regionHasBeenSet = true;
65 m_region = std::forward<RegionT>(value);
66 }
67 template <typename RegionT = Aws::String>
68 RemediationResource& WithRegion(RegionT&& value) {
69 SetRegion(std::forward<RegionT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetResourceOwnerAccountId() const { return m_resourceOwnerAccountId; }
81 inline bool ResourceOwnerAccountIdHasBeenSet() const { return m_resourceOwnerAccountIdHasBeenSet; }
82 template <typename ResourceOwnerAccountIdT = Aws::String>
83 void SetResourceOwnerAccountId(ResourceOwnerAccountIdT&& value) {
84 m_resourceOwnerAccountIdHasBeenSet = true;
85 m_resourceOwnerAccountId = std::forward<ResourceOwnerAccountIdT>(value);
86 }
87 template <typename ResourceOwnerAccountIdT = Aws::String>
88 RemediationResource& WithResourceOwnerAccountId(ResourceOwnerAccountIdT&& value) {
89 SetResourceOwnerAccountId(std::forward<ResourceOwnerAccountIdT>(value));
90 return *this;
91 }
93
95
100 inline const Aws::String& GetResourceOwnerOrgId() const { return m_resourceOwnerOrgId; }
101 inline bool ResourceOwnerOrgIdHasBeenSet() const { return m_resourceOwnerOrgIdHasBeenSet; }
102 template <typename ResourceOwnerOrgIdT = Aws::String>
103 void SetResourceOwnerOrgId(ResourceOwnerOrgIdT&& value) {
104 m_resourceOwnerOrgIdHasBeenSet = true;
105 m_resourceOwnerOrgId = std::forward<ResourceOwnerOrgIdT>(value);
106 }
107 template <typename ResourceOwnerOrgIdT = Aws::String>
108 RemediationResource& WithResourceOwnerOrgId(ResourceOwnerOrgIdT&& value) {
109 SetResourceOwnerOrgId(std::forward<ResourceOwnerOrgIdT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetType() const { return m_type; }
119 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
120 template <typename TypeT = Aws::String>
121 void SetType(TypeT&& value) {
122 m_typeHasBeenSet = true;
123 m_type = std::forward<TypeT>(value);
124 }
125 template <typename TypeT = Aws::String>
127 SetType(std::forward<TypeT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetName() const { return m_name; }
137 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
138 template <typename NameT = Aws::String>
139 void SetName(NameT&& value) {
140 m_nameHasBeenSet = true;
141 m_name = std::forward<NameT>(value);
142 }
143 template <typename NameT = Aws::String>
145 SetName(std::forward<NameT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetId() const { return m_id; }
155 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
156 template <typename IdT = Aws::String>
157 void SetId(IdT&& value) {
158 m_idHasBeenSet = true;
159 m_id = std::forward<IdT>(value);
160 }
161 template <typename IdT = Aws::String>
163 SetId(std::forward<IdT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetResourceGuid() const { return m_resourceGuid; }
173 inline bool ResourceGuidHasBeenSet() const { return m_resourceGuidHasBeenSet; }
174 template <typename ResourceGuidT = Aws::String>
175 void SetResourceGuid(ResourceGuidT&& value) {
176 m_resourceGuidHasBeenSet = true;
177 m_resourceGuid = std::forward<ResourceGuidT>(value);
178 }
179 template <typename ResourceGuidT = Aws::String>
180 RemediationResource& WithResourceGuid(ResourceGuidT&& value) {
181 SetResourceGuid(std::forward<ResourceGuidT>(value));
182 return *this;
183 }
185
187
193 inline const Aws::String& GetResourceRegion() const { return m_resourceRegion; }
194 inline bool ResourceRegionHasBeenSet() const { return m_resourceRegionHasBeenSet; }
195 template <typename ResourceRegionT = Aws::String>
196 void SetResourceRegion(ResourceRegionT&& value) {
197 m_resourceRegionHasBeenSet = true;
198 m_resourceRegion = std::forward<ResourceRegionT>(value);
199 }
200 template <typename ResourceRegionT = Aws::String>
201 RemediationResource& WithResourceRegion(ResourceRegionT&& value) {
202 SetResourceRegion(std::forward<ResourceRegionT>(value));
203 return *this;
204 }
206
208
214 inline CloudProviderName GetCloudProvider() const { return m_cloudProvider; }
215 inline bool CloudProviderHasBeenSet() const { return m_cloudProviderHasBeenSet; }
217 m_cloudProviderHasBeenSet = true;
218 m_cloudProvider = value;
219 }
221 SetCloudProvider(value);
222 return *this;
223 }
225 private:
226 Aws::String m_accountId;
227
228 Aws::String m_region;
229
230 Aws::String m_resourceOwnerAccountId;
231
232 Aws::String m_resourceOwnerOrgId;
233
234 Aws::String m_type;
235
236 Aws::String m_name;
237
238 Aws::String m_id;
239
240 Aws::String m_resourceGuid;
241
242 Aws::String m_resourceRegion;
243
245 bool m_accountIdHasBeenSet = false;
246 bool m_regionHasBeenSet = false;
247 bool m_resourceOwnerAccountIdHasBeenSet = false;
248 bool m_resourceOwnerOrgIdHasBeenSet = false;
249 bool m_typeHasBeenSet = false;
250 bool m_nameHasBeenSet = false;
251 bool m_idHasBeenSet = false;
252 bool m_resourceGuidHasBeenSet = false;
253 bool m_resourceRegionHasBeenSet = false;
254 bool m_cloudProviderHasBeenSet = false;
255};
256
257} // namespace Model
258} // namespace SecurityHub
259} // namespace Aws
AWS_SECURITYHUB_API RemediationResource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResourceOwnerOrgId(ResourceOwnerOrgIdT &&value)
RemediationResource & WithRegion(RegionT &&value)
AWS_SECURITYHUB_API RemediationResource(Aws::Utils::Json::JsonView jsonValue)
RemediationResource & WithAccountId(AccountIdT &&value)
AWS_SECURITYHUB_API RemediationResource()=default
RemediationResource & WithResourceOwnerOrgId(ResourceOwnerOrgIdT &&value)
RemediationResource & WithId(IdT &&value)
RemediationResource & WithResourceGuid(ResourceGuidT &&value)
RemediationResource & WithType(TypeT &&value)
RemediationResource & WithResourceOwnerAccountId(ResourceOwnerAccountIdT &&value)
const Aws::String & GetResourceOwnerAccountId() const
void SetResourceOwnerAccountId(ResourceOwnerAccountIdT &&value)
RemediationResource & WithName(NameT &&value)
RemediationResource & WithResourceRegion(ResourceRegionT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
RemediationResource & WithCloudProvider(CloudProviderName value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue