AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
PutBucketAnalyticsConfigurationRequest.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/AnalyticsConfiguration.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 "PutBucketAnalyticsConfiguration"; }
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
68 inline const Aws::String& GetId() const { return m_id; }
69 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
70 template <typename IdT = Aws::String>
71 void SetId(IdT&& value) {
72 m_idHasBeenSet = true;
73 m_id = std::forward<IdT>(value);
74 }
75 template <typename IdT = Aws::String>
77 SetId(std::forward<IdT>(value));
78 return *this;
79 }
81
83
86 inline const AnalyticsConfiguration& GetAnalyticsConfiguration() const { return m_analyticsConfiguration; }
87 inline bool AnalyticsConfigurationHasBeenSet() const { return m_analyticsConfigurationHasBeenSet; }
88 template <typename AnalyticsConfigurationT = AnalyticsConfiguration>
89 void SetAnalyticsConfiguration(AnalyticsConfigurationT&& value) {
90 m_analyticsConfigurationHasBeenSet = true;
91 m_analyticsConfiguration = std::forward<AnalyticsConfigurationT>(value);
92 }
93 template <typename AnalyticsConfigurationT = AnalyticsConfiguration>
95 SetAnalyticsConfiguration(std::forward<AnalyticsConfigurationT>(value));
96 return *this;
97 }
99
101
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) {
110 m_expectedBucketOwnerHasBeenSet = true;
111 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
112 }
113 template <typename ExpectedBucketOwnerT = Aws::String>
115 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
116 return *this;
117 }
119
121
122 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
123 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
124 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
125 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
126 m_customizedAccessLogTagHasBeenSet = true;
127 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
128 }
129 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
131 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
132 return *this;
133 }
134 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
136 CustomizedAccessLogTagValueT&& value) {
137 m_customizedAccessLogTagHasBeenSet = true;
138 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_bucket;
144 bool m_bucketHasBeenSet = false;
145
146 Aws::String m_id;
147 bool m_idHasBeenSet = false;
148
149 AnalyticsConfiguration m_analyticsConfiguration;
150 bool m_analyticsConfigurationHasBeenSet = false;
151
152 Aws::String m_expectedBucketOwner;
153 bool m_expectedBucketOwnerHasBeenSet = false;
154
155 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
156 bool m_customizedAccessLogTagHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace S3
161} // namespace Aws
PutBucketAnalyticsConfigurationRequest & WithId(IdT &&value)
PutBucketAnalyticsConfigurationRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
PutBucketAnalyticsConfigurationRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&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 bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
PutBucketAnalyticsConfigurationRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutBucketAnalyticsConfigurationRequest & WithAnalyticsConfiguration(AnalyticsConfigurationT &&value)
PutBucketAnalyticsConfigurationRequest & WithBucket(BucketT &&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