7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
9#include <aws/s3/model/BucketCannedACL.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/s3/model/CreateBucketConfiguration.h>
12#include <aws/s3/model/ObjectOwnership.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
83 template<
typename BucketT = Aws::String>
84 void SetBucket(BucketT&& value) { m_bucketHasBeenSet =
true; m_bucket = std::forward<BucketT>(value); }
85 template<
typename BucketT = Aws::String>
95 template<
typename CreateBucketConfigurationT = CreateBucketConfiguration>
96 void SetCreateBucketConfiguration(CreateBucketConfigurationT&& value) { m_createBucketConfigurationHasBeenSet =
true; m_createBucketConfiguration = std::forward<CreateBucketConfigurationT>(value); }
97 template<
typename CreateBucketConfigurationT = CreateBucketConfiguration>
109 template<
typename GrantFullControlT = Aws::String>
110 void SetGrantFullControl(GrantFullControlT&& value) { m_grantFullControlHasBeenSet =
true; m_grantFullControl = std::forward<GrantFullControlT>(value); }
111 template<
typename GrantFullControlT = Aws::String>
122 template<
typename GrantReadT = Aws::String>
123 void SetGrantRead(GrantReadT&& value) { m_grantReadHasBeenSet =
true; m_grantRead = std::forward<GrantReadT>(value); }
124 template<
typename GrantReadT = Aws::String>
135 template<
typename GrantReadACPT = Aws::String>
136 void SetGrantReadACP(GrantReadACPT&& value) { m_grantReadACPHasBeenSet =
true; m_grantReadACP = std::forward<GrantReadACPT>(value); }
137 template<
typename GrantReadACPT = Aws::String>
150 template<
typename GrantWriteT = Aws::String>
151 void SetGrantWrite(GrantWriteT&& value) { m_grantWriteHasBeenSet =
true; m_grantWrite = std::forward<GrantWriteT>(value); }
152 template<
typename GrantWriteT = Aws::String>
163 template<
typename GrantWriteACPT = Aws::String>
164 void SetGrantWriteACP(GrantWriteACPT&& value) { m_grantWriteACPHasBeenSet =
true; m_grantWriteACP = std::forward<GrantWriteACPT>(value); }
165 template<
typename GrantWriteACPT = Aws::String>
193 template<
typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
194 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { m_customizedAccessLogTagHasBeenSet =
true; m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value); }
195 template<
typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
197 template<
typename CustomizedAccessLogTagKeyT = Aws::String,
typename CustomizedAccessLogTagValueT = Aws::String>
199 m_customizedAccessLogTagHasBeenSet =
true; m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
return *
this;
205 bool m_aCLHasBeenSet =
false;
208 bool m_bucketHasBeenSet =
false;
210 CreateBucketConfiguration m_createBucketConfiguration;
211 bool m_createBucketConfigurationHasBeenSet =
false;
214 bool m_grantFullControlHasBeenSet =
false;
217 bool m_grantReadHasBeenSet =
false;
220 bool m_grantReadACPHasBeenSet =
false;
223 bool m_grantWriteHasBeenSet =
false;
226 bool m_grantWriteACPHasBeenSet =
false;
228 bool m_objectLockEnabledForBucket{
false};
229 bool m_objectLockEnabledForBucketHasBeenSet =
false;
232 bool m_objectOwnershipHasBeenSet =
false;
235 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