AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
GetBucketOwnershipControlsRequest.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace S3
20{
21namespace Model
22{
23
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GetBucketOwnershipControls"; }
36
38
40
42
47
52 inline const Aws::String& GetBucket() const{ return m_bucket; }
53
58 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
59
64 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
65
70 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
71
76 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
77
82 inline GetBucketOwnershipControlsRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
83
88 inline GetBucketOwnershipControlsRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
89
94 inline GetBucketOwnershipControlsRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
95
96
102 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
103
109 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
110
116 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
117
123 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
124
130 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
131
138
145
151 inline GetBucketOwnershipControlsRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
152
153
154
155 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
156
157
158 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
159
160
161 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
162
163
164 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
165
166
168
169
171
172
173 inline GetBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
174
175
176 inline GetBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
177
178
179 inline GetBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
180
181
182 inline GetBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
183
184
185 inline GetBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
186
187
188 inline GetBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
189
190
191 inline GetBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
192
193 private:
194
195 Aws::String m_bucket;
196 bool m_bucketHasBeenSet = false;
197
198 Aws::String m_expectedBucketOwner;
199 bool m_expectedBucketOwnerHasBeenSet = false;
200
201 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
202 bool m_customizedAccessLogTagHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace S3
207} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
GetBucketOwnershipControlsRequest & WithBucket(Aws::String &&value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
GetBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
GetBucketOwnershipControlsRequest & WithBucket(const char *value)
GetBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
AWS_S3_API Aws::String SerializePayload() const override
GetBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetBucketOwnershipControlsRequest & WithExpectedBucketOwner(Aws::String &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
GetBucketOwnershipControlsRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
GetBucketOwnershipControlsRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
GetBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
GetBucketOwnershipControlsRequest & WithBucket(const Aws::String &value)
GetBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
GetBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
GetBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
GetBucketOwnershipControlsRequest & WithExpectedBucketOwner(const char *value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetBucketOwnershipControlsRequest & WithExpectedBucketOwner(const Aws::String &value)
Aws::Endpoint::EndpointParameters EndpointParameters
Definition: S3Request.h:22
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String