AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Resource.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/AccessKeyDetails.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/guardduty/model/InstanceDetails.h>
11#include <aws/guardduty/model/EksClusterDetails.h>
12#include <aws/guardduty/model/KubernetesDetails.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/guardduty/model/EbsVolumeDetails.h>
15#include <aws/guardduty/model/EcsClusterDetails.h>
16#include <aws/guardduty/model/Container.h>
17#include <aws/guardduty/model/RdsDbInstanceDetails.h>
18#include <aws/guardduty/model/RdsDbUserDetails.h>
19#include <aws/guardduty/model/LambdaDetails.h>
20#include <aws/guardduty/model/S3BucketDetail.h>
21#include <utility>
22
23namespace Aws
24{
25namespace Utils
26{
27namespace Json
28{
29 class JsonValue;
30 class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace GuardDuty
34{
35namespace Model
36{
37
46 {
47 public:
48 AWS_GUARDDUTY_API Resource();
49 AWS_GUARDDUTY_API Resource(Aws::Utils::Json::JsonView jsonValue);
50 AWS_GUARDDUTY_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
51 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
52
53
55
59 inline const AccessKeyDetails& GetAccessKeyDetails() const{ return m_accessKeyDetails; }
60 inline bool AccessKeyDetailsHasBeenSet() const { return m_accessKeyDetailsHasBeenSet; }
61 inline void SetAccessKeyDetails(const AccessKeyDetails& value) { m_accessKeyDetailsHasBeenSet = true; m_accessKeyDetails = value; }
62 inline void SetAccessKeyDetails(AccessKeyDetails&& value) { m_accessKeyDetailsHasBeenSet = true; m_accessKeyDetails = std::move(value); }
63 inline Resource& WithAccessKeyDetails(const AccessKeyDetails& value) { SetAccessKeyDetails(value); return *this;}
64 inline Resource& WithAccessKeyDetails(AccessKeyDetails&& value) { SetAccessKeyDetails(std::move(value)); return *this;}
66
68
71 inline const Aws::Vector<S3BucketDetail>& GetS3BucketDetails() const{ return m_s3BucketDetails; }
72 inline bool S3BucketDetailsHasBeenSet() const { return m_s3BucketDetailsHasBeenSet; }
73 inline void SetS3BucketDetails(const Aws::Vector<S3BucketDetail>& value) { m_s3BucketDetailsHasBeenSet = true; m_s3BucketDetails = value; }
74 inline void SetS3BucketDetails(Aws::Vector<S3BucketDetail>&& value) { m_s3BucketDetailsHasBeenSet = true; m_s3BucketDetails = std::move(value); }
75 inline Resource& WithS3BucketDetails(const Aws::Vector<S3BucketDetail>& value) { SetS3BucketDetails(value); return *this;}
76 inline Resource& WithS3BucketDetails(Aws::Vector<S3BucketDetail>&& value) { SetS3BucketDetails(std::move(value)); return *this;}
77 inline Resource& AddS3BucketDetails(const S3BucketDetail& value) { m_s3BucketDetailsHasBeenSet = true; m_s3BucketDetails.push_back(value); return *this; }
78 inline Resource& AddS3BucketDetails(S3BucketDetail&& value) { m_s3BucketDetailsHasBeenSet = true; m_s3BucketDetails.push_back(std::move(value)); return *this; }
80
82
86 inline const InstanceDetails& GetInstanceDetails() const{ return m_instanceDetails; }
87 inline bool InstanceDetailsHasBeenSet() const { return m_instanceDetailsHasBeenSet; }
88 inline void SetInstanceDetails(const InstanceDetails& value) { m_instanceDetailsHasBeenSet = true; m_instanceDetails = value; }
89 inline void SetInstanceDetails(InstanceDetails&& value) { m_instanceDetailsHasBeenSet = true; m_instanceDetails = std::move(value); }
90 inline Resource& WithInstanceDetails(const InstanceDetails& value) { SetInstanceDetails(value); return *this;}
91 inline Resource& WithInstanceDetails(InstanceDetails&& value) { SetInstanceDetails(std::move(value)); return *this;}
93
95
98 inline const EksClusterDetails& GetEksClusterDetails() const{ return m_eksClusterDetails; }
99 inline bool EksClusterDetailsHasBeenSet() const { return m_eksClusterDetailsHasBeenSet; }
100 inline void SetEksClusterDetails(const EksClusterDetails& value) { m_eksClusterDetailsHasBeenSet = true; m_eksClusterDetails = value; }
101 inline void SetEksClusterDetails(EksClusterDetails&& value) { m_eksClusterDetailsHasBeenSet = true; m_eksClusterDetails = std::move(value); }
102 inline Resource& WithEksClusterDetails(const EksClusterDetails& value) { SetEksClusterDetails(value); return *this;}
103 inline Resource& WithEksClusterDetails(EksClusterDetails&& value) { SetEksClusterDetails(std::move(value)); return *this;}
105
107
111 inline const KubernetesDetails& GetKubernetesDetails() const{ return m_kubernetesDetails; }
112 inline bool KubernetesDetailsHasBeenSet() const { return m_kubernetesDetailsHasBeenSet; }
113 inline void SetKubernetesDetails(const KubernetesDetails& value) { m_kubernetesDetailsHasBeenSet = true; m_kubernetesDetails = value; }
114 inline void SetKubernetesDetails(KubernetesDetails&& value) { m_kubernetesDetailsHasBeenSet = true; m_kubernetesDetails = std::move(value); }
115 inline Resource& WithKubernetesDetails(const KubernetesDetails& value) { SetKubernetesDetails(value); return *this;}
116 inline Resource& WithKubernetesDetails(KubernetesDetails&& value) { SetKubernetesDetails(std::move(value)); return *this;}
118
120
123 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
124 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
125 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
126 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
127 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
128 inline Resource& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
129 inline Resource& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
130 inline Resource& WithResourceType(const char* value) { SetResourceType(value); return *this;}
132
134
137 inline const EbsVolumeDetails& GetEbsVolumeDetails() const{ return m_ebsVolumeDetails; }
138 inline bool EbsVolumeDetailsHasBeenSet() const { return m_ebsVolumeDetailsHasBeenSet; }
139 inline void SetEbsVolumeDetails(const EbsVolumeDetails& value) { m_ebsVolumeDetailsHasBeenSet = true; m_ebsVolumeDetails = value; }
140 inline void SetEbsVolumeDetails(EbsVolumeDetails&& value) { m_ebsVolumeDetailsHasBeenSet = true; m_ebsVolumeDetails = std::move(value); }
141 inline Resource& WithEbsVolumeDetails(const EbsVolumeDetails& value) { SetEbsVolumeDetails(value); return *this;}
142 inline Resource& WithEbsVolumeDetails(EbsVolumeDetails&& value) { SetEbsVolumeDetails(std::move(value)); return *this;}
144
146
149 inline const EcsClusterDetails& GetEcsClusterDetails() const{ return m_ecsClusterDetails; }
150 inline bool EcsClusterDetailsHasBeenSet() const { return m_ecsClusterDetailsHasBeenSet; }
151 inline void SetEcsClusterDetails(const EcsClusterDetails& value) { m_ecsClusterDetailsHasBeenSet = true; m_ecsClusterDetails = value; }
152 inline void SetEcsClusterDetails(EcsClusterDetails&& value) { m_ecsClusterDetailsHasBeenSet = true; m_ecsClusterDetails = std::move(value); }
153 inline Resource& WithEcsClusterDetails(const EcsClusterDetails& value) { SetEcsClusterDetails(value); return *this;}
154 inline Resource& WithEcsClusterDetails(EcsClusterDetails&& value) { SetEcsClusterDetails(std::move(value)); return *this;}
156
158
159 inline const Container& GetContainerDetails() const{ return m_containerDetails; }
160 inline bool ContainerDetailsHasBeenSet() const { return m_containerDetailsHasBeenSet; }
161 inline void SetContainerDetails(const Container& value) { m_containerDetailsHasBeenSet = true; m_containerDetails = value; }
162 inline void SetContainerDetails(Container&& value) { m_containerDetailsHasBeenSet = true; m_containerDetails = std::move(value); }
163 inline Resource& WithContainerDetails(const Container& value) { SetContainerDetails(value); return *this;}
164 inline Resource& WithContainerDetails(Container&& value) { SetContainerDetails(std::move(value)); return *this;}
166
168
172 inline const RdsDbInstanceDetails& GetRdsDbInstanceDetails() const{ return m_rdsDbInstanceDetails; }
173 inline bool RdsDbInstanceDetailsHasBeenSet() const { return m_rdsDbInstanceDetailsHasBeenSet; }
174 inline void SetRdsDbInstanceDetails(const RdsDbInstanceDetails& value) { m_rdsDbInstanceDetailsHasBeenSet = true; m_rdsDbInstanceDetails = value; }
175 inline void SetRdsDbInstanceDetails(RdsDbInstanceDetails&& value) { m_rdsDbInstanceDetailsHasBeenSet = true; m_rdsDbInstanceDetails = std::move(value); }
177 inline Resource& WithRdsDbInstanceDetails(RdsDbInstanceDetails&& value) { SetRdsDbInstanceDetails(std::move(value)); return *this;}
179
181
185 inline const RdsDbUserDetails& GetRdsDbUserDetails() const{ return m_rdsDbUserDetails; }
186 inline bool RdsDbUserDetailsHasBeenSet() const { return m_rdsDbUserDetailsHasBeenSet; }
187 inline void SetRdsDbUserDetails(const RdsDbUserDetails& value) { m_rdsDbUserDetailsHasBeenSet = true; m_rdsDbUserDetails = value; }
188 inline void SetRdsDbUserDetails(RdsDbUserDetails&& value) { m_rdsDbUserDetailsHasBeenSet = true; m_rdsDbUserDetails = std::move(value); }
189 inline Resource& WithRdsDbUserDetails(const RdsDbUserDetails& value) { SetRdsDbUserDetails(value); return *this;}
190 inline Resource& WithRdsDbUserDetails(RdsDbUserDetails&& value) { SetRdsDbUserDetails(std::move(value)); return *this;}
192
194
198 inline const LambdaDetails& GetLambdaDetails() const{ return m_lambdaDetails; }
199 inline bool LambdaDetailsHasBeenSet() const { return m_lambdaDetailsHasBeenSet; }
200 inline void SetLambdaDetails(const LambdaDetails& value) { m_lambdaDetailsHasBeenSet = true; m_lambdaDetails = value; }
201 inline void SetLambdaDetails(LambdaDetails&& value) { m_lambdaDetailsHasBeenSet = true; m_lambdaDetails = std::move(value); }
202 inline Resource& WithLambdaDetails(const LambdaDetails& value) { SetLambdaDetails(value); return *this;}
203 inline Resource& WithLambdaDetails(LambdaDetails&& value) { SetLambdaDetails(std::move(value)); return *this;}
205 private:
206
207 AccessKeyDetails m_accessKeyDetails;
208 bool m_accessKeyDetailsHasBeenSet = false;
209
210 Aws::Vector<S3BucketDetail> m_s3BucketDetails;
211 bool m_s3BucketDetailsHasBeenSet = false;
212
213 InstanceDetails m_instanceDetails;
214 bool m_instanceDetailsHasBeenSet = false;
215
216 EksClusterDetails m_eksClusterDetails;
217 bool m_eksClusterDetailsHasBeenSet = false;
218
219 KubernetesDetails m_kubernetesDetails;
220 bool m_kubernetesDetailsHasBeenSet = false;
221
222 Aws::String m_resourceType;
223 bool m_resourceTypeHasBeenSet = false;
224
225 EbsVolumeDetails m_ebsVolumeDetails;
226 bool m_ebsVolumeDetailsHasBeenSet = false;
227
228 EcsClusterDetails m_ecsClusterDetails;
229 bool m_ecsClusterDetailsHasBeenSet = false;
230
231 Container m_containerDetails;
232 bool m_containerDetailsHasBeenSet = false;
233
234 RdsDbInstanceDetails m_rdsDbInstanceDetails;
235 bool m_rdsDbInstanceDetailsHasBeenSet = false;
236
237 RdsDbUserDetails m_rdsDbUserDetails;
238 bool m_rdsDbUserDetailsHasBeenSet = false;
239
240 LambdaDetails m_lambdaDetails;
241 bool m_lambdaDetailsHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace GuardDuty
246} // namespace Aws
Resource & WithEksClusterDetails(EksClusterDetails &&value)
Definition Resource.h:103
void SetRdsDbInstanceDetails(RdsDbInstanceDetails &&value)
Definition Resource.h:175
Resource & AddS3BucketDetails(const S3BucketDetail &value)
Definition Resource.h:77
bool AccessKeyDetailsHasBeenSet() const
Definition Resource.h:60
AWS_GUARDDUTY_API Resource(Aws::Utils::Json::JsonView jsonValue)
const KubernetesDetails & GetKubernetesDetails() const
Definition Resource.h:111
Resource & WithAccessKeyDetails(const AccessKeyDetails &value)
Definition Resource.h:63
void SetEcsClusterDetails(EcsClusterDetails &&value)
Definition Resource.h:152
const EcsClusterDetails & GetEcsClusterDetails() const
Definition Resource.h:149
bool S3BucketDetailsHasBeenSet() const
Definition Resource.h:72
Resource & WithResourceType(Aws::String &&value)
Definition Resource.h:129
void SetLambdaDetails(LambdaDetails &&value)
Definition Resource.h:201
bool EksClusterDetailsHasBeenSet() const
Definition Resource.h:99
void SetContainerDetails(const Container &value)
Definition Resource.h:161
void SetAccessKeyDetails(AccessKeyDetails &&value)
Definition Resource.h:62
void SetEbsVolumeDetails(const EbsVolumeDetails &value)
Definition Resource.h:139
bool KubernetesDetailsHasBeenSet() const
Definition Resource.h:112
void SetRdsDbUserDetails(RdsDbUserDetails &&value)
Definition Resource.h:188
Resource & WithContainerDetails(const Container &value)
Definition Resource.h:163
bool EcsClusterDetailsHasBeenSet() const
Definition Resource.h:150
void SetEksClusterDetails(const EksClusterDetails &value)
Definition Resource.h:100
Resource & WithRdsDbUserDetails(const RdsDbUserDetails &value)
Definition Resource.h:189
Resource & WithEbsVolumeDetails(EbsVolumeDetails &&value)
Definition Resource.h:142
void SetLambdaDetails(const LambdaDetails &value)
Definition Resource.h:200
bool ResourceTypeHasBeenSet() const
Definition Resource.h:124
Resource & WithResourceType(const Aws::String &value)
Definition Resource.h:128
void SetKubernetesDetails(KubernetesDetails &&value)
Definition Resource.h:114
void SetAccessKeyDetails(const AccessKeyDetails &value)
Definition Resource.h:61
Resource & WithRdsDbUserDetails(RdsDbUserDetails &&value)
Definition Resource.h:190
Resource & WithLambdaDetails(LambdaDetails &&value)
Definition Resource.h:203
const LambdaDetails & GetLambdaDetails() const
Definition Resource.h:198
Resource & WithAccessKeyDetails(AccessKeyDetails &&value)
Definition Resource.h:64
void SetResourceType(const char *value)
Definition Resource.h:127
const InstanceDetails & GetInstanceDetails() const
Definition Resource.h:86
const EksClusterDetails & GetEksClusterDetails() const
Definition Resource.h:98
Resource & WithInstanceDetails(const InstanceDetails &value)
Definition Resource.h:90
Resource & WithLambdaDetails(const LambdaDetails &value)
Definition Resource.h:202
void SetS3BucketDetails(const Aws::Vector< S3BucketDetail > &value)
Definition Resource.h:73
AWS_GUARDDUTY_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ContainerDetailsHasBeenSet() const
Definition Resource.h:160
const RdsDbUserDetails & GetRdsDbUserDetails() const
Definition Resource.h:185
Resource & WithInstanceDetails(InstanceDetails &&value)
Definition Resource.h:91
const AccessKeyDetails & GetAccessKeyDetails() const
Definition Resource.h:59
bool LambdaDetailsHasBeenSet() const
Definition Resource.h:199
bool RdsDbUserDetailsHasBeenSet() const
Definition Resource.h:186
Resource & WithRdsDbInstanceDetails(RdsDbInstanceDetails &&value)
Definition Resource.h:177
const EbsVolumeDetails & GetEbsVolumeDetails() const
Definition Resource.h:137
void SetContainerDetails(Container &&value)
Definition Resource.h:162
Resource & WithResourceType(const char *value)
Definition Resource.h:130
Resource & AddS3BucketDetails(S3BucketDetail &&value)
Definition Resource.h:78
Resource & WithEcsClusterDetails(EcsClusterDetails &&value)
Definition Resource.h:154
AWS_GUARDDUTY_API Resource()
Resource & WithContainerDetails(Container &&value)
Definition Resource.h:164
void SetResourceType(const Aws::String &value)
Definition Resource.h:125
void SetEcsClusterDetails(const EcsClusterDetails &value)
Definition Resource.h:151
void SetS3BucketDetails(Aws::Vector< S3BucketDetail > &&value)
Definition Resource.h:74
void SetResourceType(Aws::String &&value)
Definition Resource.h:126
bool InstanceDetailsHasBeenSet() const
Definition Resource.h:87
void SetEbsVolumeDetails(EbsVolumeDetails &&value)
Definition Resource.h:140
const Container & GetContainerDetails() const
Definition Resource.h:159
Resource & WithRdsDbInstanceDetails(const RdsDbInstanceDetails &value)
Definition Resource.h:176
const RdsDbInstanceDetails & GetRdsDbInstanceDetails() const
Definition Resource.h:172
Resource & WithEksClusterDetails(const EksClusterDetails &value)
Definition Resource.h:102
bool EbsVolumeDetailsHasBeenSet() const
Definition Resource.h:138
Resource & WithS3BucketDetails(const Aws::Vector< S3BucketDetail > &value)
Definition Resource.h:75
Resource & WithKubernetesDetails(KubernetesDetails &&value)
Definition Resource.h:116
Resource & WithEcsClusterDetails(const EcsClusterDetails &value)
Definition Resource.h:153
void SetInstanceDetails(const InstanceDetails &value)
Definition Resource.h:88
void SetKubernetesDetails(const KubernetesDetails &value)
Definition Resource.h:113
void SetRdsDbInstanceDetails(const RdsDbInstanceDetails &value)
Definition Resource.h:174
Resource & WithS3BucketDetails(Aws::Vector< S3BucketDetail > &&value)
Definition Resource.h:76
const Aws::Vector< S3BucketDetail > & GetS3BucketDetails() const
Definition Resource.h:71
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRdsDbUserDetails(const RdsDbUserDetails &value)
Definition Resource.h:187
bool RdsDbInstanceDetailsHasBeenSet() const
Definition Resource.h:173
Resource & WithKubernetesDetails(const KubernetesDetails &value)
Definition Resource.h:115
const Aws::String & GetResourceType() const
Definition Resource.h:123
Resource & WithEbsVolumeDetails(const EbsVolumeDetails &value)
Definition Resource.h:141
void SetEksClusterDetails(EksClusterDetails &&value)
Definition Resource.h:101
void SetInstanceDetails(InstanceDetails &&value)
Definition Resource.h:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue