AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetObjectRetentionRequest.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-crt/S3CrtRequest.h>
10#include <aws/s3-crt/S3Crt_EXPORTS.h>
11#include <aws/s3-crt/model/RequestPayer.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace S3Crt {
20namespace Model {
21
25 public:
26 AWS_S3CRT_API GetObjectRetentionRequest() = default;
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 "GetObjectRetention"; }
33
34 AWS_S3CRT_API Aws::String SerializePayload() const override;
35
36 AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
40 AWS_S3CRT_API bool HasEmbeddedError(IOStream& body, const Http::HeaderValueCollection& header) const override;
44 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
45
47
63 inline const Aws::String& GetBucket() const { return m_bucket; }
64 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
65 template <typename BucketT = Aws::String>
66 void SetBucket(BucketT&& value) {
67 m_bucketHasBeenSet = true;
68 m_bucket = std::forward<BucketT>(value);
69 }
70 template <typename BucketT = Aws::String>
72 SetBucket(std::forward<BucketT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetKey() const { return m_key; }
83 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
84 template <typename KeyT = Aws::String>
85 void SetKey(KeyT&& value) {
86 m_keyHasBeenSet = true;
87 m_key = std::forward<KeyT>(value);
88 }
89 template <typename KeyT = Aws::String>
91 SetKey(std::forward<KeyT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetVersionId() const { return m_versionId; }
102 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
103 template <typename VersionIdT = Aws::String>
104 void SetVersionId(VersionIdT&& value) {
105 m_versionIdHasBeenSet = true;
106 m_versionId = std::forward<VersionIdT>(value);
107 }
108 template <typename VersionIdT = Aws::String>
110 SetVersionId(std::forward<VersionIdT>(value));
111 return *this;
112 }
114
116
117 inline RequestPayer GetRequestPayer() const { return m_requestPayer; }
118 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
119 inline void SetRequestPayer(RequestPayer value) {
120 m_requestPayerHasBeenSet = true;
121 m_requestPayer = value;
122 }
124 SetRequestPayer(value);
125 return *this;
126 }
128
130
135 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
136 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
137 template <typename ExpectedBucketOwnerT = Aws::String>
138 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
139 m_expectedBucketOwnerHasBeenSet = true;
140 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
141 }
142 template <typename ExpectedBucketOwnerT = Aws::String>
143 GetObjectRetentionRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
144 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
145 return *this;
146 }
148
150
151 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
152 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
153 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
154 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
155 m_customizedAccessLogTagHasBeenSet = true;
156 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
157 }
158 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
159 GetObjectRetentionRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
160 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
161 return *this;
162 }
163 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
164 GetObjectRetentionRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
165 m_customizedAccessLogTagHasBeenSet = true;
166 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
167 return *this;
168 }
170 private:
171 Aws::String m_bucket;
172
173 Aws::String m_key;
174
175 Aws::String m_versionId;
176
177 RequestPayer m_requestPayer{RequestPayer::NOT_SET};
178
179 Aws::String m_expectedBucketOwner;
180
181 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
182 bool m_bucketHasBeenSet = false;
183 bool m_keyHasBeenSet = false;
184 bool m_versionIdHasBeenSet = false;
185 bool m_requestPayerHasBeenSet = false;
186 bool m_expectedBucketOwnerHasBeenSet = false;
187 bool m_customizedAccessLogTagHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace S3Crt
192} // namespace Aws
GetObjectRetentionRequest & WithKey(KeyT &&value)
GetObjectRetentionRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
AWS_S3CRT_API Aws::String SerializePayload() const override
GetObjectRetentionRequest & WithBucket(BucketT &&value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetObjectRetentionRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
GetObjectRetentionRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3CRT_API GetObjectRetentionRequest()=default
GetObjectRetentionRequest & WithVersionId(VersionIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
GetObjectRetentionRequest & WithRequestPayer(RequestPayer 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