AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
GetBucketMetricsConfigurationRequest.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
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace S3 {
19namespace Model {
20
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetBucketMetricsConfiguration"; }
32
33 AWS_S3_API Aws::String SerializePayload() const override;
34
35 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
39 AWS_S3_API bool HasEmbeddedError(IOStream& body, const Http::HeaderValueCollection& header) const override;
43 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
44
46
60 inline const Aws::String& GetBucket() const { return m_bucket; }
61 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
62 template <typename BucketT = Aws::String>
63 void SetBucket(BucketT&& value) {
64 m_bucketHasBeenSet = true;
65 m_bucket = std::forward<BucketT>(value);
66 }
67 template <typename BucketT = Aws::String>
69 SetBucket(std::forward<BucketT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetId() const { return m_id; }
81 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
82 template <typename IdT = Aws::String>
83 void SetId(IdT&& value) {
84 m_idHasBeenSet = true;
85 m_id = std::forward<IdT>(value);
86 }
87 template <typename IdT = Aws::String>
89 SetId(std::forward<IdT>(value));
90 return *this;
91 }
93
95
103 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
104 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
105 template <typename ExpectedBucketOwnerT = Aws::String>
106 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
107 m_expectedBucketOwnerHasBeenSet = true;
108 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
109 }
110 template <typename ExpectedBucketOwnerT = Aws::String>
112 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
113 return *this;
114 }
116
118
119 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
120 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
121 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
122 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
123 m_customizedAccessLogTagHasBeenSet = true;
124 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
125 }
126 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
128 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
129 return *this;
130 }
131 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
132 GetBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
133 m_customizedAccessLogTagHasBeenSet = true;
134 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_bucket;
140
141 Aws::String m_id;
142
143 Aws::String m_expectedBucketOwner;
144
145 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
146 bool m_bucketHasBeenSet = false;
147 bool m_idHasBeenSet = false;
148 bool m_expectedBucketOwnerHasBeenSet = false;
149 bool m_customizedAccessLogTagHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace S3
154} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
GetBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
GetBucketMetricsConfigurationRequest & WithId(IdT &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
GetBucketMetricsConfigurationRequest & WithBucket(BucketT &&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
GetBucketMetricsConfigurationRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
GetBucketMetricsConfigurationRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
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