AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutBucketMetricsConfigurationRequest.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/S3CrtRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3-crt/model/MetricsConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace S3Crt
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "PutBucketMetricsConfiguration"; }
37
38 AWS_S3CRT_API Aws::String SerializePayload() const override;
39
40 AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
43
44 AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
48 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
49
51
54 inline const Aws::String& GetBucket() const{ return m_bucket; }
55 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
56 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
57 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
58 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
59 inline PutBucketMetricsConfigurationRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
60 inline PutBucketMetricsConfigurationRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
61 inline PutBucketMetricsConfigurationRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
63
65
70 inline const Aws::String& GetId() const{ return m_id; }
71 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
72 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
73 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
74 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
75 inline PutBucketMetricsConfigurationRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
76 inline PutBucketMetricsConfigurationRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
77 inline PutBucketMetricsConfigurationRequest& WithId(const char* value) { SetId(value); return *this;}
79
81
84 inline const MetricsConfiguration& GetMetricsConfiguration() const{ return m_metricsConfiguration; }
85 inline bool MetricsConfigurationHasBeenSet() const { return m_metricsConfigurationHasBeenSet; }
86 inline void SetMetricsConfiguration(const MetricsConfiguration& value) { m_metricsConfigurationHasBeenSet = true; m_metricsConfiguration = value; }
87 inline void SetMetricsConfiguration(MetricsConfiguration&& value) { m_metricsConfigurationHasBeenSet = true; m_metricsConfiguration = std::move(value); }
91
93
98 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
99 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
100 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
101 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
102 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
107
109
110 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
111 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
112 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
113 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
116 inline PutBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
117 inline PutBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
118 inline PutBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
119 inline PutBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
120 inline PutBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
121 inline PutBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
122 inline PutBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
124 private:
125
126 Aws::String m_bucket;
127 bool m_bucketHasBeenSet = false;
128
129 Aws::String m_id;
130 bool m_idHasBeenSet = false;
131
132 MetricsConfiguration m_metricsConfiguration;
133 bool m_metricsConfigurationHasBeenSet = false;
134
135 Aws::String m_expectedBucketOwner;
136 bool m_expectedBucketOwnerHasBeenSet = false;
137
138 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
139 bool m_customizedAccessLogTagHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace S3Crt
144} // namespace Aws
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
PutBucketMetricsConfigurationRequest & WithMetricsConfiguration(const MetricsConfiguration &value)
PutBucketMetricsConfigurationRequest & WithId(const Aws::String &value)
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
AWS_S3CRT_API Aws::String SerializePayload() const override
PutBucketMetricsConfigurationRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
PutBucketMetricsConfigurationRequest & WithExpectedBucketOwner(const Aws::String &value)
PutBucketMetricsConfigurationRequest & WithExpectedBucketOwner(const char *value)
PutBucketMetricsConfigurationRequest & WithBucket(const char *value)
PutBucketMetricsConfigurationRequest & WithMetricsConfiguration(MetricsConfiguration &&value)
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
PutBucketMetricsConfigurationRequest & WithBucket(const Aws::String &value)
PutBucketMetricsConfigurationRequest & WithId(Aws::String &&value)
PutBucketMetricsConfigurationRequest & WithBucket(Aws::String &&value)
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutBucketMetricsConfigurationRequest & WithId(const char *value)
PutBucketMetricsConfigurationRequest & WithExpectedBucketOwner(Aws::String &&value)
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
PutBucketMetricsConfigurationRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Aws::Endpoint::EndpointParameters EndpointParameters
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