AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3Bucket.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/model/AllowsUnencryptedObjectUploads.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/macie2/model/ServerSideEncryption.h>
12#include <aws/macie2/model/S3BucketOwner.h>
13#include <aws/macie2/model/BucketPublicAccess.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/macie2/model/KeyValuePair.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 Macie2
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_MACIE2_API S3Bucket();
43 AWS_MACIE2_API S3Bucket(Aws::Utils::Json::JsonView jsonValue);
44 AWS_MACIE2_API S3Bucket& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
63 inline const AllowsUnencryptedObjectUploads& GetAllowsUnencryptedObjectUploads() const{ return m_allowsUnencryptedObjectUploads; }
64 inline bool AllowsUnencryptedObjectUploadsHasBeenSet() const { return m_allowsUnencryptedObjectUploadsHasBeenSet; }
65 inline void SetAllowsUnencryptedObjectUploads(const AllowsUnencryptedObjectUploads& value) { m_allowsUnencryptedObjectUploadsHasBeenSet = true; m_allowsUnencryptedObjectUploads = value; }
66 inline void SetAllowsUnencryptedObjectUploads(AllowsUnencryptedObjectUploads&& value) { m_allowsUnencryptedObjectUploadsHasBeenSet = true; m_allowsUnencryptedObjectUploads = std::move(value); }
70
72
75 inline const Aws::String& GetArn() const{ return m_arn; }
76 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
77 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
78 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
79 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
80 inline S3Bucket& WithArn(const Aws::String& value) { SetArn(value); return *this;}
81 inline S3Bucket& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
82 inline S3Bucket& WithArn(const char* value) { SetArn(value); return *this;}
84
86
92 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
93 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
94 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
95 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
96 inline S3Bucket& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
97 inline S3Bucket& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
99
101
104 inline const ServerSideEncryption& GetDefaultServerSideEncryption() const{ return m_defaultServerSideEncryption; }
105 inline bool DefaultServerSideEncryptionHasBeenSet() const { return m_defaultServerSideEncryptionHasBeenSet; }
106 inline void SetDefaultServerSideEncryption(const ServerSideEncryption& value) { m_defaultServerSideEncryptionHasBeenSet = true; m_defaultServerSideEncryption = value; }
107 inline void SetDefaultServerSideEncryption(ServerSideEncryption&& value) { m_defaultServerSideEncryptionHasBeenSet = true; m_defaultServerSideEncryption = std::move(value); }
111
113
116 inline const Aws::String& GetName() const{ return m_name; }
117 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
118 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
119 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
120 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
121 inline S3Bucket& WithName(const Aws::String& value) { SetName(value); return *this;}
122 inline S3Bucket& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
123 inline S3Bucket& WithName(const char* value) { SetName(value); return *this;}
125
127
131 inline const S3BucketOwner& GetOwner() const{ return m_owner; }
132 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
133 inline void SetOwner(const S3BucketOwner& value) { m_ownerHasBeenSet = true; m_owner = value; }
134 inline void SetOwner(S3BucketOwner&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
135 inline S3Bucket& WithOwner(const S3BucketOwner& value) { SetOwner(value); return *this;}
136 inline S3Bucket& WithOwner(S3BucketOwner&& value) { SetOwner(std::move(value)); return *this;}
138
140
144 inline const BucketPublicAccess& GetPublicAccess() const{ return m_publicAccess; }
145 inline bool PublicAccessHasBeenSet() const { return m_publicAccessHasBeenSet; }
146 inline void SetPublicAccess(const BucketPublicAccess& value) { m_publicAccessHasBeenSet = true; m_publicAccess = value; }
147 inline void SetPublicAccess(BucketPublicAccess&& value) { m_publicAccessHasBeenSet = true; m_publicAccess = std::move(value); }
148 inline S3Bucket& WithPublicAccess(const BucketPublicAccess& value) { SetPublicAccess(value); return *this;}
149 inline S3Bucket& WithPublicAccess(BucketPublicAccess&& value) { SetPublicAccess(std::move(value)); return *this;}
151
153
156 inline const Aws::Vector<KeyValuePair>& GetTags() const{ return m_tags; }
157 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
158 inline void SetTags(const Aws::Vector<KeyValuePair>& value) { m_tagsHasBeenSet = true; m_tags = value; }
159 inline void SetTags(Aws::Vector<KeyValuePair>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
160 inline S3Bucket& WithTags(const Aws::Vector<KeyValuePair>& value) { SetTags(value); return *this;}
161 inline S3Bucket& WithTags(Aws::Vector<KeyValuePair>&& value) { SetTags(std::move(value)); return *this;}
162 inline S3Bucket& AddTags(const KeyValuePair& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
163 inline S3Bucket& AddTags(KeyValuePair&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
165 private:
166
167 AllowsUnencryptedObjectUploads m_allowsUnencryptedObjectUploads;
168 bool m_allowsUnencryptedObjectUploadsHasBeenSet = false;
169
170 Aws::String m_arn;
171 bool m_arnHasBeenSet = false;
172
173 Aws::Utils::DateTime m_createdAt;
174 bool m_createdAtHasBeenSet = false;
175
176 ServerSideEncryption m_defaultServerSideEncryption;
177 bool m_defaultServerSideEncryptionHasBeenSet = false;
178
179 Aws::String m_name;
180 bool m_nameHasBeenSet = false;
181
182 S3BucketOwner m_owner;
183 bool m_ownerHasBeenSet = false;
184
185 BucketPublicAccess m_publicAccess;
186 bool m_publicAccessHasBeenSet = false;
187
189 bool m_tagsHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace Macie2
194} // namespace Aws
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition S3Bucket.h:95
S3Bucket & WithName(Aws::String &&value)
Definition S3Bucket.h:122
AWS_MACIE2_API S3Bucket(Aws::Utils::Json::JsonView jsonValue)
S3Bucket & WithTags(const Aws::Vector< KeyValuePair > &value)
Definition S3Bucket.h:160
void SetOwner(S3BucketOwner &&value)
Definition S3Bucket.h:134
S3Bucket & WithArn(const char *value)
Definition S3Bucket.h:82
S3Bucket & WithAllowsUnencryptedObjectUploads(AllowsUnencryptedObjectUploads &&value)
Definition S3Bucket.h:68
S3Bucket & WithOwner(const S3BucketOwner &value)
Definition S3Bucket.h:135
void SetDefaultServerSideEncryption(const ServerSideEncryption &value)
Definition S3Bucket.h:106
void SetName(const Aws::String &value)
Definition S3Bucket.h:118
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition S3Bucket.h:94
S3Bucket & WithName(const char *value)
Definition S3Bucket.h:123
const Aws::String & GetArn() const
Definition S3Bucket.h:75
S3Bucket & WithArn(const Aws::String &value)
Definition S3Bucket.h:80
S3Bucket & WithDefaultServerSideEncryption(const ServerSideEncryption &value)
Definition S3Bucket.h:108
const Aws::Vector< KeyValuePair > & GetTags() const
Definition S3Bucket.h:156
S3Bucket & AddTags(const KeyValuePair &value)
Definition S3Bucket.h:162
void SetDefaultServerSideEncryption(ServerSideEncryption &&value)
Definition S3Bucket.h:107
void SetAllowsUnencryptedObjectUploads(AllowsUnencryptedObjectUploads &&value)
Definition S3Bucket.h:66
const AllowsUnencryptedObjectUploads & GetAllowsUnencryptedObjectUploads() const
Definition S3Bucket.h:63
void SetArn(Aws::String &&value)
Definition S3Bucket.h:78
void SetPublicAccess(BucketPublicAccess &&value)
Definition S3Bucket.h:147
S3Bucket & WithArn(Aws::String &&value)
Definition S3Bucket.h:81
AWS_MACIE2_API S3Bucket & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAllowsUnencryptedObjectUploads(const AllowsUnencryptedObjectUploads &value)
Definition S3Bucket.h:65
S3Bucket & WithName(const Aws::String &value)
Definition S3Bucket.h:121
S3Bucket & WithOwner(S3BucketOwner &&value)
Definition S3Bucket.h:136
void SetArn(const char *value)
Definition S3Bucket.h:79
bool PublicAccessHasBeenSet() const
Definition S3Bucket.h:145
const Aws::String & GetName() const
Definition S3Bucket.h:116
const BucketPublicAccess & GetPublicAccess() const
Definition S3Bucket.h:144
S3Bucket & WithAllowsUnencryptedObjectUploads(const AllowsUnencryptedObjectUploads &value)
Definition S3Bucket.h:67
void SetName(Aws::String &&value)
Definition S3Bucket.h:119
S3Bucket & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition S3Bucket.h:96
void SetName(const char *value)
Definition S3Bucket.h:120
bool AllowsUnencryptedObjectUploadsHasBeenSet() const
Definition S3Bucket.h:64
void SetOwner(const S3BucketOwner &value)
Definition S3Bucket.h:133
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
bool CreatedAtHasBeenSet() const
Definition S3Bucket.h:93
S3Bucket & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition S3Bucket.h:97
S3Bucket & WithDefaultServerSideEncryption(ServerSideEncryption &&value)
Definition S3Bucket.h:109
S3Bucket & WithPublicAccess(BucketPublicAccess &&value)
Definition S3Bucket.h:149
S3Bucket & WithPublicAccess(const BucketPublicAccess &value)
Definition S3Bucket.h:148
void SetArn(const Aws::String &value)
Definition S3Bucket.h:77
void SetTags(Aws::Vector< KeyValuePair > &&value)
Definition S3Bucket.h:159
S3Bucket & AddTags(KeyValuePair &&value)
Definition S3Bucket.h:163
const ServerSideEncryption & GetDefaultServerSideEncryption() const
Definition S3Bucket.h:104
const Aws::Utils::DateTime & GetCreatedAt() const
Definition S3Bucket.h:92
S3Bucket & WithTags(Aws::Vector< KeyValuePair > &&value)
Definition S3Bucket.h:161
const S3BucketOwner & GetOwner() const
Definition S3Bucket.h:131
void SetPublicAccess(const BucketPublicAccess &value)
Definition S3Bucket.h:146
bool DefaultServerSideEncryptionHasBeenSet() const
Definition S3Bucket.h:105
void SetTags(const Aws::Vector< KeyValuePair > &value)
Definition S3Bucket.h:158
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue