AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutBucketRequestPaymentRequest.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/S3CrtRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3-crt/model/ChecksumAlgorithm.h>
11#include <aws/s3-crt/model/RequestPaymentConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace S3Crt
22{
23namespace Model
24{
25
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "PutBucketRequestPayment"; }
38
39 AWS_S3CRT_API Aws::String SerializePayload() const override;
40
41 AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
44
45 AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
46 AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override;
47
51 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
52
54
57 inline const Aws::String& GetBucket() const{ return m_bucket; }
58 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
59 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
60 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
61 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
62 inline PutBucketRequestPaymentRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
63 inline PutBucketRequestPaymentRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
64 inline PutBucketRequestPaymentRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
66
68
76 inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
77 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
78 inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
79 inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
80 inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
81 inline PutBucketRequestPaymentRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
82 inline PutBucketRequestPaymentRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
83 inline PutBucketRequestPaymentRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
85
87
99 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
100 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
101 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
102 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
106
108
111 inline const RequestPaymentConfiguration& GetRequestPaymentConfiguration() const{ return m_requestPaymentConfiguration; }
112 inline bool RequestPaymentConfigurationHasBeenSet() const { return m_requestPaymentConfigurationHasBeenSet; }
113 inline void SetRequestPaymentConfiguration(const RequestPaymentConfiguration& value) { m_requestPaymentConfigurationHasBeenSet = true; m_requestPaymentConfiguration = value; }
114 inline void SetRequestPaymentConfiguration(RequestPaymentConfiguration&& value) { m_requestPaymentConfigurationHasBeenSet = true; m_requestPaymentConfiguration = std::move(value); }
118
120
125 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
126 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
127 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
128 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
129 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
132 inline PutBucketRequestPaymentRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
134
136
137 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
138 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
139 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
140 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
143 inline PutBucketRequestPaymentRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
144 inline PutBucketRequestPaymentRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
145 inline PutBucketRequestPaymentRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
146 inline PutBucketRequestPaymentRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
147 inline PutBucketRequestPaymentRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
148 inline PutBucketRequestPaymentRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
149 inline PutBucketRequestPaymentRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
151 private:
152
153 Aws::String m_bucket;
154 bool m_bucketHasBeenSet = false;
155
156 Aws::String m_contentMD5;
157 bool m_contentMD5HasBeenSet = false;
158
159 ChecksumAlgorithm m_checksumAlgorithm;
160 bool m_checksumAlgorithmHasBeenSet = false;
161
162 RequestPaymentConfiguration m_requestPaymentConfiguration;
163 bool m_requestPaymentConfigurationHasBeenSet = false;
164
165 Aws::String m_expectedBucketOwner;
166 bool m_expectedBucketOwnerHasBeenSet = false;
167
168 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
169 bool m_customizedAccessLogTagHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace S3Crt
174} // namespace Aws
PutBucketRequestPaymentRequest & WithContentMD5(const Aws::String &value)
PutBucketRequestPaymentRequest & WithRequestPaymentConfiguration(RequestPaymentConfiguration &&value)
PutBucketRequestPaymentRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
PutBucketRequestPaymentRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
PutBucketRequestPaymentRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
AWS_S3CRT_API Aws::String SerializePayload() const override
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutBucketRequestPaymentRequest & WithContentMD5(const char *value)
const RequestPaymentConfiguration & GetRequestPaymentConfiguration() const
AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override
PutBucketRequestPaymentRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
PutBucketRequestPaymentRequest & WithExpectedBucketOwner(const char *value)
PutBucketRequestPaymentRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
PutBucketRequestPaymentRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutBucketRequestPaymentRequest & WithExpectedBucketOwner(Aws::String &&value)
PutBucketRequestPaymentRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
PutBucketRequestPaymentRequest & WithBucket(const char *value)
void SetRequestPaymentConfiguration(RequestPaymentConfiguration &&value)
void SetRequestPaymentConfiguration(const RequestPaymentConfiguration &value)
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
PutBucketRequestPaymentRequest & WithBucket(const Aws::String &value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutBucketRequestPaymentRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
PutBucketRequestPaymentRequest & WithExpectedBucketOwner(const Aws::String &value)
PutBucketRequestPaymentRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
PutBucketRequestPaymentRequest & WithRequestPaymentConfiguration(const RequestPaymentConfiguration &value)
PutBucketRequestPaymentRequest & WithContentMD5(Aws::String &&value)
PutBucketRequestPaymentRequest & WithBucket(Aws::String &&value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutBucketRequestPaymentRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutBucketRequestPaymentRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
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