AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateBucketMetadataTableConfigurationRequest.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/MetadataTableConfiguration.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 "CreateBucketMetadataTableConfiguration"; }
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 CreateBucketMetadataTableConfigurationRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
65
67
71 inline const Aws::String& GetContentMD5() const { return m_contentMD5; }
72 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
73 template<typename ContentMD5T = Aws::String>
74 void SetContentMD5(ContentMD5T&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::forward<ContentMD5T>(value); }
75 template<typename ContentMD5T = Aws::String>
76 CreateBucketMetadataTableConfigurationRequest& WithContentMD5(ContentMD5T&& value) { SetContentMD5(std::forward<ContentMD5T>(value)); return *this;}
78
80
83 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
84 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
85 inline void SetChecksumAlgorithm(ChecksumAlgorithm value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
88
90
93 inline const MetadataTableConfiguration& GetMetadataTableConfiguration() const { return m_metadataTableConfiguration; }
94 inline bool MetadataTableConfigurationHasBeenSet() const { return m_metadataTableConfigurationHasBeenSet; }
95 template<typename MetadataTableConfigurationT = MetadataTableConfiguration>
96 void SetMetadataTableConfiguration(MetadataTableConfigurationT&& value) { m_metadataTableConfigurationHasBeenSet = true; m_metadataTableConfiguration = std::forward<MetadataTableConfigurationT>(value); }
97 template<typename MetadataTableConfigurationT = MetadataTableConfiguration>
98 CreateBucketMetadataTableConfigurationRequest& WithMetadataTableConfiguration(MetadataTableConfigurationT&& value) { SetMetadataTableConfiguration(std::forward<MetadataTableConfigurationT>(value)); return *this;}
100
102
106 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
107 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
108 template<typename ExpectedBucketOwnerT = Aws::String>
109 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
110 template<typename ExpectedBucketOwnerT = Aws::String>
111 CreateBucketMetadataTableConfigurationRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) { SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value)); return *this;}
113
115
116 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
117 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
118 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
119 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value); }
120 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
121 CreateBucketMetadataTableConfigurationRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value)); return *this;}
122 template<typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
123 CreateBucketMetadataTableConfigurationRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
124 m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value)); return *this;
125 }
127 private:
128
129 Aws::String m_bucket;
130 bool m_bucketHasBeenSet = false;
131
132 Aws::String m_contentMD5;
133 bool m_contentMD5HasBeenSet = false;
134
136 bool m_checksumAlgorithmHasBeenSet = false;
137
138 MetadataTableConfiguration m_metadataTableConfiguration;
139 bool m_metadataTableConfigurationHasBeenSet = false;
140
141 Aws::String m_expectedBucketOwner;
142 bool m_expectedBucketOwnerHasBeenSet = false;
143
144 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
145 bool m_customizedAccessLogTagHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace S3
150} // namespace Aws
CreateBucketMetadataTableConfigurationRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
CreateBucketMetadataTableConfigurationRequest & WithContentMD5(ContentMD5T &&value)
CreateBucketMetadataTableConfigurationRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
CreateBucketMetadataTableConfigurationRequest & WithMetadataTableConfiguration(MetadataTableConfigurationT &&value)
CreateBucketMetadataTableConfigurationRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
CreateBucketMetadataTableConfigurationRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_S3_API Aws::String SerializePayload() const override
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
CreateBucketMetadataTableConfigurationRequest & WithBucket(BucketT &&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_string< char, std::char_traits< char >, Aws::Allocator< char > > String