AWS SDK for C++  1.9.110
AWS SDK for C++
S3BucketDetail.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24  class JsonView;
25 } // namespace Json
26 } // namespace Utils
27 namespace GuardDuty
28 {
29 namespace Model
30 {
31 
38  {
39  public:
44 
45 
49  inline const Aws::String& GetArn() const{ return m_arn; }
50 
54  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
55 
59  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
60 
64  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
65 
69  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
70 
74  inline S3BucketDetail& WithArn(const Aws::String& value) { SetArn(value); return *this;}
75 
79  inline S3BucketDetail& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
80 
84  inline S3BucketDetail& WithArn(const char* value) { SetArn(value); return *this;}
85 
86 
90  inline const Aws::String& GetName() const{ return m_name; }
91 
95  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
96 
100  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
101 
105  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
106 
110  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
111 
115  inline S3BucketDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
116 
120  inline S3BucketDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
121 
125  inline S3BucketDetail& WithName(const char* value) { SetName(value); return *this;}
126 
127 
131  inline const Aws::String& GetType() const{ return m_type; }
132 
136  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
137 
141  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
142 
146  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
147 
151  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
152 
156  inline S3BucketDetail& WithType(const Aws::String& value) { SetType(value); return *this;}
157 
161  inline S3BucketDetail& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
162 
166  inline S3BucketDetail& WithType(const char* value) { SetType(value); return *this;}
167 
168 
172  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
173 
177  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
178 
182  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
183 
187  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
188 
192  inline S3BucketDetail& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
193 
197  inline S3BucketDetail& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
198 
199 
203  inline const Owner& GetOwner() const{ return m_owner; }
204 
208  inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
209 
213  inline void SetOwner(const Owner& value) { m_ownerHasBeenSet = true; m_owner = value; }
214 
218  inline void SetOwner(Owner&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
219 
223  inline S3BucketDetail& WithOwner(const Owner& value) { SetOwner(value); return *this;}
224 
228  inline S3BucketDetail& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;}
229 
230 
234  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
235 
239  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
240 
244  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
245 
249  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
250 
254  inline S3BucketDetail& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
255 
259  inline S3BucketDetail& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
260 
264  inline S3BucketDetail& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
265 
269  inline S3BucketDetail& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
270 
271 
275  inline const DefaultServerSideEncryption& GetDefaultServerSideEncryption() const{ return m_defaultServerSideEncryption; }
276 
280  inline bool DefaultServerSideEncryptionHasBeenSet() const { return m_defaultServerSideEncryptionHasBeenSet; }
281 
285  inline void SetDefaultServerSideEncryption(const DefaultServerSideEncryption& value) { m_defaultServerSideEncryptionHasBeenSet = true; m_defaultServerSideEncryption = value; }
286 
290  inline void SetDefaultServerSideEncryption(DefaultServerSideEncryption&& value) { m_defaultServerSideEncryptionHasBeenSet = true; m_defaultServerSideEncryption = std::move(value); }
291 
295  inline S3BucketDetail& WithDefaultServerSideEncryption(const DefaultServerSideEncryption& value) { SetDefaultServerSideEncryption(value); return *this;}
296 
300  inline S3BucketDetail& WithDefaultServerSideEncryption(DefaultServerSideEncryption&& value) { SetDefaultServerSideEncryption(std::move(value)); return *this;}
301 
302 
306  inline const PublicAccess& GetPublicAccess() const{ return m_publicAccess; }
307 
311  inline bool PublicAccessHasBeenSet() const { return m_publicAccessHasBeenSet; }
312 
316  inline void SetPublicAccess(const PublicAccess& value) { m_publicAccessHasBeenSet = true; m_publicAccess = value; }
317 
321  inline void SetPublicAccess(PublicAccess&& value) { m_publicAccessHasBeenSet = true; m_publicAccess = std::move(value); }
322 
326  inline S3BucketDetail& WithPublicAccess(const PublicAccess& value) { SetPublicAccess(value); return *this;}
327 
331  inline S3BucketDetail& WithPublicAccess(PublicAccess&& value) { SetPublicAccess(std::move(value)); return *this;}
332 
333  private:
334 
335  Aws::String m_arn;
336  bool m_arnHasBeenSet;
337 
338  Aws::String m_name;
339  bool m_nameHasBeenSet;
340 
341  Aws::String m_type;
342  bool m_typeHasBeenSet;
343 
344  Aws::Utils::DateTime m_createdAt;
345  bool m_createdAtHasBeenSet;
346 
347  Owner m_owner;
348  bool m_ownerHasBeenSet;
349 
350  Aws::Vector<Tag> m_tags;
351  bool m_tagsHasBeenSet;
352 
353  DefaultServerSideEncryption m_defaultServerSideEncryption;
354  bool m_defaultServerSideEncryptionHasBeenSet;
355 
356  PublicAccess m_publicAccess;
357  bool m_publicAccessHasBeenSet;
358  };
359 
360 } // namespace Model
361 } // namespace GuardDuty
362 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::GuardDuty::Model::S3BucketDetail::S3BucketDetail
S3BucketDetail(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::S3BucketDetail::GetPublicAccess
const PublicAccess & GetPublicAccess() const
Definition: S3BucketDetail.h:306
Aws::GuardDuty::Model::S3BucketDetail::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: S3BucketDetail.h:249
Aws::GuardDuty::Model::S3BucketDetail::WithCreatedAt
S3BucketDetail & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: S3BucketDetail.h:197
Aws::GuardDuty::Model::S3BucketDetail::WithOwner
S3BucketDetail & WithOwner(const Owner &value)
Definition: S3BucketDetail.h:223
Aws::GuardDuty::Model::S3BucketDetail::WithArn
S3BucketDetail & WithArn(const char *value)
Definition: S3BucketDetail.h:84
Aws::GuardDuty::Model::S3BucketDetail::SetArn
void SetArn(Aws::String &&value)
Definition: S3BucketDetail.h:64
Aws::GuardDuty::Model::S3BucketDetail::WithType
S3BucketDetail & WithType(const char *value)
Definition: S3BucketDetail.h:166
Aws::GuardDuty::Model::S3BucketDetail::SetName
void SetName(Aws::String &&value)
Definition: S3BucketDetail.h:105
Aws::GuardDuty::Model::S3BucketDetail::WithDefaultServerSideEncryption
S3BucketDetail & WithDefaultServerSideEncryption(DefaultServerSideEncryption &&value)
Definition: S3BucketDetail.h:300
PublicAccess.h
Aws::GuardDuty::Model::S3BucketDetail::AddTags
S3BucketDetail & AddTags(Tag &&value)
Definition: S3BucketDetail.h:269
DateTime.h
Aws::GuardDuty::Model::S3BucketDetail::WithArn
S3BucketDetail & WithArn(const Aws::String &value)
Definition: S3BucketDetail.h:74
Aws::GuardDuty::Model::S3BucketDetail::operator=
S3BucketDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
Owner.h
Aws::GuardDuty::Model::S3BucketDetail::WithType
S3BucketDetail & WithType(const Aws::String &value)
Definition: S3BucketDetail.h:156
Aws::GuardDuty::Model::S3BucketDetail::WithTags
S3BucketDetail & WithTags(const Aws::Vector< Tag > &value)
Definition: S3BucketDetail.h:254
Aws::GuardDuty::Model::S3BucketDetail::WithCreatedAt
S3BucketDetail & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: S3BucketDetail.h:192
Aws::GuardDuty::Model::S3BucketDetail::WithTags
S3BucketDetail & WithTags(Aws::Vector< Tag > &&value)
Definition: S3BucketDetail.h:259
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GuardDuty::Model::S3BucketDetail::SetName
void SetName(const Aws::String &value)
Definition: S3BucketDetail.h:100
AWSVector.h
Aws::GuardDuty::Model::S3BucketDetail::GetType
const Aws::String & GetType() const
Definition: S3BucketDetail.h:131
Aws::GuardDuty::Model::S3BucketDetail::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: S3BucketDetail.h:239
Aws::GuardDuty::Model::S3BucketDetail::AddTags
S3BucketDetail & AddTags(const Tag &value)
Definition: S3BucketDetail.h:264
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::S3BucketDetail::WithType
S3BucketDetail & WithType(Aws::String &&value)
Definition: S3BucketDetail.h:161
Aws::GuardDuty::Model::S3BucketDetail::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: S3BucketDetail.h:177
Aws::GuardDuty::Model::S3BucketDetail::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: S3BucketDetail.h:136
Aws::GuardDuty::Model::S3BucketDetail::SetOwner
void SetOwner(Owner &&value)
Definition: S3BucketDetail.h:218
Aws::GuardDuty::Model::S3BucketDetail::SetName
void SetName(const char *value)
Definition: S3BucketDetail.h:110
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::S3BucketDetail::WithName
S3BucketDetail & WithName(const Aws::String &value)
Definition: S3BucketDetail.h:115
Aws::GuardDuty::Model::S3BucketDetail::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: S3BucketDetail.h:234
Aws::GuardDuty::Model::Tag
Definition: Tag.h:33
Aws::GuardDuty::Model::S3BucketDetail::GetArn
const Aws::String & GetArn() const
Definition: S3BucketDetail.h:49
Aws::GuardDuty::Model::S3BucketDetail::SetType
void SetType(const Aws::String &value)
Definition: S3BucketDetail.h:141
Aws::GuardDuty::Model::S3BucketDetail::SetPublicAccess
void SetPublicAccess(PublicAccess &&value)
Definition: S3BucketDetail.h:321
Aws::GuardDuty::Model::S3BucketDetail::WithName
S3BucketDetail & WithName(const char *value)
Definition: S3BucketDetail.h:125
Aws::GuardDuty::Model::S3BucketDetail::GetOwner
const Owner & GetOwner() const
Definition: S3BucketDetail.h:203
Aws::GuardDuty::Model::DefaultServerSideEncryption
Definition: DefaultServerSideEncryption.h:35
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::GuardDuty::Model::PublicAccess
Definition: PublicAccess.h:34
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GuardDuty::Model::S3BucketDetail::SetType
void SetType(const char *value)
Definition: S3BucketDetail.h:151
Aws::GuardDuty::Model::S3BucketDetail::S3BucketDetail
S3BucketDetail()
Aws::GuardDuty::Model::S3BucketDetail::GetDefaultServerSideEncryption
const DefaultServerSideEncryption & GetDefaultServerSideEncryption() const
Definition: S3BucketDetail.h:275
Aws::GuardDuty::Model::S3BucketDetail::WithDefaultServerSideEncryption
S3BucketDetail & WithDefaultServerSideEncryption(const DefaultServerSideEncryption &value)
Definition: S3BucketDetail.h:295
Aws::GuardDuty::Model::S3BucketDetail::SetDefaultServerSideEncryption
void SetDefaultServerSideEncryption(const DefaultServerSideEncryption &value)
Definition: S3BucketDetail.h:285
Aws::GuardDuty::Model::S3BucketDetail::DefaultServerSideEncryptionHasBeenSet
bool DefaultServerSideEncryptionHasBeenSet() const
Definition: S3BucketDetail.h:280
Aws::GuardDuty::Model::S3BucketDetail::SetType
void SetType(Aws::String &&value)
Definition: S3BucketDetail.h:146
Aws::GuardDuty::Model::S3BucketDetail::GetName
const Aws::String & GetName() const
Definition: S3BucketDetail.h:90
Aws::GuardDuty::Model::S3BucketDetail::NameHasBeenSet
bool NameHasBeenSet() const
Definition: S3BucketDetail.h:95
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::S3BucketDetail::SetArn
void SetArn(const char *value)
Definition: S3BucketDetail.h:69
Aws::GuardDuty::Model::S3BucketDetail::WithPublicAccess
S3BucketDetail & WithPublicAccess(const PublicAccess &value)
Definition: S3BucketDetail.h:326
Aws::GuardDuty::Model::S3BucketDetail::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: S3BucketDetail.h:244
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::S3BucketDetail::SetPublicAccess
void SetPublicAccess(const PublicAccess &value)
Definition: S3BucketDetail.h:316
Tag.h
Aws::GuardDuty::Model::S3BucketDetail
Definition: S3BucketDetail.h:38
Aws::GuardDuty::Model::S3BucketDetail::WithOwner
S3BucketDetail & WithOwner(Owner &&value)
Definition: S3BucketDetail.h:228
Aws::GuardDuty::Model::S3BucketDetail::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: S3BucketDetail.h:172
Aws::GuardDuty::Model::S3BucketDetail::WithArn
S3BucketDetail & WithArn(Aws::String &&value)
Definition: S3BucketDetail.h:79
DefaultServerSideEncryption.h
Aws::GuardDuty::Model::S3BucketDetail::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::S3BucketDetail::OwnerHasBeenSet
bool OwnerHasBeenSet() const
Definition: S3BucketDetail.h:208
Aws::GuardDuty::Model::S3BucketDetail::WithName
S3BucketDetail & WithName(Aws::String &&value)
Definition: S3BucketDetail.h:120
Aws::GuardDuty::Model::S3BucketDetail::SetDefaultServerSideEncryption
void SetDefaultServerSideEncryption(DefaultServerSideEncryption &&value)
Definition: S3BucketDetail.h:290
Aws::GuardDuty::Model::S3BucketDetail::SetArn
void SetArn(const Aws::String &value)
Definition: S3BucketDetail.h:59
Aws::GuardDuty::Model::S3BucketDetail::PublicAccessHasBeenSet
bool PublicAccessHasBeenSet() const
Definition: S3BucketDetail.h:311
Aws::GuardDuty::Model::S3BucketDetail::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: S3BucketDetail.h:187
Aws::GuardDuty::Model::S3BucketDetail::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: S3BucketDetail.h:54
Aws::GuardDuty::Model::S3BucketDetail::WithPublicAccess
S3BucketDetail & WithPublicAccess(PublicAccess &&value)
Definition: S3BucketDetail.h:331
Aws::GuardDuty::Model::Owner
Definition: Owner.h:32
Aws::GuardDuty::Model::S3BucketDetail::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: S3BucketDetail.h:182
Aws::GuardDuty::Model::S3BucketDetail::SetOwner
void SetOwner(const Owner &value)
Definition: S3BucketDetail.h:213