AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutBucketPolicyRequest.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3/model/ChecksumAlgorithm.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace S3
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "PutBucketPolicy"; }
37
38 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
42 AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
43 AWS_S3_API Aws::String GetChecksumAlgorithmName() const override;
44
45 AWS_S3_API bool IsStreaming() const override { return false; }
46
50 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
51
53
66 inline const Aws::String& GetBucket() const{ return m_bucket; }
67 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
68 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
69 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
70 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
71 inline PutBucketPolicyRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
72 inline PutBucketPolicyRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
73 inline PutBucketPolicyRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
75
77
83 inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
84 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
85 inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
86 inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
87 inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
88 inline PutBucketPolicyRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
89 inline PutBucketPolicyRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
90 inline PutBucketPolicyRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
92
94
117 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
118 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
119 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
120 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
122 inline PutBucketPolicyRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
124
126
131 inline bool GetConfirmRemoveSelfBucketAccess() const{ return m_confirmRemoveSelfBucketAccess; }
132 inline bool ConfirmRemoveSelfBucketAccessHasBeenSet() const { return m_confirmRemoveSelfBucketAccessHasBeenSet; }
133 inline void SetConfirmRemoveSelfBucketAccess(bool value) { m_confirmRemoveSelfBucketAccessHasBeenSet = true; m_confirmRemoveSelfBucketAccess = value; }
136
138
146 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
147 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
148 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
149 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
150 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
152 inline PutBucketPolicyRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
153 inline PutBucketPolicyRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
155
157
158 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
159 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
160 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
161 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
164 inline PutBucketPolicyRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
165 inline PutBucketPolicyRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
166 inline PutBucketPolicyRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
167 inline PutBucketPolicyRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
168 inline PutBucketPolicyRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
169 inline PutBucketPolicyRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
170 inline PutBucketPolicyRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
172 private:
173
174 Aws::String m_bucket;
175 bool m_bucketHasBeenSet = false;
176
177 Aws::String m_contentMD5;
178 bool m_contentMD5HasBeenSet = false;
179
180 ChecksumAlgorithm m_checksumAlgorithm;
181 bool m_checksumAlgorithmHasBeenSet = false;
182
183 bool m_confirmRemoveSelfBucketAccess;
184 bool m_confirmRemoveSelfBucketAccessHasBeenSet = false;
185
186
187 Aws::String m_expectedBucketOwner;
188 bool m_expectedBucketOwnerHasBeenSet = false;
189
190 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
191 bool m_customizedAccessLogTagHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace S3
196} // namespace Aws
Aws::Vector< Aws::Endpoint::EndpointParameter > EndpointParameters
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutBucketPolicyRequest & WithBucket(const Aws::String &value)
PutBucketPolicyRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutBucketPolicyRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
PutBucketPolicyRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
void SetBucket(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetExpectedBucketOwner(const Aws::String &value)
PutBucketPolicyRequest & WithExpectedBucketOwner(const char *value)
AWS_S3_API bool IsStreaming() const override
PutBucketPolicyRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
PutBucketPolicyRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutBucketPolicyRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutBucketPolicyRequest & WithContentMD5(Aws::String &&value)
PutBucketPolicyRequest & WithBucket(const char *value)
const ChecksumAlgorithm & GetChecksumAlgorithm() const
PutBucketPolicyRequest & WithConfirmRemoveSelfBucketAccess(bool value)
PutBucketPolicyRequest & WithContentMD5(const Aws::String &value)
PutBucketPolicyRequest & WithContentMD5(const char *value)
void SetContentMD5(const Aws::String &value)
PutBucketPolicyRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
const Aws::String & GetExpectedBucketOwner() const
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
PutBucketPolicyRequest & WithExpectedBucketOwner(Aws::String &&value)
PutBucketPolicyRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
PutBucketPolicyRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
PutBucketPolicyRequest & WithBucket(Aws::String &&value)
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
PutBucketPolicyRequest & WithExpectedBucketOwner(const Aws::String &value)
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
PutBucketPolicyRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
void SetChecksumAlgorithm(ChecksumAlgorithm &&value)
PutBucketPolicyRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
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