AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WebsiteConfiguration.h
1
6#pragma once
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>
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
42 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43
44
46
49 inline const ErrorDocument& GetErrorDocument() const{ return m_errorDocument; }
50 inline bool ErrorDocumentHasBeenSet() const { return m_errorDocumentHasBeenSet; }
51 inline void SetErrorDocument(const ErrorDocument& value) { m_errorDocumentHasBeenSet = true; m_errorDocument = value; }
52 inline void SetErrorDocument(ErrorDocument&& value) { m_errorDocumentHasBeenSet = true; m_errorDocument = std::move(value); }
53 inline WebsiteConfiguration& WithErrorDocument(const ErrorDocument& value) { SetErrorDocument(value); return *this;}
54 inline WebsiteConfiguration& WithErrorDocument(ErrorDocument&& value) { SetErrorDocument(std::move(value)); return *this;}
56
58
61 inline const IndexDocument& GetIndexDocument() const{ return m_indexDocument; }
62 inline bool IndexDocumentHasBeenSet() const { return m_indexDocumentHasBeenSet; }
63 inline void SetIndexDocument(const IndexDocument& value) { m_indexDocumentHasBeenSet = true; m_indexDocument = value; }
64 inline void SetIndexDocument(IndexDocument&& value) { m_indexDocumentHasBeenSet = true; m_indexDocument = std::move(value); }
65 inline WebsiteConfiguration& WithIndexDocument(const IndexDocument& value) { SetIndexDocument(value); return *this;}
66 inline WebsiteConfiguration& WithIndexDocument(IndexDocument&& value) { SetIndexDocument(std::move(value)); return *this;}
68
70
75 inline const RedirectAllRequestsTo& GetRedirectAllRequestsTo() const{ return m_redirectAllRequestsTo; }
76 inline bool RedirectAllRequestsToHasBeenSet() const { return m_redirectAllRequestsToHasBeenSet; }
77 inline void SetRedirectAllRequestsTo(const RedirectAllRequestsTo& value) { m_redirectAllRequestsToHasBeenSet = true; m_redirectAllRequestsTo = value; }
78 inline void SetRedirectAllRequestsTo(RedirectAllRequestsTo&& value) { m_redirectAllRequestsToHasBeenSet = true; m_redirectAllRequestsTo = std::move(value); }
82
84
87 inline const Aws::Vector<RoutingRule>& GetRoutingRules() const{ return m_routingRules; }
88 inline bool RoutingRulesHasBeenSet() const { return m_routingRulesHasBeenSet; }
89 inline void SetRoutingRules(const Aws::Vector<RoutingRule>& value) { m_routingRulesHasBeenSet = true; m_routingRules = value; }
90 inline void SetRoutingRules(Aws::Vector<RoutingRule>&& value) { m_routingRulesHasBeenSet = true; m_routingRules = std::move(value); }
92 inline WebsiteConfiguration& WithRoutingRules(Aws::Vector<RoutingRule>&& value) { SetRoutingRules(std::move(value)); return *this;}
93 inline WebsiteConfiguration& AddRoutingRules(const RoutingRule& value) { m_routingRulesHasBeenSet = true; m_routingRules.push_back(value); return *this; }
94 inline WebsiteConfiguration& AddRoutingRules(RoutingRule&& value) { m_routingRulesHasBeenSet = true; m_routingRules.push_back(std::move(value)); return *this; }
96 private:
97
98 ErrorDocument m_errorDocument;
99 bool m_errorDocumentHasBeenSet = false;
100
101 IndexDocument m_indexDocument;
102 bool m_indexDocumentHasBeenSet = false;
103
104 RedirectAllRequestsTo m_redirectAllRequestsTo;
105 bool m_redirectAllRequestsToHasBeenSet = false;
106
107 Aws::Vector<RoutingRule> m_routingRules;
108 bool m_routingRulesHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace S3
113} // namespace Aws
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