AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ResourceData.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/S3Bucket.h>
9#include <aws/guardduty/model/Ec2Instance.h>
10#include <aws/guardduty/model/AccessKey.h>
11#include <aws/guardduty/model/Ec2NetworkInterface.h>
12#include <aws/guardduty/model/S3Object.h>
13#include <aws/guardduty/model/EksCluster.h>
14#include <aws/guardduty/model/KubernetesWorkload.h>
15#include <aws/guardduty/model/ContainerFindingResource.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace GuardDuty
29{
30namespace Model
31{
32
41 {
42 public:
43 AWS_GUARDDUTY_API ResourceData() = default;
44 AWS_GUARDDUTY_API ResourceData(Aws::Utils::Json::JsonView jsonValue);
45 AWS_GUARDDUTY_API ResourceData& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const S3Bucket& GetS3Bucket() const { return m_s3Bucket; }
54 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
55 template<typename S3BucketT = S3Bucket>
56 void SetS3Bucket(S3BucketT&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::forward<S3BucketT>(value); }
57 template<typename S3BucketT = S3Bucket>
58 ResourceData& WithS3Bucket(S3BucketT&& value) { SetS3Bucket(std::forward<S3BucketT>(value)); return *this;}
60
62
65 inline const Ec2Instance& GetEc2Instance() const { return m_ec2Instance; }
66 inline bool Ec2InstanceHasBeenSet() const { return m_ec2InstanceHasBeenSet; }
67 template<typename Ec2InstanceT = Ec2Instance>
68 void SetEc2Instance(Ec2InstanceT&& value) { m_ec2InstanceHasBeenSet = true; m_ec2Instance = std::forward<Ec2InstanceT>(value); }
69 template<typename Ec2InstanceT = Ec2Instance>
70 ResourceData& WithEc2Instance(Ec2InstanceT&& value) { SetEc2Instance(std::forward<Ec2InstanceT>(value)); return *this;}
72
74
78 inline const AccessKey& GetAccessKey() const { return m_accessKey; }
79 inline bool AccessKeyHasBeenSet() const { return m_accessKeyHasBeenSet; }
80 template<typename AccessKeyT = AccessKey>
81 void SetAccessKey(AccessKeyT&& value) { m_accessKeyHasBeenSet = true; m_accessKey = std::forward<AccessKeyT>(value); }
82 template<typename AccessKeyT = AccessKey>
83 ResourceData& WithAccessKey(AccessKeyT&& value) { SetAccessKey(std::forward<AccessKeyT>(value)); return *this;}
85
87
91 inline const Ec2NetworkInterface& GetEc2NetworkInterface() const { return m_ec2NetworkInterface; }
92 inline bool Ec2NetworkInterfaceHasBeenSet() const { return m_ec2NetworkInterfaceHasBeenSet; }
93 template<typename Ec2NetworkInterfaceT = Ec2NetworkInterface>
94 void SetEc2NetworkInterface(Ec2NetworkInterfaceT&& value) { m_ec2NetworkInterfaceHasBeenSet = true; m_ec2NetworkInterface = std::forward<Ec2NetworkInterfaceT>(value); }
95 template<typename Ec2NetworkInterfaceT = Ec2NetworkInterface>
96 ResourceData& WithEc2NetworkInterface(Ec2NetworkInterfaceT&& value) { SetEc2NetworkInterface(std::forward<Ec2NetworkInterfaceT>(value)); return *this;}
98
100
103 inline const S3Object& GetS3Object() const { return m_s3Object; }
104 inline bool S3ObjectHasBeenSet() const { return m_s3ObjectHasBeenSet; }
105 template<typename S3ObjectT = S3Object>
106 void SetS3Object(S3ObjectT&& value) { m_s3ObjectHasBeenSet = true; m_s3Object = std::forward<S3ObjectT>(value); }
107 template<typename S3ObjectT = S3Object>
108 ResourceData& WithS3Object(S3ObjectT&& value) { SetS3Object(std::forward<S3ObjectT>(value)); return *this;}
110
112
116 inline const EksCluster& GetEksCluster() const { return m_eksCluster; }
117 inline bool EksClusterHasBeenSet() const { return m_eksClusterHasBeenSet; }
118 template<typename EksClusterT = EksCluster>
119 void SetEksCluster(EksClusterT&& value) { m_eksClusterHasBeenSet = true; m_eksCluster = std::forward<EksClusterT>(value); }
120 template<typename EksClusterT = EksCluster>
121 ResourceData& WithEksCluster(EksClusterT&& value) { SetEksCluster(std::forward<EksClusterT>(value)); return *this;}
123
125
129 inline const KubernetesWorkload& GetKubernetesWorkload() const { return m_kubernetesWorkload; }
130 inline bool KubernetesWorkloadHasBeenSet() const { return m_kubernetesWorkloadHasBeenSet; }
131 template<typename KubernetesWorkloadT = KubernetesWorkload>
132 void SetKubernetesWorkload(KubernetesWorkloadT&& value) { m_kubernetesWorkloadHasBeenSet = true; m_kubernetesWorkload = std::forward<KubernetesWorkloadT>(value); }
133 template<typename KubernetesWorkloadT = KubernetesWorkload>
134 ResourceData& WithKubernetesWorkload(KubernetesWorkloadT&& value) { SetKubernetesWorkload(std::forward<KubernetesWorkloadT>(value)); return *this;}
136
138
142 inline const ContainerFindingResource& GetContainer() const { return m_container; }
143 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
144 template<typename ContainerT = ContainerFindingResource>
145 void SetContainer(ContainerT&& value) { m_containerHasBeenSet = true; m_container = std::forward<ContainerT>(value); }
146 template<typename ContainerT = ContainerFindingResource>
147 ResourceData& WithContainer(ContainerT&& value) { SetContainer(std::forward<ContainerT>(value)); return *this;}
149 private:
150
151 S3Bucket m_s3Bucket;
152 bool m_s3BucketHasBeenSet = false;
153
154 Ec2Instance m_ec2Instance;
155 bool m_ec2InstanceHasBeenSet = false;
156
157 AccessKey m_accessKey;
158 bool m_accessKeyHasBeenSet = false;
159
160 Ec2NetworkInterface m_ec2NetworkInterface;
161 bool m_ec2NetworkInterfaceHasBeenSet = false;
162
163 S3Object m_s3Object;
164 bool m_s3ObjectHasBeenSet = false;
165
166 EksCluster m_eksCluster;
167 bool m_eksClusterHasBeenSet = false;
168
169 KubernetesWorkload m_kubernetesWorkload;
170 bool m_kubernetesWorkloadHasBeenSet = false;
171
172 ContainerFindingResource m_container;
173 bool m_containerHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace GuardDuty
178} // namespace Aws
const KubernetesWorkload & GetKubernetesWorkload() const
const S3Bucket & GetS3Bucket() const
void SetS3Bucket(S3BucketT &&value)
ResourceData & WithS3Object(S3ObjectT &&value)
const Ec2NetworkInterface & GetEc2NetworkInterface() const
AWS_GUARDDUTY_API ResourceData & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API ResourceData()=default
ResourceData & WithAccessKey(AccessKeyT &&value)
void SetS3Object(S3ObjectT &&value)
void SetEksCluster(EksClusterT &&value)
void SetEc2NetworkInterface(Ec2NetworkInterfaceT &&value)
ResourceData & WithEc2Instance(Ec2InstanceT &&value)
ResourceData & WithEc2NetworkInterface(Ec2NetworkInterfaceT &&value)
AWS_GUARDDUTY_API ResourceData(Aws::Utils::Json::JsonView jsonValue)
void SetContainer(ContainerT &&value)
ResourceData & WithContainer(ContainerT &&value)
ResourceData & WithEksCluster(EksClusterT &&value)
const S3Object & GetS3Object() const
ResourceData & WithKubernetesWorkload(KubernetesWorkloadT &&value)
void SetEc2Instance(Ec2InstanceT &&value)
const AccessKey & GetAccessKey() const
const ContainerFindingResource & GetContainer() const
const EksCluster & GetEksCluster() const
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)
Aws::Utils::Json::JsonValue JsonValue