7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3/S3Request.h>
10#include <aws/s3/S3_EXPORTS.h>
11#include <aws/s3/model/BucketCannedACL.h>
12#include <aws/s3/model/CreateBucketConfiguration.h>
13#include <aws/s3/model/ObjectOwnership.h>
56 m_aCLHasBeenSet =
true;
85 template <
typename BucketT = Aws::String>
87 m_bucketHasBeenSet =
true;
88 m_bucket = std::forward<BucketT>(value);
90 template <
typename BucketT = Aws::String>
103 template <
typename CreateBucketConfigurationT = CreateBucketConfiguration>
105 m_createBucketConfigurationHasBeenSet =
true;
106 m_createBucketConfiguration = std::forward<CreateBucketConfigurationT>(value);
108 template <
typename CreateBucketConfigurationT = CreateBucketConfiguration>
123 template <
typename GrantFullControlT = Aws::String>
125 m_grantFullControlHasBeenSet =
true;
126 m_grantFullControl = std::forward<GrantFullControlT>(value);
128 template <
typename GrantFullControlT = Aws::String>
142 template <
typename GrantReadT = Aws::String>
144 m_grantReadHasBeenSet =
true;
145 m_grantRead = std::forward<GrantReadT>(value);
147 template <
typename GrantReadT = Aws::String>
161 template <
typename GrantReadACPT = Aws::String>
163 m_grantReadACPHasBeenSet =
true;
164 m_grantReadACP = std::forward<GrantReadACPT>(value);
166 template <
typename GrantReadACPT = Aws::String>
182 template <
typename GrantWriteT = Aws::String>
184 m_grantWriteHasBeenSet =
true;
185 m_grantWrite = std::forward<GrantWriteT>(value);
187 template <
typename GrantWriteT = Aws::String>
201 template <
typename GrantWriteACPT = Aws::String>
203 m_grantWriteACPHasBeenSet =
true;
204 m_grantWriteACP = std::forward<GrantWriteACPT>(value);
206 template <
typename GrantWriteACPT = Aws::String>
222 m_objectLockEnabledForBucketHasBeenSet =
true;
223 m_objectLockEnabledForBucket = value;
236 m_objectOwnershipHasBeenSet =
true;
237 m_objectOwnership = value;
249 template <
typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
251 m_customizedAccessLogTagHasBeenSet =
true;
252 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
254 template <
typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
259 template <
typename CustomizedAccessLogTagKeyT = Aws::String,
typename CustomizedAccessLogTagValueT = Aws::String>
261 m_customizedAccessLogTagHasBeenSet =
true;
262 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
268 bool m_aCLHasBeenSet =
false;
271 bool m_bucketHasBeenSet =
false;
273 CreateBucketConfiguration m_createBucketConfiguration;
274 bool m_createBucketConfigurationHasBeenSet =
false;
277 bool m_grantFullControlHasBeenSet =
false;
280 bool m_grantReadHasBeenSet =
false;
283 bool m_grantReadACPHasBeenSet =
false;
286 bool m_grantWriteHasBeenSet =
false;
289 bool m_grantWriteACPHasBeenSet =
false;
291 bool m_objectLockEnabledForBucket{
false};
292 bool m_objectLockEnabledForBucketHasBeenSet =
false;
295 bool m_objectOwnershipHasBeenSet =
false;
298 bool m_customizedAccessLogTagHasBeenSet =
false;
CreateBucketRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
bool GrantWriteACPHasBeenSet() const
bool ObjectOwnershipHasBeenSet() const
AWS_S3_API CreateBucketRequest()=default
const Aws::String & GetBucket() const
bool GrantFullControlHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
bool CustomizedAccessLogTagHasBeenSet() const
void SetBucket(BucketT &&value)
bool ACLHasBeenSet() const
bool BucketHasBeenSet() const
bool GrantReadACPHasBeenSet() const
CreateBucketRequest & WithBucket(BucketT &&value)
CreateBucketRequest & WithGrantWrite(GrantWriteT &&value)
void SetObjectLockEnabledForBucket(bool value)
const Aws::String & GetGrantFullControl() const
AWS_S3_API Aws::String SerializePayload() const override
bool GrantReadHasBeenSet() const
const Aws::String & GetGrantReadACP() const
ObjectOwnership GetObjectOwnership() const
void SetGrantReadACP(GrantReadACPT &&value)
void SetGrantRead(GrantReadT &&value)
CreateBucketRequest & WithCreateBucketConfiguration(CreateBucketConfigurationT &&value)
const Aws::String & GetGrantRead() const
virtual const char * GetServiceRequestName() const override
void SetGrantWriteACP(GrantWriteACPT &&value)
bool GetObjectLockEnabledForBucket() const
void SetCreateBucketConfiguration(CreateBucketConfigurationT &&value)
CreateBucketRequest & WithObjectLockEnabledForBucket(bool value)
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
bool ObjectLockEnabledForBucketHasBeenSet() const
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateBucketRequest & WithGrantReadACP(GrantReadACPT &&value)
void SetACL(BucketCannedACL value)
BucketCannedACL GetACL() const
CreateBucketRequest & WithACL(BucketCannedACL value)
const Aws::String & GetGrantWrite() const
CreateBucketRequest & WithGrantRead(GrantReadT &&value)
const CreateBucketConfiguration & GetCreateBucketConfiguration() const
void SetGrantFullControl(GrantFullControlT &&value)
void SetGrantWrite(GrantWriteT &&value)
const Aws::String & GetGrantWriteACP() const
void SetObjectOwnership(ObjectOwnership value)
CreateBucketRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
CreateBucketRequest & WithObjectOwnership(ObjectOwnership value)
CreateBucketRequest & WithGrantFullControl(GrantFullControlT &&value)
bool GrantWriteHasBeenSet() const
CreateBucketRequest & WithGrantWriteACP(GrantWriteACPT &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
bool CreateBucketConfigurationHasBeenSet() const
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String