AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
PutBucketAccelerateConfigurationRequest.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-crt/S3CrtRequest.h>
10#include <aws/s3-crt/S3Crt_EXPORTS.h>
11#include <aws/s3-crt/model/AccelerateConfiguration.h>
12#include <aws/s3-crt/model/ChecksumAlgorithm.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Http {
18class URI;
19} // namespace Http
20namespace S3Crt {
21namespace Model {
22
26 public:
27 AWS_S3CRT_API PutBucketAccelerateConfigurationRequest() = 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 "PutBucketAccelerateConfiguration"; }
34
35 AWS_S3CRT_API Aws::String SerializePayload() const override;
36
37 AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
41 AWS_S3CRT_API bool HasEmbeddedError(IOStream& body, const Http::HeaderValueCollection& header) const override;
42 AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override;
43 AWS_S3CRT_API bool ChecksumAlgorithmIsSet() const override;
47 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
48
50
53 inline const Aws::String& GetBucket() const { return m_bucket; }
54 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
55 template <typename BucketT = Aws::String>
56 void SetBucket(BucketT&& value) {
57 m_bucketHasBeenSet = true;
58 m_bucket = std::forward<BucketT>(value);
59 }
60 template <typename BucketT = Aws::String>
62 SetBucket(std::forward<BucketT>(value));
63 return *this;
64 }
66
68
71 inline const AccelerateConfiguration& GetAccelerateConfiguration() const { return m_accelerateConfiguration; }
72 inline bool AccelerateConfigurationHasBeenSet() const { return m_accelerateConfigurationHasBeenSet; }
73 template <typename AccelerateConfigurationT = AccelerateConfiguration>
74 void SetAccelerateConfiguration(AccelerateConfigurationT&& value) {
75 m_accelerateConfigurationHasBeenSet = true;
76 m_accelerateConfiguration = std::forward<AccelerateConfigurationT>(value);
77 }
78 template <typename AccelerateConfigurationT = AccelerateConfiguration>
80 SetAccelerateConfiguration(std::forward<AccelerateConfigurationT>(value));
81 return *this;
82 }
84
86
91 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
92 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
93 template <typename ExpectedBucketOwnerT = Aws::String>
94 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
95 m_expectedBucketOwnerHasBeenSet = true;
96 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
97 }
98 template <typename ExpectedBucketOwnerT = Aws::String>
100 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
101 return *this;
102 }
104
106
118 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
119 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
121 m_checksumAlgorithmHasBeenSet = true;
122 m_checksumAlgorithm = value;
123 }
126 return *this;
127 }
129
131
132 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
133 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
134 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
135 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
136 m_customizedAccessLogTagHasBeenSet = true;
137 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
138 }
139 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
141 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
142 return *this;
143 }
144 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
146 CustomizedAccessLogTagValueT&& value) {
147 m_customizedAccessLogTagHasBeenSet = true;
148 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_bucket;
154
155 AccelerateConfiguration m_accelerateConfiguration;
156
157 Aws::String m_expectedBucketOwner;
158
160
161 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
162 bool m_bucketHasBeenSet = false;
163 bool m_accelerateConfigurationHasBeenSet = false;
164 bool m_expectedBucketOwnerHasBeenSet = false;
165 bool m_checksumAlgorithmHasBeenSet = false;
166 bool m_customizedAccessLogTagHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace S3Crt
171} // namespace Aws
AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override
PutBucketAccelerateConfigurationRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
PutBucketAccelerateConfigurationRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
AWS_S3CRT_API bool ChecksumAlgorithmIsSet() const override
PutBucketAccelerateConfigurationRequest & WithAccelerateConfiguration(AccelerateConfigurationT &&value)
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutBucketAccelerateConfigurationRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
PutBucketAccelerateConfigurationRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_S3CRT_API Aws::String SerializePayload() const override
PutBucketAccelerateConfigurationRequest & WithBucket(BucketT &&value)
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
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