AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
WebsiteConfiguration.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace S3
25{
26namespace Model
27{
28
36 {
37 public:
41
43
44
48 inline const ErrorDocument& GetErrorDocument() const{ return m_errorDocument; }
49
53 inline bool ErrorDocumentHasBeenSet() const { return m_errorDocumentHasBeenSet; }
54
58 inline void SetErrorDocument(const ErrorDocument& value) { m_errorDocumentHasBeenSet = true; m_errorDocument = value; }
59
63 inline void SetErrorDocument(ErrorDocument&& value) { m_errorDocumentHasBeenSet = true; m_errorDocument = std::move(value); }
64
68 inline WebsiteConfiguration& WithErrorDocument(const ErrorDocument& value) { SetErrorDocument(value); return *this;}
69
73 inline WebsiteConfiguration& WithErrorDocument(ErrorDocument&& value) { SetErrorDocument(std::move(value)); return *this;}
74
75
79 inline const IndexDocument& GetIndexDocument() const{ return m_indexDocument; }
80
84 inline bool IndexDocumentHasBeenSet() const { return m_indexDocumentHasBeenSet; }
85
89 inline void SetIndexDocument(const IndexDocument& value) { m_indexDocumentHasBeenSet = true; m_indexDocument = value; }
90
94 inline void SetIndexDocument(IndexDocument&& value) { m_indexDocumentHasBeenSet = true; m_indexDocument = std::move(value); }
95
99 inline WebsiteConfiguration& WithIndexDocument(const IndexDocument& value) { SetIndexDocument(value); return *this;}
100
104 inline WebsiteConfiguration& WithIndexDocument(IndexDocument&& value) { SetIndexDocument(std::move(value)); return *this;}
105
106
112 inline const RedirectAllRequestsTo& GetRedirectAllRequestsTo() const{ return m_redirectAllRequestsTo; }
113
119 inline bool RedirectAllRequestsToHasBeenSet() const { return m_redirectAllRequestsToHasBeenSet; }
120
126 inline void SetRedirectAllRequestsTo(const RedirectAllRequestsTo& value) { m_redirectAllRequestsToHasBeenSet = true; m_redirectAllRequestsTo = value; }
127
133 inline void SetRedirectAllRequestsTo(RedirectAllRequestsTo&& value) { m_redirectAllRequestsToHasBeenSet = true; m_redirectAllRequestsTo = std::move(value); }
134
141
148
149
153 inline const Aws::Vector<RoutingRule>& GetRoutingRules() const{ return m_routingRules; }
154
158 inline bool RoutingRulesHasBeenSet() const { return m_routingRulesHasBeenSet; }
159
163 inline void SetRoutingRules(const Aws::Vector<RoutingRule>& value) { m_routingRulesHasBeenSet = true; m_routingRules = value; }
164
168 inline void SetRoutingRules(Aws::Vector<RoutingRule>&& value) { m_routingRulesHasBeenSet = true; m_routingRules = std::move(value); }
169
174
178 inline WebsiteConfiguration& WithRoutingRules(Aws::Vector<RoutingRule>&& value) { SetRoutingRules(std::move(value)); return *this;}
179
183 inline WebsiteConfiguration& AddRoutingRules(const RoutingRule& value) { m_routingRulesHasBeenSet = true; m_routingRules.push_back(value); return *this; }
184
188 inline WebsiteConfiguration& AddRoutingRules(RoutingRule&& value) { m_routingRulesHasBeenSet = true; m_routingRules.push_back(std::move(value)); return *this; }
189
190 private:
191
192 ErrorDocument m_errorDocument;
193 bool m_errorDocumentHasBeenSet = false;
194
195 IndexDocument m_indexDocument;
196 bool m_indexDocumentHasBeenSet = false;
197
198 RedirectAllRequestsTo m_redirectAllRequestsTo;
199 bool m_redirectAllRequestsToHasBeenSet = false;
200
201 Aws::Vector<RoutingRule> m_routingRules;
202 bool m_routingRulesHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace S3
207} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
void SetRoutingRules(Aws::Vector< RoutingRule > &&value)
void SetErrorDocument(const ErrorDocument &value)
const IndexDocument & GetIndexDocument() const
WebsiteConfiguration & WithErrorDocument(ErrorDocument &&value)
WebsiteConfiguration & WithErrorDocument(const ErrorDocument &value)
AWS_S3_API WebsiteConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< RoutingRule > & GetRoutingRules() const
WebsiteConfiguration & WithRedirectAllRequestsTo(RedirectAllRequestsTo &&value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
WebsiteConfiguration & WithIndexDocument(const IndexDocument &value)
WebsiteConfiguration & AddRoutingRules(const RoutingRule &value)
AWS_S3_API WebsiteConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
WebsiteConfiguration & WithRedirectAllRequestsTo(const RedirectAllRequestsTo &value)
void SetIndexDocument(const IndexDocument &value)
void SetIndexDocument(IndexDocument &&value)
void SetRedirectAllRequestsTo(RedirectAllRequestsTo &&value)
WebsiteConfiguration & WithRoutingRules(Aws::Vector< RoutingRule > &&value)
WebsiteConfiguration & WithIndexDocument(IndexDocument &&value)
void SetErrorDocument(ErrorDocument &&value)
void SetRoutingRules(const Aws::Vector< RoutingRule > &value)
void SetRedirectAllRequestsTo(const RedirectAllRequestsTo &value)
WebsiteConfiguration & AddRoutingRules(RoutingRule &&value)
WebsiteConfiguration & WithRoutingRules(const Aws::Vector< RoutingRule > &value)
const ErrorDocument & GetErrorDocument() const
const RedirectAllRequestsTo & GetRedirectAllRequestsTo() const
std::vector< T, Aws::Allocator< T > > Vector