AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateBucketMetadataConfigurationRequest.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/MetadataConfiguration.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 "CreateBucketMetadataConfiguration"; }
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 Aws::String GetChecksumAlgorithmName() const override;
46 inline bool RequestChecksumRequired() const override { return true; };
47
51 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
52
54
58 inline const Aws::String& GetBucket() const { return m_bucket; }
59 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
60 template<typename BucketT = Aws::String>
61 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
62 template<typename BucketT = Aws::String>
63 CreateBucketMetadataConfigurationRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
65
67
70 inline const Aws::String& GetContentMD5() const { return m_contentMD5; }
71 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
72 template<typename ContentMD5T = Aws::String>
73 void SetContentMD5(ContentMD5T&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::forward<ContentMD5T>(value); }
74 template<typename ContentMD5T = Aws::String>
75 CreateBucketMetadataConfigurationRequest& WithContentMD5(ContentMD5T&& value) { SetContentMD5(std::forward<ContentMD5T>(value)); return *this;}
77
79
82 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
83 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
84 inline void SetChecksumAlgorithm(ChecksumAlgorithm value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
87
89
92 inline const MetadataConfiguration& GetMetadataConfiguration() const { return m_metadataConfiguration; }
93 inline bool MetadataConfigurationHasBeenSet() const { return m_metadataConfigurationHasBeenSet; }
94 template<typename MetadataConfigurationT = MetadataConfiguration>
95 void SetMetadataConfiguration(MetadataConfigurationT&& value) { m_metadataConfigurationHasBeenSet = true; m_metadataConfiguration = std::forward<MetadataConfigurationT>(value); }
96 template<typename MetadataConfigurationT = MetadataConfiguration>
97 CreateBucketMetadataConfigurationRequest& WithMetadataConfiguration(MetadataConfigurationT&& value) { SetMetadataConfiguration(std::forward<MetadataConfigurationT>(value)); return *this;}
99
101
105 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
106 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
107 template<typename ExpectedBucketOwnerT = Aws::String>
108 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
109 template<typename ExpectedBucketOwnerT = Aws::String>
110 CreateBucketMetadataConfigurationRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) { SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value)); return *this;}
112
114
115 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
116 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
117 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
118 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value); }
119 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
120 CreateBucketMetadataConfigurationRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value)); return *this;}
121 template<typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
122 CreateBucketMetadataConfigurationRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
123 m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value)); return *this;
124 }
126 private:
127
128 Aws::String m_bucket;
129 bool m_bucketHasBeenSet = false;
130
131 Aws::String m_contentMD5;
132 bool m_contentMD5HasBeenSet = false;
133
135 bool m_checksumAlgorithmHasBeenSet = false;
136
137 MetadataConfiguration m_metadataConfiguration;
138 bool m_metadataConfigurationHasBeenSet = false;
139
140 Aws::String m_expectedBucketOwner;
141 bool m_expectedBucketOwnerHasBeenSet = false;
142
143 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
144 bool m_customizedAccessLogTagHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace S3
149} // namespace Aws
CreateBucketMetadataConfigurationRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
CreateBucketMetadataConfigurationRequest & WithMetadataConfiguration(MetadataConfigurationT &&value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateBucketMetadataConfigurationRequest & WithBucket(BucketT &&value)
CreateBucketMetadataConfigurationRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
CreateBucketMetadataConfigurationRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
CreateBucketMetadataConfigurationRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
CreateBucketMetadataConfigurationRequest & WithContentMD5(ContentMD5T &&value)
AWS_S3_API Aws::String SerializePayload() const override
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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_string< char, std::char_traits< char >, Aws::Allocator< char > > String