AWS SDK for C++

AWS SDK for C++ Version 1.11.844

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 AWS_S3_API bool ChecksumAlgorithmIsSet() const override;
44 inline bool RequestChecksumRequired() const override { return true; };
45
49 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
50
52
56 inline const Aws::String& GetBucket() const { return m_bucket; }
57 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
58 template <typename BucketT = Aws::String>
59 void SetBucket(BucketT&& value) {
60 m_bucketHasBeenSet = true;
61 m_bucket = std::forward<BucketT>(value);
62 }
63 template <typename BucketT = Aws::String>
65 SetBucket(std::forward<BucketT>(value));
66 return *this;
67 }
69
71
76 inline const Aws::String& GetContentMD5() const { return m_contentMD5; }
77 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
78 template <typename ContentMD5T = Aws::String>
79 void SetContentMD5(ContentMD5T&& value) {
80 m_contentMD5HasBeenSet = true;
81 m_contentMD5 = std::forward<ContentMD5T>(value);
82 }
83 template <typename ContentMD5T = Aws::String>
85 SetContentMD5(std::forward<ContentMD5T>(value));
86 return *this;
87 }
89
91
96 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
97 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
98 template <typename ExpectedBucketOwnerT = Aws::String>
99 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
100 m_expectedBucketOwnerHasBeenSet = true;
101 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
102 }
103 template <typename ExpectedBucketOwnerT = Aws::String>
105 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
106 return *this;
107 }
109
111
116 inline const OwnershipControls& GetOwnershipControls() const { return m_ownershipControls; }
117 inline bool OwnershipControlsHasBeenSet() const { return m_ownershipControlsHasBeenSet; }
118 template <typename OwnershipControlsT = OwnershipControls>
119 void SetOwnershipControls(OwnershipControlsT&& value) {
120 m_ownershipControlsHasBeenSet = true;
121 m_ownershipControls = std::forward<OwnershipControlsT>(value);
122 }
123 template <typename OwnershipControlsT = OwnershipControls>
125 SetOwnershipControls(std::forward<OwnershipControlsT>(value));
126 return *this;
127 }
129
131
143 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
144 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
146 m_checksumAlgorithmHasBeenSet = true;
147 m_checksumAlgorithm = value;
148 }
151 return *this;
152 }
154
156
157 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
158 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
159 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
160 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
161 m_customizedAccessLogTagHasBeenSet = true;
162 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
163 }
164 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
166 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
167 return *this;
168 }
169 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
170 PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
171 m_customizedAccessLogTagHasBeenSet = true;
172 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
173 return *this;
174 }
176 private:
177 Aws::String m_bucket;
178
179 Aws::String m_contentMD5;
180
181 Aws::String m_expectedBucketOwner;
182
183 OwnershipControls m_ownershipControls;
184
186
187 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
188 bool m_bucketHasBeenSet = false;
189 bool m_contentMD5HasBeenSet = false;
190 bool m_expectedBucketOwnerHasBeenSet = false;
191 bool m_ownershipControlsHasBeenSet = false;
192 bool m_checksumAlgorithmHasBeenSet = false;
193 bool m_customizedAccessLogTagHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace S3
198} // 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 bool ChecksumAlgorithmIsSet() const override
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