AWS SDK for C++  1.9.20
AWS SDK for C++
Resource.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace GuardDuty
26 {
27 namespace Model
28 {
29 
37  {
38  public:
43 
44 
49  inline const AccessKeyDetails& GetAccessKeyDetails() const{ return m_accessKeyDetails; }
50 
55  inline bool AccessKeyDetailsHasBeenSet() const { return m_accessKeyDetailsHasBeenSet; }
56 
61  inline void SetAccessKeyDetails(const AccessKeyDetails& value) { m_accessKeyDetailsHasBeenSet = true; m_accessKeyDetails = value; }
62 
67  inline void SetAccessKeyDetails(AccessKeyDetails&& value) { m_accessKeyDetailsHasBeenSet = true; m_accessKeyDetails = std::move(value); }
68 
73  inline Resource& WithAccessKeyDetails(const AccessKeyDetails& value) { SetAccessKeyDetails(value); return *this;}
74 
79  inline Resource& WithAccessKeyDetails(AccessKeyDetails&& value) { SetAccessKeyDetails(std::move(value)); return *this;}
80 
81 
85  inline const Aws::Vector<S3BucketDetail>& GetS3BucketDetails() const{ return m_s3BucketDetails; }
86 
90  inline bool S3BucketDetailsHasBeenSet() const { return m_s3BucketDetailsHasBeenSet; }
91 
95  inline void SetS3BucketDetails(const Aws::Vector<S3BucketDetail>& value) { m_s3BucketDetailsHasBeenSet = true; m_s3BucketDetails = value; }
96 
100  inline void SetS3BucketDetails(Aws::Vector<S3BucketDetail>&& value) { m_s3BucketDetailsHasBeenSet = true; m_s3BucketDetails = std::move(value); }
101 
105  inline Resource& WithS3BucketDetails(const Aws::Vector<S3BucketDetail>& value) { SetS3BucketDetails(value); return *this;}
106 
110  inline Resource& WithS3BucketDetails(Aws::Vector<S3BucketDetail>&& value) { SetS3BucketDetails(std::move(value)); return *this;}
111 
115  inline Resource& AddS3BucketDetails(const S3BucketDetail& value) { m_s3BucketDetailsHasBeenSet = true; m_s3BucketDetails.push_back(value); return *this; }
116 
120  inline Resource& AddS3BucketDetails(S3BucketDetail&& value) { m_s3BucketDetailsHasBeenSet = true; m_s3BucketDetails.push_back(std::move(value)); return *this; }
121 
122 
127  inline const InstanceDetails& GetInstanceDetails() const{ return m_instanceDetails; }
128 
133  inline bool InstanceDetailsHasBeenSet() const { return m_instanceDetailsHasBeenSet; }
134 
139  inline void SetInstanceDetails(const InstanceDetails& value) { m_instanceDetailsHasBeenSet = true; m_instanceDetails = value; }
140 
145  inline void SetInstanceDetails(InstanceDetails&& value) { m_instanceDetailsHasBeenSet = true; m_instanceDetails = std::move(value); }
146 
151  inline Resource& WithInstanceDetails(const InstanceDetails& value) { SetInstanceDetails(value); return *this;}
152 
157  inline Resource& WithInstanceDetails(InstanceDetails&& value) { SetInstanceDetails(std::move(value)); return *this;}
158 
159 
163  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
164 
168  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
169 
173  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
174 
178  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
179 
183  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
184 
188  inline Resource& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
189 
193  inline Resource& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
194 
198  inline Resource& WithResourceType(const char* value) { SetResourceType(value); return *this;}
199 
200  private:
201 
202  AccessKeyDetails m_accessKeyDetails;
203  bool m_accessKeyDetailsHasBeenSet;
204 
205  Aws::Vector<S3BucketDetail> m_s3BucketDetails;
206  bool m_s3BucketDetailsHasBeenSet;
207 
208  InstanceDetails m_instanceDetails;
209  bool m_instanceDetailsHasBeenSet;
210 
211  Aws::String m_resourceType;
212  bool m_resourceTypeHasBeenSet;
213  };
214 
215 } // namespace Model
216 } // namespace GuardDuty
217 } // namespace Aws
Aws::GuardDuty::Model::InstanceDetails
Definition: InstanceDetails.h:38
Aws::GuardDuty::Model::Resource::AccessKeyDetailsHasBeenSet
bool AccessKeyDetailsHasBeenSet() const
Definition: Resource.h:55
Aws::GuardDuty::Model::Resource::operator=
Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::AccessKeyDetails
Definition: AccessKeyDetails.h:32
Aws::GuardDuty::Model::Resource::WithS3BucketDetails
Resource & WithS3BucketDetails(const Aws::Vector< S3BucketDetail > &value)
Definition: Resource.h:105
Aws::GuardDuty::Model::Resource::SetResourceType
void SetResourceType(const char *value)
Definition: Resource.h:183
InstanceDetails.h
Aws::GuardDuty::Model::Resource::SetS3BucketDetails
void SetS3BucketDetails(Aws::Vector< S3BucketDetail > &&value)
Definition: Resource.h:100
Aws::GuardDuty::Model::Resource::SetAccessKeyDetails
void SetAccessKeyDetails(AccessKeyDetails &&value)
Definition: Resource.h:67
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GuardDuty::Model::Resource::Resource
Resource()
Aws::GuardDuty::Model::Resource::WithResourceType
Resource & WithResourceType(const char *value)
Definition: Resource.h:198
Aws::GuardDuty::Model::Resource::WithInstanceDetails
Resource & WithInstanceDetails(InstanceDetails &&value)
Definition: Resource.h:157
AWSVector.h
Aws::GuardDuty::Model::Resource::WithInstanceDetails
Resource & WithInstanceDetails(const InstanceDetails &value)
Definition: Resource.h:151
Aws::GuardDuty::Model::Resource::WithAccessKeyDetails
Resource & WithAccessKeyDetails(AccessKeyDetails &&value)
Definition: Resource.h:79
Aws::GuardDuty::Model::Resource::SetAccessKeyDetails
void SetAccessKeyDetails(const AccessKeyDetails &value)
Definition: Resource.h:61
Aws::GuardDuty::Model::Resource::AddS3BucketDetails
Resource & AddS3BucketDetails(const S3BucketDetail &value)
Definition: Resource.h:115
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::Resource::GetResourceType
const Aws::String & GetResourceType() const
Definition: Resource.h:163
Aws::GuardDuty::Model::Resource::GetInstanceDetails
const InstanceDetails & GetInstanceDetails() const
Definition: Resource.h:127
Aws::GuardDuty::Model::Resource::SetInstanceDetails
void SetInstanceDetails(const InstanceDetails &value)
Definition: Resource.h:139
Aws::GuardDuty::Model::Resource::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: Resource.h:168
Aws::GuardDuty::Model::Resource::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::Resource::SetResourceType
void SetResourceType(Aws::String &&value)
Definition: Resource.h:178
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::Resource::S3BucketDetailsHasBeenSet
bool S3BucketDetailsHasBeenSet() const
Definition: Resource.h:90
Aws::GuardDuty::Model::Resource::AddS3BucketDetails
Resource & AddS3BucketDetails(S3BucketDetail &&value)
Definition: Resource.h:120
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GuardDuty::Model::Resource::SetResourceType
void SetResourceType(const Aws::String &value)
Definition: Resource.h:173
Aws::GuardDuty::Model::Resource::InstanceDetailsHasBeenSet
bool InstanceDetailsHasBeenSet() const
Definition: Resource.h:133
Aws::GuardDuty::Model::Resource::SetInstanceDetails
void SetInstanceDetails(InstanceDetails &&value)
Definition: Resource.h:145
Aws::GuardDuty::Model::Resource::WithResourceType
Resource & WithResourceType(Aws::String &&value)
Definition: Resource.h:193
AccessKeyDetails.h
Aws::GuardDuty::Model::Resource::WithS3BucketDetails
Resource & WithS3BucketDetails(Aws::Vector< S3BucketDetail > &&value)
Definition: Resource.h:110
Aws::GuardDuty::Model::Resource::GetS3BucketDetails
const Aws::Vector< S3BucketDetail > & GetS3BucketDetails() const
Definition: Resource.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::Resource
Definition: Resource.h:37
S3BucketDetail.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::S3BucketDetail
Definition: S3BucketDetail.h:38
Aws::GuardDuty::Model::Resource::Resource
Resource(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::Resource::SetS3BucketDetails
void SetS3BucketDetails(const Aws::Vector< S3BucketDetail > &value)
Definition: Resource.h:95
Aws::GuardDuty::Model::Resource::GetAccessKeyDetails
const AccessKeyDetails & GetAccessKeyDetails() const
Definition: Resource.h:49
Aws::GuardDuty::Model::Resource::WithAccessKeyDetails
Resource & WithAccessKeyDetails(const AccessKeyDetails &value)
Definition: Resource.h:73
Aws::GuardDuty::Model::Resource::WithResourceType
Resource & WithResourceType(const Aws::String &value)
Definition: Resource.h:188