AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutBucketVersioningRequest.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/ChecksumAlgorithm.h>
11#include <aws/s3/model/VersioningConfiguration.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 S3
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 "PutBucketVersioning"; }
38
39 AWS_S3_API Aws::String SerializePayload() const override;
40
41 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
44
45 AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
46 AWS_S3_API Aws::String GetChecksumAlgorithmName() const override;
47
51 AWS_S3_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 PutBucketVersioningRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
63 inline PutBucketVersioningRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
64 inline PutBucketVersioningRequest& 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 PutBucketVersioningRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
82 inline PutBucketVersioningRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
83 inline PutBucketVersioningRequest& 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
112 inline const Aws::String& GetMFA() const{ return m_mFA; }
113 inline bool MFAHasBeenSet() const { return m_mFAHasBeenSet; }
114 inline void SetMFA(const Aws::String& value) { m_mFAHasBeenSet = true; m_mFA = value; }
115 inline void SetMFA(Aws::String&& value) { m_mFAHasBeenSet = true; m_mFA = std::move(value); }
116 inline void SetMFA(const char* value) { m_mFAHasBeenSet = true; m_mFA.assign(value); }
117 inline PutBucketVersioningRequest& WithMFA(const Aws::String& value) { SetMFA(value); return *this;}
118 inline PutBucketVersioningRequest& WithMFA(Aws::String&& value) { SetMFA(std::move(value)); return *this;}
119 inline PutBucketVersioningRequest& WithMFA(const char* value) { SetMFA(value); return *this;}
121
123
126 inline const VersioningConfiguration& GetVersioningConfiguration() const{ return m_versioningConfiguration; }
127 inline bool VersioningConfigurationHasBeenSet() const { return m_versioningConfigurationHasBeenSet; }
128 inline void SetVersioningConfiguration(const VersioningConfiguration& value) { m_versioningConfigurationHasBeenSet = true; m_versioningConfiguration = value; }
129 inline void SetVersioningConfiguration(VersioningConfiguration&& value) { m_versioningConfigurationHasBeenSet = true; m_versioningConfiguration = std::move(value); }
133
135
140 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
141 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
142 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
143 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
144 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
147 inline PutBucketVersioningRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
149
151
152 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
153 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
154 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
155 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
158 inline PutBucketVersioningRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
159 inline PutBucketVersioningRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
160 inline PutBucketVersioningRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
161 inline PutBucketVersioningRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
162 inline PutBucketVersioningRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
163 inline PutBucketVersioningRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
164 inline PutBucketVersioningRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
166 private:
167
168 Aws::String m_bucket;
169 bool m_bucketHasBeenSet = false;
170
171 Aws::String m_contentMD5;
172 bool m_contentMD5HasBeenSet = false;
173
174 ChecksumAlgorithm m_checksumAlgorithm;
175 bool m_checksumAlgorithmHasBeenSet = false;
176
177 Aws::String m_mFA;
178 bool m_mFAHasBeenSet = false;
179
180 VersioningConfiguration m_versioningConfiguration;
181 bool m_versioningConfigurationHasBeenSet = false;
182
183 Aws::String m_expectedBucketOwner;
184 bool m_expectedBucketOwnerHasBeenSet = false;
185
186 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
187 bool m_customizedAccessLogTagHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace S3
192} // namespace Aws
PutBucketVersioningRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
PutBucketVersioningRequest & WithBucket(const char *value)
PutBucketVersioningRequest & WithMFA(Aws::String &&value)
PutBucketVersioningRequest & WithExpectedBucketOwner(Aws::String &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
PutBucketVersioningRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
void SetVersioningConfiguration(const VersioningConfiguration &value)
PutBucketVersioningRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutBucketVersioningRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
PutBucketVersioningRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
const ChecksumAlgorithm & GetChecksumAlgorithm() const
PutBucketVersioningRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
PutBucketVersioningRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
PutBucketVersioningRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutBucketVersioningRequest & WithMFA(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutBucketVersioningRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
PutBucketVersioningRequest & WithExpectedBucketOwner(const Aws::String &value)
void SetVersioningConfiguration(VersioningConfiguration &&value)
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
PutBucketVersioningRequest & WithBucket(Aws::String &&value)
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
PutBucketVersioningRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
PutBucketVersioningRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
PutBucketVersioningRequest & WithContentMD5(const char *value)
PutBucketVersioningRequest & WithBucket(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_S3_API Aws::String SerializePayload() const override
const VersioningConfiguration & GetVersioningConfiguration() const
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutBucketVersioningRequest & WithContentMD5(const Aws::String &value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutBucketVersioningRequest & WithContentMD5(Aws::String &&value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutBucketVersioningRequest & WithVersioningConfiguration(const VersioningConfiguration &value)
PutBucketVersioningRequest & WithMFA(const char *value)
PutBucketVersioningRequest & WithVersioningConfiguration(VersioningConfiguration &&value)
PutBucketVersioningRequest & WithExpectedBucketOwner(const char *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