AWS SDK for C++  0.14.3
AWS SDK for C++
GetBucketWebsiteResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/s3/S3_EXPORTS.h>
22 
23 namespace Aws
24 {
25 template<typename RESULT_TYPE>
26 class AmazonWebServiceResult;
27 
28 namespace Utils
29 {
30 namespace Xml
31 {
32  class XmlDocument;
33 } // namespace Xml
34 } // namespace Utils
35 namespace S3
36 {
37 namespace Model
38 {
40  {
41  public:
45 
46 
47  inline const RedirectAllRequestsTo& GetRedirectAllRequestsTo() const{ return m_redirectAllRequestsTo; }
48 
49 
50  inline void SetRedirectAllRequestsTo(const RedirectAllRequestsTo& value) { m_redirectAllRequestsTo = value; }
51 
52 
53  inline void SetRedirectAllRequestsTo(RedirectAllRequestsTo&& value) { m_redirectAllRequestsTo = value; }
54 
55 
56  inline GetBucketWebsiteResult& WithRedirectAllRequestsTo(const RedirectAllRequestsTo& value) { SetRedirectAllRequestsTo(value); return *this;}
57 
58 
59  inline GetBucketWebsiteResult& WithRedirectAllRequestsTo(RedirectAllRequestsTo&& value) { SetRedirectAllRequestsTo(value); return *this;}
60 
61 
62  inline const IndexDocument& GetIndexDocument() const{ return m_indexDocument; }
63 
64 
65  inline void SetIndexDocument(const IndexDocument& value) { m_indexDocument = value; }
66 
67 
68  inline void SetIndexDocument(IndexDocument&& value) { m_indexDocument = value; }
69 
70 
71  inline GetBucketWebsiteResult& WithIndexDocument(const IndexDocument& value) { SetIndexDocument(value); return *this;}
72 
73 
74  inline GetBucketWebsiteResult& WithIndexDocument(IndexDocument&& value) { SetIndexDocument(value); return *this;}
75 
76 
77  inline const ErrorDocument& GetErrorDocument() const{ return m_errorDocument; }
78 
79 
80  inline void SetErrorDocument(const ErrorDocument& value) { m_errorDocument = value; }
81 
82 
83  inline void SetErrorDocument(ErrorDocument&& value) { m_errorDocument = value; }
84 
85 
86  inline GetBucketWebsiteResult& WithErrorDocument(const ErrorDocument& value) { SetErrorDocument(value); return *this;}
87 
88 
89  inline GetBucketWebsiteResult& WithErrorDocument(ErrorDocument&& value) { SetErrorDocument(value); return *this;}
90 
91 
92  inline const Aws::Vector<RoutingRule>& GetRoutingRules() const{ return m_routingRules; }
93 
94 
95  inline void SetRoutingRules(const Aws::Vector<RoutingRule>& value) { m_routingRules = value; }
96 
97 
98  inline void SetRoutingRules(Aws::Vector<RoutingRule>&& value) { m_routingRules = value; }
99 
100 
101  inline GetBucketWebsiteResult& WithRoutingRules(const Aws::Vector<RoutingRule>& value) { SetRoutingRules(value); return *this;}
102 
103 
104  inline GetBucketWebsiteResult& WithRoutingRules(Aws::Vector<RoutingRule>&& value) { SetRoutingRules(value); return *this;}
105 
106 
107  inline GetBucketWebsiteResult& AddRoutingRules(const RoutingRule& value) { m_routingRules.push_back(value); return *this; }
108 
109 
110  inline GetBucketWebsiteResult& AddRoutingRules(RoutingRule&& value) { m_routingRules.push_back(value); return *this; }
111 
112  private:
113  RedirectAllRequestsTo m_redirectAllRequestsTo;
114  IndexDocument m_indexDocument;
115  ErrorDocument m_errorDocument;
116  Aws::Vector<RoutingRule> m_routingRules;
117  };
118 
119 } // namespace Model
120 } // namespace S3
121 } // namespace Aws
GetBucketWebsiteResult & WithErrorDocument(ErrorDocument &&value)
void SetIndexDocument(const IndexDocument &value)
GetBucketWebsiteResult & AddRoutingRules(const RoutingRule &value)
void SetRedirectAllRequestsTo(RedirectAllRequestsTo &&value)
void SetRedirectAllRequestsTo(const RedirectAllRequestsTo &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::Vector< RoutingRule > & GetRoutingRules() const
#define AWS_S3_API
Definition: S3_EXPORTS.h:37
GetBucketWebsiteResult & WithIndexDocument(const IndexDocument &value)
void SetIndexDocument(IndexDocument &&value)
void SetErrorDocument(const ErrorDocument &value)
const ErrorDocument & GetErrorDocument() const
const RedirectAllRequestsTo & GetRedirectAllRequestsTo() const
void SetRoutingRules(Aws::Vector< RoutingRule > &&value)
void SetErrorDocument(ErrorDocument &&value)
GetBucketWebsiteResult & WithRoutingRules(Aws::Vector< RoutingRule > &&value)
const IndexDocument & GetIndexDocument() const
void SetRoutingRules(const Aws::Vector< RoutingRule > &value)
GetBucketWebsiteResult & WithRedirectAllRequestsTo(RedirectAllRequestsTo &&value)
GetBucketWebsiteResult & WithErrorDocument(const ErrorDocument &value)
GetBucketWebsiteResult & WithRoutingRules(const Aws::Vector< RoutingRule > &value)
GetBucketWebsiteResult & AddRoutingRules(RoutingRule &&value)
GetBucketWebsiteResult & WithRedirectAllRequestsTo(const RedirectAllRequestsTo &value)
GetBucketWebsiteResult & WithIndexDocument(IndexDocument &&value)
JSON (JavaScript Object Notation).