AWS SDK for C++

AWS SDK for C++ Version 1.11.906

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/BedrockGuardrailResource.h>
11#include <aws/guardduty/model/CloudformationStack.h>
12#include <aws/guardduty/model/ContainerFindingResource.h>
13#include <aws/guardduty/model/Ec2Image.h>
14#include <aws/guardduty/model/Ec2Instance.h>
15#include <aws/guardduty/model/Ec2LaunchTemplate.h>
16#include <aws/guardduty/model/Ec2NetworkInterface.h>
17#include <aws/guardduty/model/Ec2Vpc.h>
18#include <aws/guardduty/model/EcsCluster.h>
19#include <aws/guardduty/model/EcsTask.h>
20#include <aws/guardduty/model/EksCluster.h>
21#include <aws/guardduty/model/IamInstanceProfileV2.h>
22#include <aws/guardduty/model/KubernetesWorkload.h>
23#include <aws/guardduty/model/S3Bucket.h>
24#include <aws/guardduty/model/S3Object.h>
25
26#include <utility>
27
28namespace Aws {
29namespace Utils {
30namespace Json {
31class JsonValue;
32class JsonView;
33} // namespace Json
34} // namespace Utils
35namespace GuardDuty {
36namespace Model {
37
46 public:
47 AWS_GUARDDUTY_API ResourceData() = default;
48 AWS_GUARDDUTY_API ResourceData(Aws::Utils::Json::JsonView jsonValue);
49 AWS_GUARDDUTY_API ResourceData& operator=(Aws::Utils::Json::JsonView jsonValue);
50 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
51
53
56 inline const S3Bucket& GetS3Bucket() const { return m_s3Bucket; }
57 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
58 template <typename S3BucketT = S3Bucket>
59 void SetS3Bucket(S3BucketT&& value) {
60 m_s3BucketHasBeenSet = true;
61 m_s3Bucket = std::forward<S3BucketT>(value);
62 }
63 template <typename S3BucketT = S3Bucket>
64 ResourceData& WithS3Bucket(S3BucketT&& value) {
65 SetS3Bucket(std::forward<S3BucketT>(value));
66 return *this;
67 }
69
71
74 inline const Ec2Instance& GetEc2Instance() const { return m_ec2Instance; }
75 inline bool Ec2InstanceHasBeenSet() const { return m_ec2InstanceHasBeenSet; }
76 template <typename Ec2InstanceT = Ec2Instance>
77 void SetEc2Instance(Ec2InstanceT&& value) {
78 m_ec2InstanceHasBeenSet = true;
79 m_ec2Instance = std::forward<Ec2InstanceT>(value);
80 }
81 template <typename Ec2InstanceT = Ec2Instance>
82 ResourceData& WithEc2Instance(Ec2InstanceT&& value) {
83 SetEc2Instance(std::forward<Ec2InstanceT>(value));
84 return *this;
85 }
87
89
93 inline const AccessKey& GetAccessKey() const { return m_accessKey; }
94 inline bool AccessKeyHasBeenSet() const { return m_accessKeyHasBeenSet; }
95 template <typename AccessKeyT = AccessKey>
96 void SetAccessKey(AccessKeyT&& value) {
97 m_accessKeyHasBeenSet = true;
98 m_accessKey = std::forward<AccessKeyT>(value);
99 }
100 template <typename AccessKeyT = AccessKey>
101 ResourceData& WithAccessKey(AccessKeyT&& value) {
102 SetAccessKey(std::forward<AccessKeyT>(value));
103 return *this;
104 }
106
108
112 inline const Ec2NetworkInterface& GetEc2NetworkInterface() const { return m_ec2NetworkInterface; }
113 inline bool Ec2NetworkInterfaceHasBeenSet() const { return m_ec2NetworkInterfaceHasBeenSet; }
114 template <typename Ec2NetworkInterfaceT = Ec2NetworkInterface>
115 void SetEc2NetworkInterface(Ec2NetworkInterfaceT&& value) {
116 m_ec2NetworkInterfaceHasBeenSet = true;
117 m_ec2NetworkInterface = std::forward<Ec2NetworkInterfaceT>(value);
118 }
119 template <typename Ec2NetworkInterfaceT = Ec2NetworkInterface>
120 ResourceData& WithEc2NetworkInterface(Ec2NetworkInterfaceT&& value) {
121 SetEc2NetworkInterface(std::forward<Ec2NetworkInterfaceT>(value));
122 return *this;
123 }
125
127
130 inline const S3Object& GetS3Object() const { return m_s3Object; }
131 inline bool S3ObjectHasBeenSet() const { return m_s3ObjectHasBeenSet; }
132 template <typename S3ObjectT = S3Object>
133 void SetS3Object(S3ObjectT&& value) {
134 m_s3ObjectHasBeenSet = true;
135 m_s3Object = std::forward<S3ObjectT>(value);
136 }
137 template <typename S3ObjectT = S3Object>
138 ResourceData& WithS3Object(S3ObjectT&& value) {
139 SetS3Object(std::forward<S3ObjectT>(value));
140 return *this;
141 }
143
145
149 inline const EksCluster& GetEksCluster() const { return m_eksCluster; }
150 inline bool EksClusterHasBeenSet() const { return m_eksClusterHasBeenSet; }
151 template <typename EksClusterT = EksCluster>
152 void SetEksCluster(EksClusterT&& value) {
153 m_eksClusterHasBeenSet = true;
154 m_eksCluster = std::forward<EksClusterT>(value);
155 }
156 template <typename EksClusterT = EksCluster>
157 ResourceData& WithEksCluster(EksClusterT&& value) {
158 SetEksCluster(std::forward<EksClusterT>(value));
159 return *this;
160 }
162
164
168 inline const KubernetesWorkload& GetKubernetesWorkload() const { return m_kubernetesWorkload; }
169 inline bool KubernetesWorkloadHasBeenSet() const { return m_kubernetesWorkloadHasBeenSet; }
170 template <typename KubernetesWorkloadT = KubernetesWorkload>
171 void SetKubernetesWorkload(KubernetesWorkloadT&& value) {
172 m_kubernetesWorkloadHasBeenSet = true;
173 m_kubernetesWorkload = std::forward<KubernetesWorkloadT>(value);
174 }
175 template <typename KubernetesWorkloadT = KubernetesWorkload>
176 ResourceData& WithKubernetesWorkload(KubernetesWorkloadT&& value) {
177 SetKubernetesWorkload(std::forward<KubernetesWorkloadT>(value));
178 return *this;
179 }
181
183
187 inline const ContainerFindingResource& GetContainer() const { return m_container; }
188 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
189 template <typename ContainerT = ContainerFindingResource>
190 void SetContainer(ContainerT&& value) {
191 m_containerHasBeenSet = true;
192 m_container = std::forward<ContainerT>(value);
193 }
194 template <typename ContainerT = ContainerFindingResource>
195 ResourceData& WithContainer(ContainerT&& value) {
196 SetContainer(std::forward<ContainerT>(value));
197 return *this;
198 }
200
202
206 inline const EcsCluster& GetEcsCluster() const { return m_ecsCluster; }
207 inline bool EcsClusterHasBeenSet() const { return m_ecsClusterHasBeenSet; }
208 template <typename EcsClusterT = EcsCluster>
209 void SetEcsCluster(EcsClusterT&& value) {
210 m_ecsClusterHasBeenSet = true;
211 m_ecsCluster = std::forward<EcsClusterT>(value);
212 }
213 template <typename EcsClusterT = EcsCluster>
214 ResourceData& WithEcsCluster(EcsClusterT&& value) {
215 SetEcsCluster(std::forward<EcsClusterT>(value));
216 return *this;
217 }
219
221
225 inline const EcsTask& GetEcsTask() const { return m_ecsTask; }
226 inline bool EcsTaskHasBeenSet() const { return m_ecsTaskHasBeenSet; }
227 template <typename EcsTaskT = EcsTask>
228 void SetEcsTask(EcsTaskT&& value) {
229 m_ecsTaskHasBeenSet = true;
230 m_ecsTask = std::forward<EcsTaskT>(value);
231 }
232 template <typename EcsTaskT = EcsTask>
233 ResourceData& WithEcsTask(EcsTaskT&& value) {
234 SetEcsTask(std::forward<EcsTaskT>(value));
235 return *this;
236 }
238
240
244 inline const IamInstanceProfileV2& GetIamInstanceProfile() const { return m_iamInstanceProfile; }
245 inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; }
246 template <typename IamInstanceProfileT = IamInstanceProfileV2>
247 void SetIamInstanceProfile(IamInstanceProfileT&& value) {
248 m_iamInstanceProfileHasBeenSet = true;
249 m_iamInstanceProfile = std::forward<IamInstanceProfileT>(value);
250 }
251 template <typename IamInstanceProfileT = IamInstanceProfileV2>
252 ResourceData& WithIamInstanceProfile(IamInstanceProfileT&& value) {
253 SetIamInstanceProfile(std::forward<IamInstanceProfileT>(value));
254 return *this;
255 }
257
259
263 inline const AutoscalingAutoScalingGroup& GetAutoscalingAutoScalingGroup() const { return m_autoscalingAutoScalingGroup; }
264 inline bool AutoscalingAutoScalingGroupHasBeenSet() const { return m_autoscalingAutoScalingGroupHasBeenSet; }
265 template <typename AutoscalingAutoScalingGroupT = AutoscalingAutoScalingGroup>
266 void SetAutoscalingAutoScalingGroup(AutoscalingAutoScalingGroupT&& value) {
267 m_autoscalingAutoScalingGroupHasBeenSet = true;
268 m_autoscalingAutoScalingGroup = std::forward<AutoscalingAutoScalingGroupT>(value);
269 }
270 template <typename AutoscalingAutoScalingGroupT = AutoscalingAutoScalingGroup>
271 ResourceData& WithAutoscalingAutoScalingGroup(AutoscalingAutoScalingGroupT&& value) {
272 SetAutoscalingAutoScalingGroup(std::forward<AutoscalingAutoScalingGroupT>(value));
273 return *this;
274 }
276
278
282 inline const Ec2LaunchTemplate& GetEc2LaunchTemplate() const { return m_ec2LaunchTemplate; }
283 inline bool Ec2LaunchTemplateHasBeenSet() const { return m_ec2LaunchTemplateHasBeenSet; }
284 template <typename Ec2LaunchTemplateT = Ec2LaunchTemplate>
285 void SetEc2LaunchTemplate(Ec2LaunchTemplateT&& value) {
286 m_ec2LaunchTemplateHasBeenSet = true;
287 m_ec2LaunchTemplate = std::forward<Ec2LaunchTemplateT>(value);
288 }
289 template <typename Ec2LaunchTemplateT = Ec2LaunchTemplate>
290 ResourceData& WithEc2LaunchTemplate(Ec2LaunchTemplateT&& value) {
291 SetEc2LaunchTemplate(std::forward<Ec2LaunchTemplateT>(value));
292 return *this;
293 }
295
297
301 inline const Ec2Vpc& GetEc2Vpc() const { return m_ec2Vpc; }
302 inline bool Ec2VpcHasBeenSet() const { return m_ec2VpcHasBeenSet; }
303 template <typename Ec2VpcT = Ec2Vpc>
304 void SetEc2Vpc(Ec2VpcT&& value) {
305 m_ec2VpcHasBeenSet = true;
306 m_ec2Vpc = std::forward<Ec2VpcT>(value);
307 }
308 template <typename Ec2VpcT = Ec2Vpc>
309 ResourceData& WithEc2Vpc(Ec2VpcT&& value) {
310 SetEc2Vpc(std::forward<Ec2VpcT>(value));
311 return *this;
312 }
314
316
320 inline const Ec2Image& GetEc2Image() const { return m_ec2Image; }
321 inline bool Ec2ImageHasBeenSet() const { return m_ec2ImageHasBeenSet; }
322 template <typename Ec2ImageT = Ec2Image>
323 void SetEc2Image(Ec2ImageT&& value) {
324 m_ec2ImageHasBeenSet = true;
325 m_ec2Image = std::forward<Ec2ImageT>(value);
326 }
327 template <typename Ec2ImageT = Ec2Image>
328 ResourceData& WithEc2Image(Ec2ImageT&& value) {
329 SetEc2Image(std::forward<Ec2ImageT>(value));
330 return *this;
331 }
333
335
339 inline const CloudformationStack& GetCloudformationStack() const { return m_cloudformationStack; }
340 inline bool CloudformationStackHasBeenSet() const { return m_cloudformationStackHasBeenSet; }
341 template <typename CloudformationStackT = CloudformationStack>
342 void SetCloudformationStack(CloudformationStackT&& value) {
343 m_cloudformationStackHasBeenSet = true;
344 m_cloudformationStack = std::forward<CloudformationStackT>(value);
345 }
346 template <typename CloudformationStackT = CloudformationStack>
347 ResourceData& WithCloudformationStack(CloudformationStackT&& value) {
348 SetCloudformationStack(std::forward<CloudformationStackT>(value));
349 return *this;
350 }
352
354
358 inline const BedrockGuardrailResource& GetBedrockGuardrail() const { return m_bedrockGuardrail; }
359 inline bool BedrockGuardrailHasBeenSet() const { return m_bedrockGuardrailHasBeenSet; }
360 template <typename BedrockGuardrailT = BedrockGuardrailResource>
361 void SetBedrockGuardrail(BedrockGuardrailT&& value) {
362 m_bedrockGuardrailHasBeenSet = true;
363 m_bedrockGuardrail = std::forward<BedrockGuardrailT>(value);
364 }
365 template <typename BedrockGuardrailT = BedrockGuardrailResource>
366 ResourceData& WithBedrockGuardrail(BedrockGuardrailT&& value) {
367 SetBedrockGuardrail(std::forward<BedrockGuardrailT>(value));
368 return *this;
369 }
371 private:
372 S3Bucket m_s3Bucket;
373
374 Ec2Instance m_ec2Instance;
375
376 AccessKey m_accessKey;
377
378 Ec2NetworkInterface m_ec2NetworkInterface;
379
380 S3Object m_s3Object;
381
382 EksCluster m_eksCluster;
383
384 KubernetesWorkload m_kubernetesWorkload;
385
386 ContainerFindingResource m_container;
387
388 EcsCluster m_ecsCluster;
389
390 EcsTask m_ecsTask;
391
392 IamInstanceProfileV2 m_iamInstanceProfile;
393
394 AutoscalingAutoScalingGroup m_autoscalingAutoScalingGroup;
395
396 Ec2LaunchTemplate m_ec2LaunchTemplate;
397
398 Ec2Vpc m_ec2Vpc;
399
400 Ec2Image m_ec2Image;
401
402 CloudformationStack m_cloudformationStack;
403
404 BedrockGuardrailResource m_bedrockGuardrail;
405 bool m_s3BucketHasBeenSet = false;
406 bool m_ec2InstanceHasBeenSet = false;
407 bool m_accessKeyHasBeenSet = false;
408 bool m_ec2NetworkInterfaceHasBeenSet = false;
409 bool m_s3ObjectHasBeenSet = false;
410 bool m_eksClusterHasBeenSet = false;
411 bool m_kubernetesWorkloadHasBeenSet = false;
412 bool m_containerHasBeenSet = false;
413 bool m_ecsClusterHasBeenSet = false;
414 bool m_ecsTaskHasBeenSet = false;
415 bool m_iamInstanceProfileHasBeenSet = false;
416 bool m_autoscalingAutoScalingGroupHasBeenSet = false;
417 bool m_ec2LaunchTemplateHasBeenSet = false;
418 bool m_ec2VpcHasBeenSet = false;
419 bool m_ec2ImageHasBeenSet = false;
420 bool m_cloudformationStackHasBeenSet = false;
421 bool m_bedrockGuardrailHasBeenSet = false;
422};
423
424} // namespace Model
425} // namespace GuardDuty
426} // namespace Aws
const KubernetesWorkload & GetKubernetesWorkload() const
ResourceData & WithBedrockGuardrail(BedrockGuardrailT &&value)
ResourceData & WithEc2LaunchTemplate(Ec2LaunchTemplateT &&value)
void SetAutoscalingAutoScalingGroup(AutoscalingAutoScalingGroupT &&value)
const S3Bucket & GetS3Bucket() const
ResourceData & WithCloudformationStack(CloudformationStackT &&value)
void SetS3Bucket(S3BucketT &&value)
const BedrockGuardrailResource & GetBedrockGuardrail() const
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 SetBedrockGuardrail(BedrockGuardrailT &&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