AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
GetBucketPolicyRequest.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
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace S3Crt {
19namespace Model {
20
24 public:
25 AWS_S3CRT_API GetBucketPolicyRequest() = default;
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 "GetBucketPolicy"; }
32
33 AWS_S3CRT_API Aws::String SerializePayload() const override;
34
35 AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
39 AWS_S3CRT_API bool HasEmbeddedError(IOStream& body, const Http::HeaderValueCollection& header) const override;
43 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
44
46
70 inline const Aws::String& GetBucket() const { return m_bucket; }
71 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
72 template <typename BucketT = Aws::String>
73 void SetBucket(BucketT&& value) {
74 m_bucketHasBeenSet = true;
75 m_bucket = std::forward<BucketT>(value);
76 }
77 template <typename BucketT = Aws::String>
79 SetBucket(std::forward<BucketT>(value));
80 return *this;
81 }
83
85
93 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
94 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
95 template <typename ExpectedBucketOwnerT = Aws::String>
96 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
97 m_expectedBucketOwnerHasBeenSet = true;
98 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
99 }
100 template <typename ExpectedBucketOwnerT = Aws::String>
101 GetBucketPolicyRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
102 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
103 return *this;
104 }
106
108
109 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
110 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
111 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
112 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
113 m_customizedAccessLogTagHasBeenSet = true;
114 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
115 }
116 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
117 GetBucketPolicyRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
118 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
119 return *this;
120 }
121 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
122 GetBucketPolicyRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
123 m_customizedAccessLogTagHasBeenSet = true;
124 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_bucket;
130 bool m_bucketHasBeenSet = false;
131
132 Aws::String m_expectedBucketOwner;
133 bool m_expectedBucketOwnerHasBeenSet = false;
134
135 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
136 bool m_customizedAccessLogTagHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace S3Crt
141} // namespace Aws
GetBucketPolicyRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
GetBucketPolicyRequest & WithBucket(BucketT &&value)
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
GetBucketPolicyRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
virtual const char * GetServiceRequestName() const override
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_S3CRT_API GetBucketPolicyRequest()=default
GetBucketPolicyRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3CRT_API Aws::String SerializePayload() const override
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