7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/model/ErrorDocument.h>
9#include <aws/s3/model/IndexDocument.h>
10#include <aws/s3/model/RedirectAllRequestsTo.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/s3/model/RoutingRule.h>
51 template<
typename ErrorDocumentT = ErrorDocument>
52 void SetErrorDocument(ErrorDocumentT&& value) { m_errorDocumentHasBeenSet =
true; m_errorDocument = std::forward<ErrorDocumentT>(value); }
53 template<
typename ErrorDocumentT = ErrorDocument>
63 template<
typename IndexDocumentT = IndexDocument>
64 void SetIndexDocument(IndexDocumentT&& value) { m_indexDocumentHasBeenSet =
true; m_indexDocument = std::forward<IndexDocumentT>(value); }
65 template<
typename IndexDocumentT = IndexDocument>
77 template<
typename RedirectAllRequestsToT = RedirectAllRequestsTo>
78 void SetRedirectAllRequestsTo(RedirectAllRequestsToT&& value) { m_redirectAllRequestsToHasBeenSet =
true; m_redirectAllRequestsTo = std::forward<RedirectAllRequestsToT>(value); }
79 template<
typename RedirectAllRequestsToT = RedirectAllRequestsTo>
89 template<
typename RoutingRulesT = Aws::Vector<RoutingRule>>
90 void SetRoutingRules(RoutingRulesT&& value) { m_routingRulesHasBeenSet =
true; m_routingRules = std::forward<RoutingRulesT>(value); }
91 template<
typename RoutingRulesT = Aws::Vector<RoutingRule>>
93 template<
typename RoutingRulesT = RoutingRule>
99 bool m_errorDocumentHasBeenSet =
false;
102 bool m_indexDocumentHasBeenSet =
false;
105 bool m_redirectAllRequestsToHasBeenSet =
false;
108 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