AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutBucketOwnershipControlsRequest.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/OwnershipControls.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 "PutBucketOwnershipControls"; }
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
55 inline const Aws::String& GetBucket() const{ return m_bucket; }
56 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
57 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
58 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
59 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
60 inline PutBucketOwnershipControlsRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
61 inline PutBucketOwnershipControlsRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
62 inline PutBucketOwnershipControlsRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
64
66
71 inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
72 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
73 inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
74 inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
75 inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
76 inline PutBucketOwnershipControlsRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
77 inline PutBucketOwnershipControlsRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
78 inline PutBucketOwnershipControlsRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
80
82
87 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
88 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
89 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
90 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
91 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
94 inline PutBucketOwnershipControlsRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
96
98
103 inline const OwnershipControls& GetOwnershipControls() const{ return m_ownershipControls; }
104 inline bool OwnershipControlsHasBeenSet() const { return m_ownershipControlsHasBeenSet; }
105 inline void SetOwnershipControls(const OwnershipControls& value) { m_ownershipControlsHasBeenSet = true; m_ownershipControls = value; }
106 inline void SetOwnershipControls(OwnershipControls&& value) { m_ownershipControlsHasBeenSet = true; m_ownershipControls = std::move(value); }
110
112
113 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
114 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
115 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
116 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
119 inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
120 inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
121 inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
122 inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
123 inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
124 inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
125 inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
127 private:
128
129 Aws::String m_bucket;
130 bool m_bucketHasBeenSet = false;
131
132 Aws::String m_contentMD5;
133 bool m_contentMD5HasBeenSet = false;
134
135 Aws::String m_expectedBucketOwner;
136 bool m_expectedBucketOwnerHasBeenSet = false;
137
138 OwnershipControls m_ownershipControls;
139 bool m_ownershipControlsHasBeenSet = false;
140
141 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
142 bool m_customizedAccessLogTagHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace S3Crt
147} // namespace Aws
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutBucketOwnershipControlsRequest & WithOwnershipControls(const OwnershipControls &value)
AWS_S3CRT_API Aws::String SerializePayload() const override
PutBucketOwnershipControlsRequest & WithContentMD5(Aws::String &&value)
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutBucketOwnershipControlsRequest & WithExpectedBucketOwner(const Aws::String &value)
PutBucketOwnershipControlsRequest & WithExpectedBucketOwner(const char *value)
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
PutBucketOwnershipControlsRequest & WithExpectedBucketOwner(Aws::String &&value)
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
PutBucketOwnershipControlsRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutBucketOwnershipControlsRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutBucketOwnershipControlsRequest & WithBucket(const Aws::String &value)
PutBucketOwnershipControlsRequest & WithBucket(Aws::String &&value)
PutBucketOwnershipControlsRequest & WithContentMD5(const Aws::String &value)
PutBucketOwnershipControlsRequest & WithContentMD5(const char *value)
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutBucketOwnershipControlsRequest & WithOwnershipControls(OwnershipControls &&value)
PutBucketOwnershipControlsRequest & WithBucket(const char *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