7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
49 template<
typename AccountIdT = Aws::String>
50 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet =
true; m_accountId = std::forward<AccountIdT>(value); }
51 template<
typename AccountIdT = Aws::String>
71 template<
typename BucketT = Aws::String>
72 void SetBucket(BucketT&& value) { m_bucketHasBeenSet =
true; m_bucket = std::forward<BucketT>(value); }
73 template<
typename BucketT = Aws::String>
95 template<
typename PolicyT = Aws::String>
96 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet =
true; m_policy = std::forward<PolicyT>(value); }
97 template<
typename PolicyT = Aws::String>
103 bool m_accountIdHasBeenSet =
false;
106 bool m_bucketHasBeenSet =
false;
108 bool m_confirmRemoveSelfBucketAccess{
false};
109 bool m_confirmRemoveSelfBucketAccessHasBeenSet =
false;
112 bool m_policyHasBeenSet =
false;
PutBucketPolicyRequest & WithPolicy(PolicyT &&value)
bool GetConfirmRemoveSelfBucketAccess() const
bool PolicyHasBeenSet() const
void SetAccountId(AccountIdT &&value)
PutBucketPolicyRequest & WithAccountId(AccountIdT &&value)
const Aws::String & GetBucket() const
PutBucketPolicyRequest & WithConfirmRemoveSelfBucketAccess(bool value)
AWS_S3CONTROL_API PutBucketPolicyRequest()=default
void SetPolicy(PolicyT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetAccountId() const
void SetConfirmRemoveSelfBucketAccess(bool value)
bool ConfirmRemoveSelfBucketAccessHasBeenSet() const
const Aws::String & GetPolicy() const
AWS_S3CONTROL_API Aws::String SerializePayload() const override
AWS_S3CONTROL_API bool ShouldComputeContentMd5() const override
bool BucketHasBeenSet() const
PutBucketPolicyRequest & WithBucket(BucketT &&value)
void SetBucket(BucketT &&value)
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
bool AccountIdHasBeenSet() const
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String