AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetBucketPolicyRequest.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.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 "GetBucketPolicy"; }
36
37 AWS_S3_API Aws::String SerializePayload() const override;
38
39 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
43 AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
47 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
48
50
73 inline const Aws::String& GetBucket() const{ return m_bucket; }
74 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
75 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
76 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
77 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
78 inline GetBucketPolicyRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
79 inline GetBucketPolicyRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
80 inline GetBucketPolicyRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
82
84
92 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
93 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
94 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
95 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
96 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
98 inline GetBucketPolicyRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
99 inline GetBucketPolicyRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
101
103
104 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
105 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
106 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
107 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
110 inline GetBucketPolicyRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
111 inline GetBucketPolicyRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
112 inline GetBucketPolicyRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
113 inline GetBucketPolicyRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
114 inline GetBucketPolicyRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
115 inline GetBucketPolicyRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
116 inline GetBucketPolicyRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
118 private:
119
120 Aws::String m_bucket;
121 bool m_bucketHasBeenSet = false;
122
123 Aws::String m_expectedBucketOwner;
124 bool m_expectedBucketOwnerHasBeenSet = false;
125
126 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
127 bool m_customizedAccessLogTagHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace S3
132} // namespace Aws
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetBucketPolicyRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
GetBucketPolicyRequest & WithExpectedBucketOwner(const Aws::String &value)
GetBucketPolicyRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetExpectedBucketOwner() const
GetBucketPolicyRequest & WithBucket(const Aws::String &value)
GetBucketPolicyRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
void SetExpectedBucketOwner(const Aws::String &value)
GetBucketPolicyRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetBucket(const Aws::String &value)
GetBucketPolicyRequest & WithExpectedBucketOwner(Aws::String &&value)
GetBucketPolicyRequest & WithBucket(const char *value)
GetBucketPolicyRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
GetBucketPolicyRequest & WithBucket(Aws::String &&value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
AWS_S3_API Aws::String SerializePayload() const override
GetBucketPolicyRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
GetBucketPolicyRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
GetBucketPolicyRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
GetBucketPolicyRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
GetBucketPolicyRequest & WithExpectedBucketOwner(const char *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_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String