AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutBucketWebsiteRequest.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/s3/model/ChecksumAlgorithm.h>
11#include <aws/s3/model/WebsiteConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace S3
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_S3_API PutBucketWebsiteRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "PutBucketWebsite"; }
38
39 AWS_S3_API Aws::String SerializePayload() const override;
40
41 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
44
45 AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
46 AWS_S3_API Aws::String GetChecksumAlgorithmName() const override;
47 inline bool RequestChecksumRequired() const override { return true; };
48
52 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
53
55
58 inline const Aws::String& GetBucket() const { return m_bucket; }
59 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
60 template<typename BucketT = Aws::String>
61 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
62 template<typename BucketT = Aws::String>
63 PutBucketWebsiteRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
65
67
75 inline const Aws::String& GetContentMD5() const { return m_contentMD5; }
76 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
77 template<typename ContentMD5T = Aws::String>
78 void SetContentMD5(ContentMD5T&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::forward<ContentMD5T>(value); }
79 template<typename ContentMD5T = Aws::String>
80 PutBucketWebsiteRequest& WithContentMD5(ContentMD5T&& value) { SetContentMD5(std::forward<ContentMD5T>(value)); return *this;}
82
84
96 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
97 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
98 inline void SetChecksumAlgorithm(ChecksumAlgorithm value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
101
103
106 inline const WebsiteConfiguration& GetWebsiteConfiguration() const { return m_websiteConfiguration; }
107 inline bool WebsiteConfigurationHasBeenSet() const { return m_websiteConfigurationHasBeenSet; }
108 template<typename WebsiteConfigurationT = WebsiteConfiguration>
109 void SetWebsiteConfiguration(WebsiteConfigurationT&& value) { m_websiteConfigurationHasBeenSet = true; m_websiteConfiguration = std::forward<WebsiteConfigurationT>(value); }
110 template<typename WebsiteConfigurationT = WebsiteConfiguration>
111 PutBucketWebsiteRequest& WithWebsiteConfiguration(WebsiteConfigurationT&& value) { SetWebsiteConfiguration(std::forward<WebsiteConfigurationT>(value)); return *this;}
113
115
120 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
121 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
122 template<typename ExpectedBucketOwnerT = Aws::String>
123 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
124 template<typename ExpectedBucketOwnerT = Aws::String>
125 PutBucketWebsiteRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) { SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value)); return *this;}
127
129
130 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
131 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
132 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
133 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value); }
134 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
135 PutBucketWebsiteRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value)); return *this;}
136 template<typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
137 PutBucketWebsiteRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
138 m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value)); return *this;
139 }
141 private:
142
143 Aws::String m_bucket;
144 bool m_bucketHasBeenSet = false;
145
146 Aws::String m_contentMD5;
147 bool m_contentMD5HasBeenSet = false;
148
150 bool m_checksumAlgorithmHasBeenSet = false;
151
152 WebsiteConfiguration m_websiteConfiguration;
153 bool m_websiteConfigurationHasBeenSet = false;
154
155 Aws::String m_expectedBucketOwner;
156 bool m_expectedBucketOwnerHasBeenSet = false;
157
158 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
159 bool m_customizedAccessLogTagHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace S3
164} // namespace Aws
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
PutBucketWebsiteRequest & WithBucket(BucketT &&value)
PutBucketWebsiteRequest & WithWebsiteConfiguration(WebsiteConfigurationT &&value)
PutBucketWebsiteRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
PutBucketWebsiteRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutBucketWebsiteRequest & WithContentMD5(ContentMD5T &&value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutBucketWebsiteRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
AWS_S3_API Aws::String SerializePayload() const override
void SetChecksumAlgorithm(ChecksumAlgorithm value)
virtual const char * GetServiceRequestName() const override
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
void SetWebsiteConfiguration(WebsiteConfigurationT &&value)
AWS_S3_API PutBucketWebsiteRequest()=default
PutBucketWebsiteRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const WebsiteConfiguration & GetWebsiteConfiguration() const
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