AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HeadBucketRequest.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/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace S3Crt
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_S3CRT_API HeadBucketRequest();
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 "HeadBucket"; }
36
37 AWS_S3CRT_API Aws::String SerializePayload() const override;
38
39 AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
43 AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
47 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
48
50
89 inline const Aws::String& GetBucket() const{ return m_bucket; }
90 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
91 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
92 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
93 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
94 inline HeadBucketRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
95 inline HeadBucketRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
96 inline HeadBucketRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
98
100
105 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
106 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
107 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
108 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
109 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
111 inline HeadBucketRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
112 inline HeadBucketRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
114
116
117 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
118 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
119 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
120 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
123 inline HeadBucketRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
124 inline HeadBucketRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
125 inline HeadBucketRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
126 inline HeadBucketRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
127 inline HeadBucketRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
128 inline HeadBucketRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
129 inline HeadBucketRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
131 private:
132
133 Aws::String m_bucket;
134 bool m_bucketHasBeenSet = false;
135
136 Aws::String m_expectedBucketOwner;
137 bool m_expectedBucketOwnerHasBeenSet = false;
138
139 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
140 bool m_customizedAccessLogTagHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace S3Crt
145} // namespace Aws
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
void SetExpectedBucketOwner(const char *value)
const Aws::String & GetExpectedBucketOwner() const
HeadBucketRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
HeadBucketRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
AWS_S3CRT_API Aws::String SerializePayload() const override
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
HeadBucketRequest & WithBucket(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
HeadBucketRequest & WithExpectedBucketOwner(Aws::String &&value)
void SetExpectedBucketOwner(const Aws::String &value)
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
HeadBucketRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
HeadBucketRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
HeadBucketRequest & WithBucket(const char *value)
HeadBucketRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
HeadBucketRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
void SetExpectedBucketOwner(Aws::String &&value)
HeadBucketRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
void SetBucket(const Aws::String &value)
void SetBucket(Aws::String &&value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
HeadBucketRequest & WithExpectedBucketOwner(const char *value)
const Aws::String & GetBucket() const
HeadBucketRequest & WithExpectedBucketOwner(const Aws::String &value)
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
HeadBucketRequest & WithBucket(Aws::String &&value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
HeadBucketRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
HeadBucketRequest & AddCustomizedAccessLogTag(Aws::String &&key, 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