AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
PutBucketMetricsConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3/S3Request.h>
10#include <aws/s3/S3_EXPORTS.h>
11#include <aws/s3/model/MetricsConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace S3 {
20namespace Model {
21
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutBucketMetricsConfiguration"; }
33
34 AWS_S3_API Aws::String SerializePayload() const override;
35
36 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
40 AWS_S3_API bool HasEmbeddedError(IOStream& body, const Http::HeaderValueCollection& header) const override;
44 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
45
47
50 inline const Aws::String& GetBucket() const { return m_bucket; }
51 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
52 template <typename BucketT = Aws::String>
53 void SetBucket(BucketT&& value) {
54 m_bucketHasBeenSet = true;
55 m_bucket = std::forward<BucketT>(value);
56 }
57 template <typename BucketT = Aws::String>
59 SetBucket(std::forward<BucketT>(value));
60 return *this;
61 }
63
65
70 inline const Aws::String& GetId() const { return m_id; }
71 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
72 template <typename IdT = Aws::String>
73 void SetId(IdT&& value) {
74 m_idHasBeenSet = true;
75 m_id = std::forward<IdT>(value);
76 }
77 template <typename IdT = Aws::String>
79 SetId(std::forward<IdT>(value));
80 return *this;
81 }
83
85
88 inline const MetricsConfiguration& GetMetricsConfiguration() const { return m_metricsConfiguration; }
89 inline bool MetricsConfigurationHasBeenSet() const { return m_metricsConfigurationHasBeenSet; }
90 template <typename MetricsConfigurationT = MetricsConfiguration>
91 void SetMetricsConfiguration(MetricsConfigurationT&& value) {
92 m_metricsConfigurationHasBeenSet = true;
93 m_metricsConfiguration = std::forward<MetricsConfigurationT>(value);
94 }
95 template <typename MetricsConfigurationT = MetricsConfiguration>
97 SetMetricsConfiguration(std::forward<MetricsConfigurationT>(value));
98 return *this;
99 }
101
103
108 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
109 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
110 template <typename ExpectedBucketOwnerT = Aws::String>
111 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
112 m_expectedBucketOwnerHasBeenSet = true;
113 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
114 }
115 template <typename ExpectedBucketOwnerT = Aws::String>
117 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
118 return *this;
119 }
121
123
124 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
125 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
126 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
127 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
128 m_customizedAccessLogTagHasBeenSet = true;
129 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
130 }
131 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
133 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
134 return *this;
135 }
136 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
137 PutBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
138 m_customizedAccessLogTagHasBeenSet = true;
139 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_bucket;
145 bool m_bucketHasBeenSet = false;
146
147 Aws::String m_id;
148 bool m_idHasBeenSet = false;
149
150 MetricsConfiguration m_metricsConfiguration;
151 bool m_metricsConfigurationHasBeenSet = false;
152
153 Aws::String m_expectedBucketOwner;
154 bool m_expectedBucketOwnerHasBeenSet = false;
155
156 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
157 bool m_customizedAccessLogTagHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace S3
162} // namespace Aws
PutBucketMetricsConfigurationRequest & WithMetricsConfiguration(MetricsConfigurationT &&value)
PutBucketMetricsConfigurationRequest & WithId(IdT &&value)
PutBucketMetricsConfigurationRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutBucketMetricsConfigurationRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutBucketMetricsConfigurationRequest & WithBucket(BucketT &&value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3_API Aws::String SerializePayload() const override
Aws::Endpoint::EndpointParameters EndpointParameters
Definition S3Request.h:19
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