AWS SDK for C++  1.9.155
AWS SDK for C++
S3BucketConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace AccessAnalyzer
27 {
28 namespace Model
29 {
30 
49  {
50  public:
55 
56 
61  inline const Aws::Map<Aws::String, S3AccessPointConfiguration>& GetAccessPoints() const{ return m_accessPoints; }
62 
67  inline bool AccessPointsHasBeenSet() const { return m_accessPointsHasBeenSet; }
68 
73  inline void SetAccessPoints(const Aws::Map<Aws::String, S3AccessPointConfiguration>& value) { m_accessPointsHasBeenSet = true; m_accessPoints = value; }
74 
79  inline void SetAccessPoints(Aws::Map<Aws::String, S3AccessPointConfiguration>&& value) { m_accessPointsHasBeenSet = true; m_accessPoints = std::move(value); }
80 
85  inline S3BucketConfiguration& WithAccessPoints(const Aws::Map<Aws::String, S3AccessPointConfiguration>& value) { SetAccessPoints(value); return *this;}
86 
91  inline S3BucketConfiguration& WithAccessPoints(Aws::Map<Aws::String, S3AccessPointConfiguration>&& value) { SetAccessPoints(std::move(value)); return *this;}
92 
97  inline S3BucketConfiguration& AddAccessPoints(const Aws::String& key, const S3AccessPointConfiguration& value) { m_accessPointsHasBeenSet = true; m_accessPoints.emplace(key, value); return *this; }
98 
103  inline S3BucketConfiguration& AddAccessPoints(Aws::String&& key, const S3AccessPointConfiguration& value) { m_accessPointsHasBeenSet = true; m_accessPoints.emplace(std::move(key), value); return *this; }
104 
109  inline S3BucketConfiguration& AddAccessPoints(const Aws::String& key, S3AccessPointConfiguration&& value) { m_accessPointsHasBeenSet = true; m_accessPoints.emplace(key, std::move(value)); return *this; }
110 
115  inline S3BucketConfiguration& AddAccessPoints(Aws::String&& key, S3AccessPointConfiguration&& value) { m_accessPointsHasBeenSet = true; m_accessPoints.emplace(std::move(key), std::move(value)); return *this; }
116 
121  inline S3BucketConfiguration& AddAccessPoints(const char* key, S3AccessPointConfiguration&& value) { m_accessPointsHasBeenSet = true; m_accessPoints.emplace(key, std::move(value)); return *this; }
122 
127  inline S3BucketConfiguration& AddAccessPoints(const char* key, const S3AccessPointConfiguration& value) { m_accessPointsHasBeenSet = true; m_accessPoints.emplace(key, value); return *this; }
128 
129 
137  inline const Aws::Vector<S3BucketAclGrantConfiguration>& GetBucketAclGrants() const{ return m_bucketAclGrants; }
138 
146  inline bool BucketAclGrantsHasBeenSet() const { return m_bucketAclGrantsHasBeenSet; }
147 
155  inline void SetBucketAclGrants(const Aws::Vector<S3BucketAclGrantConfiguration>& value) { m_bucketAclGrantsHasBeenSet = true; m_bucketAclGrants = value; }
156 
164  inline void SetBucketAclGrants(Aws::Vector<S3BucketAclGrantConfiguration>&& value) { m_bucketAclGrantsHasBeenSet = true; m_bucketAclGrants = std::move(value); }
165 
173  inline S3BucketConfiguration& WithBucketAclGrants(const Aws::Vector<S3BucketAclGrantConfiguration>& value) { SetBucketAclGrants(value); return *this;}
174 
182  inline S3BucketConfiguration& WithBucketAclGrants(Aws::Vector<S3BucketAclGrantConfiguration>&& value) { SetBucketAclGrants(std::move(value)); return *this;}
183 
191  inline S3BucketConfiguration& AddBucketAclGrants(const S3BucketAclGrantConfiguration& value) { m_bucketAclGrantsHasBeenSet = true; m_bucketAclGrants.push_back(value); return *this; }
192 
200  inline S3BucketConfiguration& AddBucketAclGrants(S3BucketAclGrantConfiguration&& value) { m_bucketAclGrantsHasBeenSet = true; m_bucketAclGrants.push_back(std::move(value)); return *this; }
201 
202 
206  inline const Aws::String& GetBucketPolicy() const{ return m_bucketPolicy; }
207 
211  inline bool BucketPolicyHasBeenSet() const { return m_bucketPolicyHasBeenSet; }
212 
216  inline void SetBucketPolicy(const Aws::String& value) { m_bucketPolicyHasBeenSet = true; m_bucketPolicy = value; }
217 
221  inline void SetBucketPolicy(Aws::String&& value) { m_bucketPolicyHasBeenSet = true; m_bucketPolicy = std::move(value); }
222 
226  inline void SetBucketPolicy(const char* value) { m_bucketPolicyHasBeenSet = true; m_bucketPolicy.assign(value); }
227 
231  inline S3BucketConfiguration& WithBucketPolicy(const Aws::String& value) { SetBucketPolicy(value); return *this;}
232 
236  inline S3BucketConfiguration& WithBucketPolicy(Aws::String&& value) { SetBucketPolicy(std::move(value)); return *this;}
237 
241  inline S3BucketConfiguration& WithBucketPolicy(const char* value) { SetBucketPolicy(value); return *this;}
242 
243 
247  inline const S3PublicAccessBlockConfiguration& GetBucketPublicAccessBlock() const{ return m_bucketPublicAccessBlock; }
248 
252  inline bool BucketPublicAccessBlockHasBeenSet() const { return m_bucketPublicAccessBlockHasBeenSet; }
253 
257  inline void SetBucketPublicAccessBlock(const S3PublicAccessBlockConfiguration& value) { m_bucketPublicAccessBlockHasBeenSet = true; m_bucketPublicAccessBlock = value; }
258 
262  inline void SetBucketPublicAccessBlock(S3PublicAccessBlockConfiguration&& value) { m_bucketPublicAccessBlockHasBeenSet = true; m_bucketPublicAccessBlock = std::move(value); }
263 
267  inline S3BucketConfiguration& WithBucketPublicAccessBlock(const S3PublicAccessBlockConfiguration& value) { SetBucketPublicAccessBlock(value); return *this;}
268 
272  inline S3BucketConfiguration& WithBucketPublicAccessBlock(S3PublicAccessBlockConfiguration&& value) { SetBucketPublicAccessBlock(std::move(value)); return *this;}
273 
274  private:
275 
277  bool m_accessPointsHasBeenSet;
278 
280  bool m_bucketAclGrantsHasBeenSet;
281 
282  Aws::String m_bucketPolicy;
283  bool m_bucketPolicyHasBeenSet;
284 
285  S3PublicAccessBlockConfiguration m_bucketPublicAccessBlock;
286  bool m_bucketPublicAccessBlockHasBeenSet;
287  };
288 
289 } // namespace Model
290 } // namespace AccessAnalyzer
291 } // namespace Aws
Aws::AccessAnalyzer::Model::S3BucketConfiguration::AddAccessPoints
S3BucketConfiguration & AddAccessPoints(Aws::String &&key, S3AccessPointConfiguration &&value)
Definition: S3BucketConfiguration.h:115
S3BucketAclGrantConfiguration.h
Aws::AccessAnalyzer::Model::S3BucketConfiguration::SetBucketPolicy
void SetBucketPolicy(Aws::String &&value)
Definition: S3BucketConfiguration.h:221
Aws::AccessAnalyzer::Model::S3BucketConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::S3BucketAclGrantConfiguration
Definition: S3BucketAclGrantConfiguration.h:36
Aws::AccessAnalyzer::Model::S3BucketConfiguration::SetBucketPolicy
void SetBucketPolicy(const char *value)
Definition: S3BucketConfiguration.h:226
Aws::AccessAnalyzer::Model::S3BucketConfiguration::GetBucketPolicy
const Aws::String & GetBucketPolicy() const
Definition: S3BucketConfiguration.h:206
Aws::AccessAnalyzer::Model::S3BucketConfiguration::BucketPolicyHasBeenSet
bool BucketPolicyHasBeenSet() const
Definition: S3BucketConfiguration.h:211
Aws::AccessAnalyzer::Model::S3BucketConfiguration::operator=
S3BucketConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::AccessAnalyzer::Model::S3BucketConfiguration
Definition: S3BucketConfiguration.h:49
Aws::AccessAnalyzer::Model::S3BucketConfiguration::S3BucketConfiguration
S3BucketConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::S3BucketConfiguration::WithAccessPoints
S3BucketConfiguration & WithAccessPoints(const Aws::Map< Aws::String, S3AccessPointConfiguration > &value)
Definition: S3BucketConfiguration.h:85
Aws::AccessAnalyzer::Model::S3BucketConfiguration::SetBucketPolicy
void SetBucketPolicy(const Aws::String &value)
Definition: S3BucketConfiguration.h:216
Aws::AccessAnalyzer::Model::S3BucketConfiguration::SetBucketPublicAccessBlock
void SetBucketPublicAccessBlock(const S3PublicAccessBlockConfiguration &value)
Definition: S3BucketConfiguration.h:257
Aws::AccessAnalyzer::Model::S3BucketConfiguration::AddAccessPoints
S3BucketConfiguration & AddAccessPoints(const Aws::String &key, const S3AccessPointConfiguration &value)
Definition: S3BucketConfiguration.h:97
Aws::AccessAnalyzer::Model::S3BucketConfiguration::BucketPublicAccessBlockHasBeenSet
bool BucketPublicAccessBlockHasBeenSet() const
Definition: S3BucketConfiguration.h:252
Aws::AccessAnalyzer::Model::S3BucketConfiguration::AddAccessPoints
S3BucketConfiguration & AddAccessPoints(const char *key, const S3AccessPointConfiguration &value)
Definition: S3BucketConfiguration.h:127
Aws::AccessAnalyzer::Model::S3BucketConfiguration::WithBucketPublicAccessBlock
S3BucketConfiguration & WithBucketPublicAccessBlock(S3PublicAccessBlockConfiguration &&value)
Definition: S3BucketConfiguration.h:272
Aws::AccessAnalyzer::Model::S3BucketConfiguration::WithBucketPolicy
S3BucketConfiguration & WithBucketPolicy(Aws::String &&value)
Definition: S3BucketConfiguration.h:236
Aws::AccessAnalyzer::Model::S3BucketConfiguration::WithAccessPoints
S3BucketConfiguration & WithAccessPoints(Aws::Map< Aws::String, S3AccessPointConfiguration > &&value)
Definition: S3BucketConfiguration.h:91
Aws::AccessAnalyzer::Model::S3BucketConfiguration::SetBucketPublicAccessBlock
void SetBucketPublicAccessBlock(S3PublicAccessBlockConfiguration &&value)
Definition: S3BucketConfiguration.h:262
Aws::AccessAnalyzer::Model::S3BucketConfiguration::SetBucketAclGrants
void SetBucketAclGrants(const Aws::Vector< S3BucketAclGrantConfiguration > &value)
Definition: S3BucketConfiguration.h:155
Aws::AccessAnalyzer::Model::S3BucketConfiguration::BucketAclGrantsHasBeenSet
bool BucketAclGrantsHasBeenSet() const
Definition: S3BucketConfiguration.h:146
Aws::AccessAnalyzer::Model::S3BucketConfiguration::AddBucketAclGrants
S3BucketConfiguration & AddBucketAclGrants(S3BucketAclGrantConfiguration &&value)
Definition: S3BucketConfiguration.h:200
Aws::AccessAnalyzer::Model::S3BucketConfiguration::AddBucketAclGrants
S3BucketConfiguration & AddBucketAclGrants(const S3BucketAclGrantConfiguration &value)
Definition: S3BucketConfiguration.h:191
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::AccessAnalyzer::Model::S3BucketConfiguration::S3BucketConfiguration
S3BucketConfiguration()
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::S3BucketConfiguration::SetAccessPoints
void SetAccessPoints(Aws::Map< Aws::String, S3AccessPointConfiguration > &&value)
Definition: S3BucketConfiguration.h:79
Aws::AccessAnalyzer::Model::S3BucketConfiguration::WithBucketPolicy
S3BucketConfiguration & WithBucketPolicy(const char *value)
Definition: S3BucketConfiguration.h:241
Aws::AccessAnalyzer::Model::S3BucketConfiguration::WithBucketAclGrants
S3BucketConfiguration & WithBucketAclGrants(const Aws::Vector< S3BucketAclGrantConfiguration > &value)
Definition: S3BucketConfiguration.h:173
Aws::AccessAnalyzer::Model::S3BucketConfiguration::WithBucketAclGrants
S3BucketConfiguration & WithBucketAclGrants(Aws::Vector< S3BucketAclGrantConfiguration > &&value)
Definition: S3BucketConfiguration.h:182
Aws::AccessAnalyzer::Model::S3BucketConfiguration::AddAccessPoints
S3BucketConfiguration & AddAccessPoints(const Aws::String &key, S3AccessPointConfiguration &&value)
Definition: S3BucketConfiguration.h:109
Aws::AccessAnalyzer::Model::S3BucketConfiguration::AddAccessPoints
S3BucketConfiguration & AddAccessPoints(Aws::String &&key, const S3AccessPointConfiguration &value)
Definition: S3BucketConfiguration.h:103
Aws::AccessAnalyzer::Model::S3BucketConfiguration::SetBucketAclGrants
void SetBucketAclGrants(Aws::Vector< S3BucketAclGrantConfiguration > &&value)
Definition: S3BucketConfiguration.h:164
Aws::AccessAnalyzer::Model::S3BucketConfiguration::GetBucketAclGrants
const Aws::Vector< S3BucketAclGrantConfiguration > & GetBucketAclGrants() const
Definition: S3BucketConfiguration.h:137
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration
Definition: S3AccessPointConfiguration.h:44
Aws::AccessAnalyzer::Model::S3BucketConfiguration::WithBucketPublicAccessBlock
S3BucketConfiguration & WithBucketPublicAccessBlock(const S3PublicAccessBlockConfiguration &value)
Definition: S3BucketConfiguration.h:267
S3PublicAccessBlockConfiguration.h
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::S3BucketConfiguration::AddAccessPoints
S3BucketConfiguration & AddAccessPoints(const char *key, S3AccessPointConfiguration &&value)
Definition: S3BucketConfiguration.h:121
Aws::AccessAnalyzer::Model::S3BucketConfiguration::GetAccessPoints
const Aws::Map< Aws::String, S3AccessPointConfiguration > & GetAccessPoints() const
Definition: S3BucketConfiguration.h:61
Aws::AccessAnalyzer::Model::S3BucketConfiguration::AccessPointsHasBeenSet
bool AccessPointsHasBeenSet() const
Definition: S3BucketConfiguration.h:67
Aws::AccessAnalyzer::Model::S3BucketConfiguration::SetAccessPoints
void SetAccessPoints(const Aws::Map< Aws::String, S3AccessPointConfiguration > &value)
Definition: S3BucketConfiguration.h:73
Aws::AccessAnalyzer::Model::S3PublicAccessBlockConfiguration
Definition: S3PublicAccessBlockConfiguration.h:39
Aws::AccessAnalyzer::Model::S3BucketConfiguration::WithBucketPolicy
S3BucketConfiguration & WithBucketPolicy(const Aws::String &value)
Definition: S3BucketConfiguration.h:231
Aws::AccessAnalyzer::Model::S3BucketConfiguration::GetBucketPublicAccessBlock
const S3PublicAccessBlockConfiguration & GetBucketPublicAccessBlock() const
Definition: S3BucketConfiguration.h:247
AWSMap.h
S3AccessPointConfiguration.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19