AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3BucketConfiguration.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/accessanalyzer/model/S3PublicAccessBlockConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/accessanalyzer/model/S3BucketAclGrantConfiguration.h>
13#include <aws/accessanalyzer/model/S3AccessPointConfiguration.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace AccessAnalyzer
27{
28namespace Model
29{
30
49 {
50 public:
51 AWS_ACCESSANALYZER_API S3BucketConfiguration();
52 AWS_ACCESSANALYZER_API S3BucketConfiguration(Aws::Utils::Json::JsonView jsonValue);
54 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
55
56
58
61 inline const Aws::String& GetBucketPolicy() const{ return m_bucketPolicy; }
62 inline bool BucketPolicyHasBeenSet() const { return m_bucketPolicyHasBeenSet; }
63 inline void SetBucketPolicy(const Aws::String& value) { m_bucketPolicyHasBeenSet = true; m_bucketPolicy = value; }
64 inline void SetBucketPolicy(Aws::String&& value) { m_bucketPolicyHasBeenSet = true; m_bucketPolicy = std::move(value); }
65 inline void SetBucketPolicy(const char* value) { m_bucketPolicyHasBeenSet = true; m_bucketPolicy.assign(value); }
66 inline S3BucketConfiguration& WithBucketPolicy(const Aws::String& value) { SetBucketPolicy(value); return *this;}
67 inline S3BucketConfiguration& WithBucketPolicy(Aws::String&& value) { SetBucketPolicy(std::move(value)); return *this;}
68 inline S3BucketConfiguration& WithBucketPolicy(const char* value) { SetBucketPolicy(value); return *this;}
70
72
79 inline const Aws::Vector<S3BucketAclGrantConfiguration>& GetBucketAclGrants() const{ return m_bucketAclGrants; }
80 inline bool BucketAclGrantsHasBeenSet() const { return m_bucketAclGrantsHasBeenSet; }
81 inline void SetBucketAclGrants(const Aws::Vector<S3BucketAclGrantConfiguration>& value) { m_bucketAclGrantsHasBeenSet = true; m_bucketAclGrants = value; }
82 inline void SetBucketAclGrants(Aws::Vector<S3BucketAclGrantConfiguration>&& value) { m_bucketAclGrantsHasBeenSet = true; m_bucketAclGrants = std::move(value); }
85 inline S3BucketConfiguration& AddBucketAclGrants(const S3BucketAclGrantConfiguration& value) { m_bucketAclGrantsHasBeenSet = true; m_bucketAclGrants.push_back(value); return *this; }
86 inline S3BucketConfiguration& AddBucketAclGrants(S3BucketAclGrantConfiguration&& value) { m_bucketAclGrantsHasBeenSet = true; m_bucketAclGrants.push_back(std::move(value)); return *this; }
88
90
93 inline const S3PublicAccessBlockConfiguration& GetBucketPublicAccessBlock() const{ return m_bucketPublicAccessBlock; }
94 inline bool BucketPublicAccessBlockHasBeenSet() const { return m_bucketPublicAccessBlockHasBeenSet; }
95 inline void SetBucketPublicAccessBlock(const S3PublicAccessBlockConfiguration& value) { m_bucketPublicAccessBlockHasBeenSet = true; m_bucketPublicAccessBlock = value; }
96 inline void SetBucketPublicAccessBlock(S3PublicAccessBlockConfiguration&& value) { m_bucketPublicAccessBlockHasBeenSet = true; m_bucketPublicAccessBlock = std::move(value); }
100
102
106 inline const Aws::Map<Aws::String, S3AccessPointConfiguration>& GetAccessPoints() const{ return m_accessPoints; }
107 inline bool AccessPointsHasBeenSet() const { return m_accessPointsHasBeenSet; }
108 inline void SetAccessPoints(const Aws::Map<Aws::String, S3AccessPointConfiguration>& value) { m_accessPointsHasBeenSet = true; m_accessPoints = value; }
109 inline void SetAccessPoints(Aws::Map<Aws::String, S3AccessPointConfiguration>&& value) { m_accessPointsHasBeenSet = true; m_accessPoints = std::move(value); }
112 inline S3BucketConfiguration& AddAccessPoints(const Aws::String& key, const S3AccessPointConfiguration& value) { m_accessPointsHasBeenSet = true; m_accessPoints.emplace(key, value); return *this; }
113 inline S3BucketConfiguration& AddAccessPoints(Aws::String&& key, const S3AccessPointConfiguration& value) { m_accessPointsHasBeenSet = true; m_accessPoints.emplace(std::move(key), value); return *this; }
114 inline S3BucketConfiguration& AddAccessPoints(const Aws::String& key, S3AccessPointConfiguration&& value) { m_accessPointsHasBeenSet = true; m_accessPoints.emplace(key, std::move(value)); return *this; }
115 inline S3BucketConfiguration& AddAccessPoints(Aws::String&& key, S3AccessPointConfiguration&& value) { m_accessPointsHasBeenSet = true; m_accessPoints.emplace(std::move(key), std::move(value)); return *this; }
116 inline S3BucketConfiguration& AddAccessPoints(const char* key, S3AccessPointConfiguration&& value) { m_accessPointsHasBeenSet = true; m_accessPoints.emplace(key, std::move(value)); return *this; }
117 inline S3BucketConfiguration& AddAccessPoints(const char* key, const S3AccessPointConfiguration& value) { m_accessPointsHasBeenSet = true; m_accessPoints.emplace(key, value); return *this; }
119 private:
120
121 Aws::String m_bucketPolicy;
122 bool m_bucketPolicyHasBeenSet = false;
123
125 bool m_bucketAclGrantsHasBeenSet = false;
126
127 S3PublicAccessBlockConfiguration m_bucketPublicAccessBlock;
128 bool m_bucketPublicAccessBlockHasBeenSet = false;
129
131 bool m_accessPointsHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace AccessAnalyzer
136} // namespace Aws
S3BucketConfiguration & WithBucketPublicAccessBlock(S3PublicAccessBlockConfiguration &&value)
S3BucketConfiguration & WithBucketAclGrants(Aws::Vector< S3BucketAclGrantConfiguration > &&value)
S3BucketConfiguration & WithAccessPoints(const Aws::Map< Aws::String, S3AccessPointConfiguration > &value)
AWS_ACCESSANALYZER_API S3BucketConfiguration(Aws::Utils::Json::JsonView jsonValue)
S3BucketConfiguration & AddBucketAclGrants(S3BucketAclGrantConfiguration &&value)
S3BucketConfiguration & WithBucketPolicy(Aws::String &&value)
AWS_ACCESSANALYZER_API S3BucketConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
S3BucketConfiguration & AddAccessPoints(const char *key, S3AccessPointConfiguration &&value)
void SetAccessPoints(Aws::Map< Aws::String, S3AccessPointConfiguration > &&value)
S3BucketConfiguration & WithBucketPublicAccessBlock(const S3PublicAccessBlockConfiguration &value)
S3BucketConfiguration & WithBucketPolicy(const char *value)
S3BucketConfiguration & AddAccessPoints(const Aws::String &key, const S3AccessPointConfiguration &value)
void SetAccessPoints(const Aws::Map< Aws::String, S3AccessPointConfiguration > &value)
void SetBucketAclGrants(const Aws::Vector< S3BucketAclGrantConfiguration > &value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
S3BucketConfiguration & AddAccessPoints(Aws::String &&key, S3AccessPointConfiguration &&value)
S3BucketConfiguration & AddBucketAclGrants(const S3BucketAclGrantConfiguration &value)
S3BucketConfiguration & WithBucketAclGrants(const Aws::Vector< S3BucketAclGrantConfiguration > &value)
const Aws::Map< Aws::String, S3AccessPointConfiguration > & GetAccessPoints() const
void SetBucketAclGrants(Aws::Vector< S3BucketAclGrantConfiguration > &&value)
const Aws::Vector< S3BucketAclGrantConfiguration > & GetBucketAclGrants() const
S3BucketConfiguration & AddAccessPoints(const char *key, const S3AccessPointConfiguration &value)
void SetBucketPublicAccessBlock(const S3PublicAccessBlockConfiguration &value)
S3BucketConfiguration & AddAccessPoints(Aws::String &&key, const S3AccessPointConfiguration &value)
S3BucketConfiguration & WithBucketPolicy(const Aws::String &value)
S3BucketConfiguration & WithAccessPoints(Aws::Map< Aws::String, S3AccessPointConfiguration > &&value)
S3BucketConfiguration & AddAccessPoints(const Aws::String &key, S3AccessPointConfiguration &&value)
void SetBucketPublicAccessBlock(S3PublicAccessBlockConfiguration &&value)
const S3PublicAccessBlockConfiguration & GetBucketPublicAccessBlock() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue