AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ResourceData.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/AccessKey.h>
9#include <aws/guardduty/model/AutoscalingAutoScalingGroup.h>
10#include <aws/guardduty/model/CloudformationStack.h>
11#include <aws/guardduty/model/ContainerFindingResource.h>
12#include <aws/guardduty/model/Ec2Image.h>
13#include <aws/guardduty/model/Ec2Instance.h>
14#include <aws/guardduty/model/Ec2LaunchTemplate.h>
15#include <aws/guardduty/model/Ec2NetworkInterface.h>
16#include <aws/guardduty/model/Ec2Vpc.h>
17#include <aws/guardduty/model/EcsCluster.h>
18#include <aws/guardduty/model/EcsTask.h>
19#include <aws/guardduty/model/EksCluster.h>
20#include <aws/guardduty/model/IamInstanceProfileV2.h>
21#include <aws/guardduty/model/KubernetesWorkload.h>
22#include <aws/guardduty/model/S3Bucket.h>
23#include <aws/guardduty/model/S3Object.h>
24
25#include <utility>
26
27namespace Aws {
28namespace Utils {
29namespace Json {
30class JsonValue;
31class JsonView;
32} // namespace Json
33} // namespace Utils
34namespace GuardDuty {
35namespace Model {
36
45 public:
46 AWS_GUARDDUTY_API ResourceData() = default;
47 AWS_GUARDDUTY_API ResourceData(Aws::Utils::Json::JsonView jsonValue);
48 AWS_GUARDDUTY_API ResourceData& operator=(Aws::Utils::Json::JsonView jsonValue);
49 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
50
52
55 inline const S3Bucket& GetS3Bucket() const { return m_s3Bucket; }
56 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
57 template <typename S3BucketT = S3Bucket>
58 void SetS3Bucket(S3BucketT&& value) {
59 m_s3BucketHasBeenSet = true;
60 m_s3Bucket = std::forward<S3BucketT>(value);
61 }
62 template <typename S3BucketT = S3Bucket>
63 ResourceData& WithS3Bucket(S3BucketT&& value) {
64 SetS3Bucket(std::forward<S3BucketT>(value));
65 return *this;
66 }
68
70
73 inline const Ec2Instance& GetEc2Instance() const { return m_ec2Instance; }
74 inline bool Ec2InstanceHasBeenSet() const { return m_ec2InstanceHasBeenSet; }
75 template <typename Ec2InstanceT = Ec2Instance>
76 void SetEc2Instance(Ec2InstanceT&& value) {
77 m_ec2InstanceHasBeenSet = true;
78 m_ec2Instance = std::forward<Ec2InstanceT>(value);
79 }
80 template <typename Ec2InstanceT = Ec2Instance>
81 ResourceData& WithEc2Instance(Ec2InstanceT&& value) {
82 SetEc2Instance(std::forward<Ec2InstanceT>(value));
83 return *this;
84 }
86
88
92 inline const AccessKey& GetAccessKey() const { return m_accessKey; }
93 inline bool AccessKeyHasBeenSet() const { return m_accessKeyHasBeenSet; }
94 template <typename AccessKeyT = AccessKey>
95 void SetAccessKey(AccessKeyT&& value) {
96 m_accessKeyHasBeenSet = true;
97 m_accessKey = std::forward<AccessKeyT>(value);
98 }
99 template <typename AccessKeyT = AccessKey>
100 ResourceData& WithAccessKey(AccessKeyT&& value) {
101 SetAccessKey(std::forward<AccessKeyT>(value));
102 return *this;
103 }
105
107
111 inline const Ec2NetworkInterface& GetEc2NetworkInterface() const { return m_ec2NetworkInterface; }
112 inline bool Ec2NetworkInterfaceHasBeenSet() const { return m_ec2NetworkInterfaceHasBeenSet; }
113 template <typename Ec2NetworkInterfaceT = Ec2NetworkInterface>
114 void SetEc2NetworkInterface(Ec2NetworkInterfaceT&& value) {
115 m_ec2NetworkInterfaceHasBeenSet = true;
116 m_ec2NetworkInterface = std::forward<Ec2NetworkInterfaceT>(value);
117 }
118 template <typename Ec2NetworkInterfaceT = Ec2NetworkInterface>
119 ResourceData& WithEc2NetworkInterface(Ec2NetworkInterfaceT&& value) {
120 SetEc2NetworkInterface(std::forward<Ec2NetworkInterfaceT>(value));
121 return *this;
122 }
124
126
129 inline const S3Object& GetS3Object() const { return m_s3Object; }
130 inline bool S3ObjectHasBeenSet() const { return m_s3ObjectHasBeenSet; }
131 template <typename S3ObjectT = S3Object>
132 void SetS3Object(S3ObjectT&& value) {
133 m_s3ObjectHasBeenSet = true;
134 m_s3Object = std::forward<S3ObjectT>(value);
135 }
136 template <typename S3ObjectT = S3Object>
137 ResourceData& WithS3Object(S3ObjectT&& value) {
138 SetS3Object(std::forward<S3ObjectT>(value));
139 return *this;
140 }
142
144
148 inline const EksCluster& GetEksCluster() const { return m_eksCluster; }
149 inline bool EksClusterHasBeenSet() const { return m_eksClusterHasBeenSet; }
150 template <typename EksClusterT = EksCluster>
151 void SetEksCluster(EksClusterT&& value) {
152 m_eksClusterHasBeenSet = true;
153 m_eksCluster = std::forward<EksClusterT>(value);
154 }
155 template <typename EksClusterT = EksCluster>
156 ResourceData& WithEksCluster(EksClusterT&& value) {
157 SetEksCluster(std::forward<EksClusterT>(value));
158 return *this;
159 }
161
163
167 inline const KubernetesWorkload& GetKubernetesWorkload() const { return m_kubernetesWorkload; }
168 inline bool KubernetesWorkloadHasBeenSet() const { return m_kubernetesWorkloadHasBeenSet; }
169 template <typename KubernetesWorkloadT = KubernetesWorkload>
170 void SetKubernetesWorkload(KubernetesWorkloadT&& value) {
171 m_kubernetesWorkloadHasBeenSet = true;
172 m_kubernetesWorkload = std::forward<KubernetesWorkloadT>(value);
173 }
174 template <typename KubernetesWorkloadT = KubernetesWorkload>
175 ResourceData& WithKubernetesWorkload(KubernetesWorkloadT&& value) {
176 SetKubernetesWorkload(std::forward<KubernetesWorkloadT>(value));
177 return *this;
178 }
180
182
186 inline const ContainerFindingResource& GetContainer() const { return m_container; }
187 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
188 template <typename ContainerT = ContainerFindingResource>
189 void SetContainer(ContainerT&& value) {
190 m_containerHasBeenSet = true;
191 m_container = std::forward<ContainerT>(value);
192 }
193 template <typename ContainerT = ContainerFindingResource>
194 ResourceData& WithContainer(ContainerT&& value) {
195 SetContainer(std::forward<ContainerT>(value));
196 return *this;
197 }
199
201
205 inline const EcsCluster& GetEcsCluster() const { return m_ecsCluster; }
206 inline bool EcsClusterHasBeenSet() const { return m_ecsClusterHasBeenSet; }
207 template <typename EcsClusterT = EcsCluster>
208 void SetEcsCluster(EcsClusterT&& value) {
209 m_ecsClusterHasBeenSet = true;
210 m_ecsCluster = std::forward<EcsClusterT>(value);
211 }
212 template <typename EcsClusterT = EcsCluster>
213 ResourceData& WithEcsCluster(EcsClusterT&& value) {
214 SetEcsCluster(std::forward<EcsClusterT>(value));
215 return *this;
216 }
218
220
224 inline const EcsTask& GetEcsTask() const { return m_ecsTask; }
225 inline bool EcsTaskHasBeenSet() const { return m_ecsTaskHasBeenSet; }
226 template <typename EcsTaskT = EcsTask>
227 void SetEcsTask(EcsTaskT&& value) {
228 m_ecsTaskHasBeenSet = true;
229 m_ecsTask = std::forward<EcsTaskT>(value);
230 }
231 template <typename EcsTaskT = EcsTask>
232 ResourceData& WithEcsTask(EcsTaskT&& value) {
233 SetEcsTask(std::forward<EcsTaskT>(value));
234 return *this;
235 }
237
239
243 inline const IamInstanceProfileV2& GetIamInstanceProfile() const { return m_iamInstanceProfile; }
244 inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; }
245 template <typename IamInstanceProfileT = IamInstanceProfileV2>
246 void SetIamInstanceProfile(IamInstanceProfileT&& value) {
247 m_iamInstanceProfileHasBeenSet = true;
248 m_iamInstanceProfile = std::forward<IamInstanceProfileT>(value);
249 }
250 template <typename IamInstanceProfileT = IamInstanceProfileV2>
251 ResourceData& WithIamInstanceProfile(IamInstanceProfileT&& value) {
252 SetIamInstanceProfile(std::forward<IamInstanceProfileT>(value));
253 return *this;
254 }
256
258
262 inline const AutoscalingAutoScalingGroup& GetAutoscalingAutoScalingGroup() const { return m_autoscalingAutoScalingGroup; }
263 inline bool AutoscalingAutoScalingGroupHasBeenSet() const { return m_autoscalingAutoScalingGroupHasBeenSet; }
264 template <typename AutoscalingAutoScalingGroupT = AutoscalingAutoScalingGroup>
265 void SetAutoscalingAutoScalingGroup(AutoscalingAutoScalingGroupT&& value) {
266 m_autoscalingAutoScalingGroupHasBeenSet = true;
267 m_autoscalingAutoScalingGroup = std::forward<AutoscalingAutoScalingGroupT>(value);
268 }
269 template <typename AutoscalingAutoScalingGroupT = AutoscalingAutoScalingGroup>
270 ResourceData& WithAutoscalingAutoScalingGroup(AutoscalingAutoScalingGroupT&& value) {
271 SetAutoscalingAutoScalingGroup(std::forward<AutoscalingAutoScalingGroupT>(value));
272 return *this;
273 }
275
277
281 inline const Ec2LaunchTemplate& GetEc2LaunchTemplate() const { return m_ec2LaunchTemplate; }
282 inline bool Ec2LaunchTemplateHasBeenSet() const { return m_ec2LaunchTemplateHasBeenSet; }
283 template <typename Ec2LaunchTemplateT = Ec2LaunchTemplate>
284 void SetEc2LaunchTemplate(Ec2LaunchTemplateT&& value) {
285 m_ec2LaunchTemplateHasBeenSet = true;
286 m_ec2LaunchTemplate = std::forward<Ec2LaunchTemplateT>(value);
287 }
288 template <typename Ec2LaunchTemplateT = Ec2LaunchTemplate>
289 ResourceData& WithEc2LaunchTemplate(Ec2LaunchTemplateT&& value) {
290 SetEc2LaunchTemplate(std::forward<Ec2LaunchTemplateT>(value));
291 return *this;
292 }
294
296
300 inline const Ec2Vpc& GetEc2Vpc() const { return m_ec2Vpc; }
301 inline bool Ec2VpcHasBeenSet() const { return m_ec2VpcHasBeenSet; }
302 template <typename Ec2VpcT = Ec2Vpc>
303 void SetEc2Vpc(Ec2VpcT&& value) {
304 m_ec2VpcHasBeenSet = true;
305 m_ec2Vpc = std::forward<Ec2VpcT>(value);
306 }
307 template <typename Ec2VpcT = Ec2Vpc>
308 ResourceData& WithEc2Vpc(Ec2VpcT&& value) {
309 SetEc2Vpc(std::forward<Ec2VpcT>(value));
310 return *this;
311 }
313
315
319 inline const Ec2Image& GetEc2Image() const { return m_ec2Image; }
320 inline bool Ec2ImageHasBeenSet() const { return m_ec2ImageHasBeenSet; }
321 template <typename Ec2ImageT = Ec2Image>
322 void SetEc2Image(Ec2ImageT&& value) {
323 m_ec2ImageHasBeenSet = true;
324 m_ec2Image = std::forward<Ec2ImageT>(value);
325 }
326 template <typename Ec2ImageT = Ec2Image>
327 ResourceData& WithEc2Image(Ec2ImageT&& value) {
328 SetEc2Image(std::forward<Ec2ImageT>(value));
329 return *this;
330 }
332
334
338 inline const CloudformationStack& GetCloudformationStack() const { return m_cloudformationStack; }
339 inline bool CloudformationStackHasBeenSet() const { return m_cloudformationStackHasBeenSet; }
340 template <typename CloudformationStackT = CloudformationStack>
341 void SetCloudformationStack(CloudformationStackT&& value) {
342 m_cloudformationStackHasBeenSet = true;
343 m_cloudformationStack = std::forward<CloudformationStackT>(value);
344 }
345 template <typename CloudformationStackT = CloudformationStack>
346 ResourceData& WithCloudformationStack(CloudformationStackT&& value) {
347 SetCloudformationStack(std::forward<CloudformationStackT>(value));
348 return *this;
349 }
351 private:
352 S3Bucket m_s3Bucket;
353
354 Ec2Instance m_ec2Instance;
355
356 AccessKey m_accessKey;
357
358 Ec2NetworkInterface m_ec2NetworkInterface;
359
360 S3Object m_s3Object;
361
362 EksCluster m_eksCluster;
363
364 KubernetesWorkload m_kubernetesWorkload;
365
366 ContainerFindingResource m_container;
367
368 EcsCluster m_ecsCluster;
369
370 EcsTask m_ecsTask;
371
372 IamInstanceProfileV2 m_iamInstanceProfile;
373
374 AutoscalingAutoScalingGroup m_autoscalingAutoScalingGroup;
375
376 Ec2LaunchTemplate m_ec2LaunchTemplate;
377
378 Ec2Vpc m_ec2Vpc;
379
380 Ec2Image m_ec2Image;
381
382 CloudformationStack m_cloudformationStack;
383 bool m_s3BucketHasBeenSet = false;
384 bool m_ec2InstanceHasBeenSet = false;
385 bool m_accessKeyHasBeenSet = false;
386 bool m_ec2NetworkInterfaceHasBeenSet = false;
387 bool m_s3ObjectHasBeenSet = false;
388 bool m_eksClusterHasBeenSet = false;
389 bool m_kubernetesWorkloadHasBeenSet = false;
390 bool m_containerHasBeenSet = false;
391 bool m_ecsClusterHasBeenSet = false;
392 bool m_ecsTaskHasBeenSet = false;
393 bool m_iamInstanceProfileHasBeenSet = false;
394 bool m_autoscalingAutoScalingGroupHasBeenSet = false;
395 bool m_ec2LaunchTemplateHasBeenSet = false;
396 bool m_ec2VpcHasBeenSet = false;
397 bool m_ec2ImageHasBeenSet = false;
398 bool m_cloudformationStackHasBeenSet = false;
399};
400
401} // namespace Model
402} // namespace GuardDuty
403} // namespace Aws
const KubernetesWorkload & GetKubernetesWorkload() const
ResourceData & WithEc2LaunchTemplate(Ec2LaunchTemplateT &&value)
void SetAutoscalingAutoScalingGroup(AutoscalingAutoScalingGroupT &&value)
const S3Bucket & GetS3Bucket() const
ResourceData & WithCloudformationStack(CloudformationStackT &&value)
void SetS3Bucket(S3BucketT &&value)
const CloudformationStack & GetCloudformationStack() const
const AutoscalingAutoScalingGroup & GetAutoscalingAutoScalingGroup() const
ResourceData & WithS3Object(S3ObjectT &&value)
const Ec2NetworkInterface & GetEc2NetworkInterface() const
void SetEcsTask(EcsTaskT &&value)
AWS_GUARDDUTY_API ResourceData & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API ResourceData()=default
void SetEcsCluster(EcsClusterT &&value)
ResourceData & WithEc2Image(Ec2ImageT &&value)
ResourceData & WithEcsCluster(EcsClusterT &&value)
ResourceData & WithAccessKey(AccessKeyT &&value)
const EcsCluster & GetEcsCluster() const
void SetS3Object(S3ObjectT &&value)
void SetEksCluster(EksClusterT &&value)
const EcsTask & GetEcsTask() const
ResourceData & WithIamInstanceProfile(IamInstanceProfileT &&value)
void SetEc2NetworkInterface(Ec2NetworkInterfaceT &&value)
ResourceData & WithEc2Instance(Ec2InstanceT &&value)
ResourceData & WithEc2NetworkInterface(Ec2NetworkInterfaceT &&value)
ResourceData & WithEc2Vpc(Ec2VpcT &&value)
const Ec2Vpc & GetEc2Vpc() const
void SetIamInstanceProfile(IamInstanceProfileT &&value)
AWS_GUARDDUTY_API ResourceData(Aws::Utils::Json::JsonView jsonValue)
void SetContainer(ContainerT &&value)
const IamInstanceProfileV2 & GetIamInstanceProfile() const
ResourceData & WithContainer(ContainerT &&value)
ResourceData & WithEksCluster(EksClusterT &&value)
const Ec2LaunchTemplate & GetEc2LaunchTemplate() const
const Ec2Image & GetEc2Image() const
const S3Object & GetS3Object() const
ResourceData & WithKubernetesWorkload(KubernetesWorkloadT &&value)
void SetEc2Instance(Ec2InstanceT &&value)
void SetEc2Image(Ec2ImageT &&value)
const AccessKey & GetAccessKey() const
void SetEc2LaunchTemplate(Ec2LaunchTemplateT &&value)
void SetCloudformationStack(CloudformationStackT &&value)
const ContainerFindingResource & GetContainer() const
const EksCluster & GetEksCluster() const
ResourceData & WithEcsTask(EcsTaskT &&value)
const Ec2Instance & GetEc2Instance() const
ResourceData & WithS3Bucket(S3BucketT &&value)
void SetKubernetesWorkload(KubernetesWorkloadT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAccessKey(AccessKeyT &&value)
ResourceData & WithAutoscalingAutoScalingGroup(AutoscalingAutoScalingGroupT &&value)
Aws::Utils::Json::JsonValue JsonValue