AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetBucketWebsiteResult.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/model/RedirectAllRequestsTo.h>
9#include <aws/s3/model/IndexDocument.h>
10#include <aws/s3/model/ErrorDocument.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/s3/model/RoutingRule.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Xml
24{
25 class XmlDocument;
26} // namespace Xml
27} // namespace Utils
28namespace S3
29{
30namespace Model
31{
33 {
34 public:
38
39
41
45 inline const RedirectAllRequestsTo& GetRedirectAllRequestsTo() const{ return m_redirectAllRequestsTo; }
46 inline void SetRedirectAllRequestsTo(const RedirectAllRequestsTo& value) { m_redirectAllRequestsTo = value; }
47 inline void SetRedirectAllRequestsTo(RedirectAllRequestsTo&& value) { m_redirectAllRequestsTo = std::move(value); }
51
53
57 inline const IndexDocument& GetIndexDocument() const{ return m_indexDocument; }
58 inline void SetIndexDocument(const IndexDocument& value) { m_indexDocument = value; }
59 inline void SetIndexDocument(IndexDocument&& value) { m_indexDocument = std::move(value); }
60 inline GetBucketWebsiteResult& WithIndexDocument(const IndexDocument& value) { SetIndexDocument(value); return *this;}
61 inline GetBucketWebsiteResult& WithIndexDocument(IndexDocument&& value) { SetIndexDocument(std::move(value)); return *this;}
63
65
69 inline const ErrorDocument& GetErrorDocument() const{ return m_errorDocument; }
70 inline void SetErrorDocument(const ErrorDocument& value) { m_errorDocument = value; }
71 inline void SetErrorDocument(ErrorDocument&& value) { m_errorDocument = std::move(value); }
72 inline GetBucketWebsiteResult& WithErrorDocument(const ErrorDocument& value) { SetErrorDocument(value); return *this;}
73 inline GetBucketWebsiteResult& WithErrorDocument(ErrorDocument&& value) { SetErrorDocument(std::move(value)); return *this;}
75
77
80 inline const Aws::Vector<RoutingRule>& GetRoutingRules() const{ return m_routingRules; }
81 inline void SetRoutingRules(const Aws::Vector<RoutingRule>& value) { m_routingRules = value; }
82 inline void SetRoutingRules(Aws::Vector<RoutingRule>&& value) { m_routingRules = std::move(value); }
84 inline GetBucketWebsiteResult& WithRoutingRules(Aws::Vector<RoutingRule>&& value) { SetRoutingRules(std::move(value)); return *this;}
85 inline GetBucketWebsiteResult& AddRoutingRules(const RoutingRule& value) { m_routingRules.push_back(value); return *this; }
86 inline GetBucketWebsiteResult& AddRoutingRules(RoutingRule&& value) { m_routingRules.push_back(std::move(value)); return *this; }
88
90
91 inline const Aws::String& GetRequestId() const{ return m_requestId; }
92 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
93 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
94 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
95 inline GetBucketWebsiteResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
96 inline GetBucketWebsiteResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
97 inline GetBucketWebsiteResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
99 private:
100
101 RedirectAllRequestsTo m_redirectAllRequestsTo;
102
103 IndexDocument m_indexDocument;
104
105 ErrorDocument m_errorDocument;
106
107 Aws::Vector<RoutingRule> m_routingRules;
108
109 Aws::String m_requestId;
110 };
111
112} // namespace Model
113} // namespace S3
114} // namespace Aws
GetBucketWebsiteResult & WithRoutingRules(Aws::Vector< RoutingRule > &&value)
GetBucketWebsiteResult & WithRedirectAllRequestsTo(RedirectAllRequestsTo &&value)
void SetRoutingRules(Aws::Vector< RoutingRule > &&value)
GetBucketWebsiteResult & WithErrorDocument(const ErrorDocument &value)
const ErrorDocument & GetErrorDocument() const
GetBucketWebsiteResult & WithRequestId(const Aws::String &value)
GetBucketWebsiteResult & AddRoutingRules(RoutingRule &&value)
const Aws::Vector< RoutingRule > & GetRoutingRules() const
void SetRedirectAllRequestsTo(RedirectAllRequestsTo &&value)
const RedirectAllRequestsTo & GetRedirectAllRequestsTo() const
AWS_S3_API GetBucketWebsiteResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetRequestId(const Aws::String &value)
GetBucketWebsiteResult & WithIndexDocument(const IndexDocument &value)
void SetErrorDocument(const ErrorDocument &value)
GetBucketWebsiteResult & WithRoutingRules(const Aws::Vector< RoutingRule > &value)
GetBucketWebsiteResult & AddRoutingRules(const RoutingRule &value)
const IndexDocument & GetIndexDocument() const
GetBucketWebsiteResult & WithRequestId(Aws::String &&value)
GetBucketWebsiteResult & WithErrorDocument(ErrorDocument &&value)
GetBucketWebsiteResult & WithIndexDocument(IndexDocument &&value)
void SetRedirectAllRequestsTo(const RedirectAllRequestsTo &value)
GetBucketWebsiteResult & WithRedirectAllRequestsTo(const RedirectAllRequestsTo &value)
GetBucketWebsiteResult & WithRequestId(const char *value)
void SetIndexDocument(const IndexDocument &value)
AWS_S3_API GetBucketWebsiteResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetRoutingRules(const Aws::Vector< RoutingRule > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument