AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutObjectLockConfigurationRequest.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3/model/ObjectLockConfiguration.h>
11#include <aws/s3/model/RequestPayer.h>
12#include <aws/s3/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 S3
23{
24namespace Model
25{
26
30 {
31 public:
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_S3_API Aws::String SerializePayload() const override;
41
42 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
45
46 AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
47 AWS_S3_API Aws::String GetChecksumAlgorithmName() const override;
48
52 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
53
55
58 inline const Aws::String& GetBucket() const{ return m_bucket; }
59 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
60 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
61 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
62 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
63 inline PutObjectLockConfigurationRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
64 inline PutObjectLockConfigurationRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
65 inline PutObjectLockConfigurationRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
67
69
73 inline const ObjectLockConfiguration& GetObjectLockConfiguration() const{ return m_objectLockConfiguration; }
74 inline bool ObjectLockConfigurationHasBeenSet() const { return m_objectLockConfigurationHasBeenSet; }
75 inline void SetObjectLockConfiguration(const ObjectLockConfiguration& value) { m_objectLockConfigurationHasBeenSet = true; m_objectLockConfiguration = value; }
76 inline void SetObjectLockConfiguration(ObjectLockConfiguration&& value) { m_objectLockConfigurationHasBeenSet = true; m_objectLockConfiguration = std::move(value); }
80
82
83 inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
84 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
85 inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
86 inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
88 inline PutObjectLockConfigurationRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
90
92
95 inline const Aws::String& GetToken() const{ return m_token; }
96 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
97 inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
98 inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); }
99 inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
100 inline PutObjectLockConfigurationRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;}
101 inline PutObjectLockConfigurationRequest& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;}
102 inline PutObjectLockConfigurationRequest& WithToken(const char* value) { SetToken(value); return *this;}
104
106
111 inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
112 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
113 inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
114 inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
115 inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
116 inline PutObjectLockConfigurationRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
117 inline PutObjectLockConfigurationRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
118 inline PutObjectLockConfigurationRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
120
122
134 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
135 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
136 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
137 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
141
143
148 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
149 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
150 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
151 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
152 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
155 inline PutObjectLockConfigurationRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
157
159
160 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
161 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
162 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
163 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
166 inline PutObjectLockConfigurationRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
167 inline PutObjectLockConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
168 inline PutObjectLockConfigurationRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
169 inline PutObjectLockConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
170 inline PutObjectLockConfigurationRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
171 inline PutObjectLockConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
172 inline PutObjectLockConfigurationRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
174 private:
175
176 Aws::String m_bucket;
177 bool m_bucketHasBeenSet = false;
178
179 ObjectLockConfiguration m_objectLockConfiguration;
180 bool m_objectLockConfigurationHasBeenSet = false;
181
182 RequestPayer m_requestPayer;
183 bool m_requestPayerHasBeenSet = false;
184
185 Aws::String m_token;
186 bool m_tokenHasBeenSet = false;
187
188 Aws::String m_contentMD5;
189 bool m_contentMD5HasBeenSet = false;
190
191 ChecksumAlgorithm m_checksumAlgorithm;
192 bool m_checksumAlgorithmHasBeenSet = false;
193
194 Aws::String m_expectedBucketOwner;
195 bool m_expectedBucketOwnerHasBeenSet = false;
196
197 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
198 bool m_customizedAccessLogTagHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace S3
203} // namespace Aws
PutObjectLockConfigurationRequest & WithToken(Aws::String &&value)
PutObjectLockConfigurationRequest & WithBucket(Aws::String &&value)
PutObjectLockConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutObjectLockConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
void SetObjectLockConfiguration(const ObjectLockConfiguration &value)
const ObjectLockConfiguration & GetObjectLockConfiguration() const
PutObjectLockConfigurationRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
PutObjectLockConfigurationRequest & WithBucket(const char *value)
PutObjectLockConfigurationRequest & WithContentMD5(const Aws::String &value)
PutObjectLockConfigurationRequest & WithRequestPayer(const RequestPayer &value)
PutObjectLockConfigurationRequest & WithRequestPayer(RequestPayer &&value)
PutObjectLockConfigurationRequest & WithBucket(const Aws::String &value)
PutObjectLockConfigurationRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
PutObjectLockConfigurationRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
PutObjectLockConfigurationRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutObjectLockConfigurationRequest & WithToken(const Aws::String &value)
AWS_S3_API Aws::String SerializePayload() const override
PutObjectLockConfigurationRequest & WithObjectLockConfiguration(const ObjectLockConfiguration &value)
PutObjectLockConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutObjectLockConfigurationRequest & WithContentMD5(const char *value)
PutObjectLockConfigurationRequest & WithExpectedBucketOwner(const Aws::String &value)
PutObjectLockConfigurationRequest & WithToken(const char *value)
PutObjectLockConfigurationRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
PutObjectLockConfigurationRequest & WithExpectedBucketOwner(Aws::String &&value)
PutObjectLockConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutObjectLockConfigurationRequest & WithContentMD5(Aws::String &&value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutObjectLockConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
PutObjectLockConfigurationRequest & WithExpectedBucketOwner(const char *value)
PutObjectLockConfigurationRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
PutObjectLockConfigurationRequest & WithObjectLockConfiguration(ObjectLockConfiguration &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
Definition S3Request.h:22
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