AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
GetBucketEncryptionRequest.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
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace S3 {
19namespace Model {
20
24 public:
25 AWS_S3_API GetBucketEncryptionRequest() = 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 "GetBucketEncryption"; }
32
33 AWS_S3_API Aws::String SerializePayload() const override;
34
35 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
39 AWS_S3_API bool HasEmbeddedError(IOStream& body, const Http::HeaderValueCollection& header) const override;
43 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
44
46
60 inline const Aws::String& GetBucket() const { return m_bucket; }
61 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
62 template <typename BucketT = Aws::String>
63 void SetBucket(BucketT&& value) {
64 m_bucketHasBeenSet = true;
65 m_bucket = std::forward<BucketT>(value);
66 }
67 template <typename BucketT = Aws::String>
69 SetBucket(std::forward<BucketT>(value));
70 return *this;
71 }
73
75
83 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
84 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
85 template <typename ExpectedBucketOwnerT = Aws::String>
86 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
87 m_expectedBucketOwnerHasBeenSet = true;
88 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
89 }
90 template <typename ExpectedBucketOwnerT = Aws::String>
91 GetBucketEncryptionRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
92 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
93 return *this;
94 }
96
98
99 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
100 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
101 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
102 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
103 m_customizedAccessLogTagHasBeenSet = true;
104 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
105 }
106 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
107 GetBucketEncryptionRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
108 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
109 return *this;
110 }
111 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
112 GetBucketEncryptionRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
113 m_customizedAccessLogTagHasBeenSet = true;
114 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_bucket;
120 bool m_bucketHasBeenSet = false;
121
122 Aws::String m_expectedBucketOwner;
123 bool m_expectedBucketOwnerHasBeenSet = false;
124
125 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
126 bool m_customizedAccessLogTagHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace S3
131} // namespace Aws
GetBucketEncryptionRequest & WithBucket(BucketT &&value)
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
GetBucketEncryptionRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
GetBucketEncryptionRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
virtual const char * GetServiceRequestName() const override
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
GetBucketEncryptionRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
AWS_S3_API Aws::String SerializePayload() const override
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_S3_API GetBucketEncryptionRequest()=default
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