7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/s3/S3_EXPORTS.h>
9#include <aws/s3/model/ErrorDocument.h>
10#include <aws/s3/model/IndexDocument.h>
11#include <aws/s3/model/RedirectAllRequestsTo.h>
12#include <aws/s3/model/RoutingRule.h>
45 template <
typename ErrorDocumentT = ErrorDocument>
47 m_errorDocumentHasBeenSet =
true;
48 m_errorDocument = std::forward<ErrorDocumentT>(value);
50 template <
typename ErrorDocumentT = ErrorDocument>
63 template <
typename IndexDocumentT = IndexDocument>
65 m_indexDocumentHasBeenSet =
true;
66 m_indexDocument = std::forward<IndexDocumentT>(value);
68 template <
typename IndexDocumentT = IndexDocument>
83 template <
typename RedirectAllRequestsToT = RedirectAllRequestsTo>
85 m_redirectAllRequestsToHasBeenSet =
true;
86 m_redirectAllRequestsTo = std::forward<RedirectAllRequestsToT>(value);
88 template <
typename RedirectAllRequestsToT = RedirectAllRequestsTo>
101 template <
typename RoutingRulesT = Aws::Vector<RoutingRule>>
103 m_routingRulesHasBeenSet =
true;
104 m_routingRules = std::forward<RoutingRulesT>(value);
106 template <
typename RoutingRulesT = Aws::Vector<RoutingRule>>
111 template <
typename RoutingRulesT = RoutingRule>
113 m_routingRulesHasBeenSet =
true;
114 m_routingRules.emplace_back(std::forward<RoutingRulesT>(value));
126 bool m_errorDocumentHasBeenSet =
false;
127 bool m_indexDocumentHasBeenSet =
false;
128 bool m_redirectAllRequestsToHasBeenSet =
false;
129 bool m_routingRulesHasBeenSet =
false;
WebsiteConfiguration & WithErrorDocument(ErrorDocumentT &&value)
WebsiteConfiguration & WithRoutingRules(RoutingRulesT &&value)
WebsiteConfiguration & AddRoutingRules(RoutingRulesT &&value)
WebsiteConfiguration & WithIndexDocument(IndexDocumentT &&value)
bool RedirectAllRequestsToHasBeenSet() const
const IndexDocument & GetIndexDocument() const
bool IndexDocumentHasBeenSet() const
AWS_S3_API WebsiteConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< RoutingRule > & GetRoutingRules() const
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetIndexDocument(IndexDocumentT &&value)
AWS_S3_API WebsiteConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetErrorDocument(ErrorDocumentT &&value)
WebsiteConfiguration & WithRedirectAllRequestsTo(RedirectAllRequestsToT &&value)
bool ErrorDocumentHasBeenSet() const
void SetRedirectAllRequestsTo(RedirectAllRequestsToT &&value)
bool RoutingRulesHasBeenSet() const
void SetRoutingRules(RoutingRulesT &&value)
AWS_S3_API WebsiteConfiguration()=default
const ErrorDocument & GetErrorDocument() const
const RedirectAllRequestsTo & GetRedirectAllRequestsTo() const
std::vector< T, Aws::Allocator< T > > Vector