AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutObjectLockConfigurationRequest.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/ObjectLockConfiguration.h>
11#include <aws/s3-crt/model/RequestPayer.h>
12#include <aws/s3-crt/model/ChecksumAlgorithm.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace S3Crt
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_S3CRT_API PutObjectLockConfigurationRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "PutObjectLockConfiguration"; }
39
40 AWS_S3CRT_API Aws::String SerializePayload() const override;
41
42 AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
45
46 AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
47 AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override;
48 inline bool RequestChecksumRequired() const override { return true; };
49
53 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
54
56
59 inline const Aws::String& GetBucket() const { return m_bucket; }
60 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
61 template<typename BucketT = Aws::String>
62 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
63 template<typename BucketT = Aws::String>
64 PutObjectLockConfigurationRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
66
68
72 inline const ObjectLockConfiguration& GetObjectLockConfiguration() const { return m_objectLockConfiguration; }
73 inline bool ObjectLockConfigurationHasBeenSet() const { return m_objectLockConfigurationHasBeenSet; }
74 template<typename ObjectLockConfigurationT = ObjectLockConfiguration>
75 void SetObjectLockConfiguration(ObjectLockConfigurationT&& value) { m_objectLockConfigurationHasBeenSet = true; m_objectLockConfiguration = std::forward<ObjectLockConfigurationT>(value); }
76 template<typename ObjectLockConfigurationT = ObjectLockConfiguration>
77 PutObjectLockConfigurationRequest& WithObjectLockConfiguration(ObjectLockConfigurationT&& value) { SetObjectLockConfiguration(std::forward<ObjectLockConfigurationT>(value)); return *this;}
79
81
82 inline RequestPayer GetRequestPayer() const { return m_requestPayer; }
83 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
84 inline void SetRequestPayer(RequestPayer value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
87
89
92 inline const Aws::String& GetToken() const { return m_token; }
93 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
94 template<typename TokenT = Aws::String>
95 void SetToken(TokenT&& value) { m_tokenHasBeenSet = true; m_token = std::forward<TokenT>(value); }
96 template<typename TokenT = Aws::String>
97 PutObjectLockConfigurationRequest& WithToken(TokenT&& value) { SetToken(std::forward<TokenT>(value)); return *this;}
99
101
106 inline const Aws::String& GetContentMD5() const { return m_contentMD5; }
107 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
108 template<typename ContentMD5T = Aws::String>
109 void SetContentMD5(ContentMD5T&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::forward<ContentMD5T>(value); }
110 template<typename ContentMD5T = Aws::String>
111 PutObjectLockConfigurationRequest& WithContentMD5(ContentMD5T&& value) { SetContentMD5(std::forward<ContentMD5T>(value)); return *this;}
113
115
127 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
128 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
129 inline void SetChecksumAlgorithm(ChecksumAlgorithm value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
132
134
139 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
140 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
141 template<typename ExpectedBucketOwnerT = Aws::String>
142 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
143 template<typename ExpectedBucketOwnerT = Aws::String>
144 PutObjectLockConfigurationRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) { SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value)); return *this;}
146
148
149 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
150 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
151 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
152 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value); }
153 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
154 PutObjectLockConfigurationRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value)); return *this;}
155 template<typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
156 PutObjectLockConfigurationRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
157 m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value)); return *this;
158 }
160 private:
161
162 Aws::String m_bucket;
163 bool m_bucketHasBeenSet = false;
164
165 ObjectLockConfiguration m_objectLockConfiguration;
166 bool m_objectLockConfigurationHasBeenSet = false;
167
168 RequestPayer m_requestPayer{RequestPayer::NOT_SET};
169 bool m_requestPayerHasBeenSet = false;
170
171 Aws::String m_token;
172 bool m_tokenHasBeenSet = false;
173
174 Aws::String m_contentMD5;
175 bool m_contentMD5HasBeenSet = false;
176
178 bool m_checksumAlgorithmHasBeenSet = false;
179
180 Aws::String m_expectedBucketOwner;
181 bool m_expectedBucketOwnerHasBeenSet = false;
182
183 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
184 bool m_customizedAccessLogTagHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace S3Crt
189} // namespace Aws
AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override
AWS_S3CRT_API Aws::String SerializePayload() const override
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
PutObjectLockConfigurationRequest & WithContentMD5(ContentMD5T &&value)
PutObjectLockConfigurationRequest & WithRequestPayer(RequestPayer value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutObjectLockConfigurationRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
PutObjectLockConfigurationRequest & WithBucket(BucketT &&value)
PutObjectLockConfigurationRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutObjectLockConfigurationRequest & WithToken(TokenT &&value)
PutObjectLockConfigurationRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
PutObjectLockConfigurationRequest & WithObjectLockConfiguration(ObjectLockConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutObjectLockConfigurationRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&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