AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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;
46 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
47
49
52 inline const Aws::String& GetBucket() const { return m_bucket; }
53 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
54 template <typename BucketT = Aws::String>
55 void SetBucket(BucketT&& value) {
56 m_bucketHasBeenSet = true;
57 m_bucket = std::forward<BucketT>(value);
58 }
59 template <typename BucketT = Aws::String>
61 SetBucket(std::forward<BucketT>(value));
62 return *this;
63 }
65
67
70 inline const AccelerateConfiguration& GetAccelerateConfiguration() const { return m_accelerateConfiguration; }
71 inline bool AccelerateConfigurationHasBeenSet() const { return m_accelerateConfigurationHasBeenSet; }
72 template <typename AccelerateConfigurationT = AccelerateConfiguration>
73 void SetAccelerateConfiguration(AccelerateConfigurationT&& value) {
74 m_accelerateConfigurationHasBeenSet = true;
75 m_accelerateConfiguration = std::forward<AccelerateConfigurationT>(value);
76 }
77 template <typename AccelerateConfigurationT = AccelerateConfiguration>
79 SetAccelerateConfiguration(std::forward<AccelerateConfigurationT>(value));
80 return *this;
81 }
83
85
90 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
91 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
92 template <typename ExpectedBucketOwnerT = Aws::String>
93 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
94 m_expectedBucketOwnerHasBeenSet = true;
95 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
96 }
97 template <typename ExpectedBucketOwnerT = Aws::String>
99 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
100 return *this;
101 }
103
105
117 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
118 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
120 m_checksumAlgorithmHasBeenSet = true;
121 m_checksumAlgorithm = value;
122 }
125 return *this;
126 }
128
130
131 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
132 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
133 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
134 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
135 m_customizedAccessLogTagHasBeenSet = true;
136 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
137 }
138 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
140 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
141 return *this;
142 }
143 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
145 CustomizedAccessLogTagValueT&& value) {
146 m_customizedAccessLogTagHasBeenSet = true;
147 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_bucket;
153
154 AccelerateConfiguration m_accelerateConfiguration;
155
156 Aws::String m_expectedBucketOwner;
157
159
160 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
161 bool m_bucketHasBeenSet = false;
162 bool m_accelerateConfigurationHasBeenSet = false;
163 bool m_expectedBucketOwnerHasBeenSet = false;
164 bool m_checksumAlgorithmHasBeenSet = false;
165 bool m_customizedAccessLogTagHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace S3Crt
170} // 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
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