AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
PutBucketOwnershipControlsRequest.h
1
6#pragma once
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/ChecksumAlgorithm.h>
12#include <aws/s3/model/OwnershipControls.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Http {
18class URI;
19} // namespace Http
20namespace S3 {
21namespace Model {
22
26 public:
27 AWS_S3_API PutBucketOwnershipControlsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "PutBucketOwnershipControls"; }
34
35 AWS_S3_API Aws::String SerializePayload() const override;
36
37 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
41 AWS_S3_API bool HasEmbeddedError(IOStream& body, const Http::HeaderValueCollection& header) const override;
42 AWS_S3_API Aws::String GetChecksumAlgorithmName() const override;
43 inline bool RequestChecksumRequired() const override { return true; };
44
48 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
49
51
55 inline const Aws::String& GetBucket() const { return m_bucket; }
56 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
57 template <typename BucketT = Aws::String>
58 void SetBucket(BucketT&& value) {
59 m_bucketHasBeenSet = true;
60 m_bucket = std::forward<BucketT>(value);
61 }
62 template <typename BucketT = Aws::String>
64 SetBucket(std::forward<BucketT>(value));
65 return *this;
66 }
68
70
75 inline const Aws::String& GetContentMD5() const { return m_contentMD5; }
76 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
77 template <typename ContentMD5T = Aws::String>
78 void SetContentMD5(ContentMD5T&& value) {
79 m_contentMD5HasBeenSet = true;
80 m_contentMD5 = std::forward<ContentMD5T>(value);
81 }
82 template <typename ContentMD5T = Aws::String>
84 SetContentMD5(std::forward<ContentMD5T>(value));
85 return *this;
86 }
88
90
95 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
96 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
97 template <typename ExpectedBucketOwnerT = Aws::String>
98 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
99 m_expectedBucketOwnerHasBeenSet = true;
100 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
101 }
102 template <typename ExpectedBucketOwnerT = Aws::String>
104 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
105 return *this;
106 }
108
110
115 inline const OwnershipControls& GetOwnershipControls() const { return m_ownershipControls; }
116 inline bool OwnershipControlsHasBeenSet() const { return m_ownershipControlsHasBeenSet; }
117 template <typename OwnershipControlsT = OwnershipControls>
118 void SetOwnershipControls(OwnershipControlsT&& value) {
119 m_ownershipControlsHasBeenSet = true;
120 m_ownershipControls = std::forward<OwnershipControlsT>(value);
121 }
122 template <typename OwnershipControlsT = OwnershipControls>
124 SetOwnershipControls(std::forward<OwnershipControlsT>(value));
125 return *this;
126 }
128
130
142 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
143 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
145 m_checksumAlgorithmHasBeenSet = true;
146 m_checksumAlgorithm = value;
147 }
150 return *this;
151 }
153
155
156 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
157 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
158 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
159 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
160 m_customizedAccessLogTagHasBeenSet = true;
161 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
162 }
163 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
165 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
166 return *this;
167 }
168 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
169 PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
170 m_customizedAccessLogTagHasBeenSet = true;
171 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
172 return *this;
173 }
175 private:
176 Aws::String m_bucket;
177 bool m_bucketHasBeenSet = false;
178
179 Aws::String m_contentMD5;
180 bool m_contentMD5HasBeenSet = false;
181
182 Aws::String m_expectedBucketOwner;
183 bool m_expectedBucketOwnerHasBeenSet = false;
184
185 OwnershipControls m_ownershipControls;
186 bool m_ownershipControlsHasBeenSet = false;
187
189 bool m_checksumAlgorithmHasBeenSet = false;
190
191 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
192 bool m_customizedAccessLogTagHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace S3
197} // namespace Aws
PutBucketOwnershipControlsRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutBucketOwnershipControlsRequest & WithContentMD5(ContentMD5T &&value)
PutBucketOwnershipControlsRequest & WithOwnershipControls(OwnershipControlsT &&value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
AWS_S3_API Aws::String SerializePayload() const override
PutBucketOwnershipControlsRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
PutBucketOwnershipControlsRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
PutBucketOwnershipControlsRequest & WithBucket(BucketT &&value)
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
Aws::Endpoint::EndpointParameters EndpointParameters
Definition S3Request.h:19
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