AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AwsS3BucketWebsiteConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsS3BucketWebsiteConfigurationRedirectTo.h>
11#include <aws/securityhub/model/AwsS3BucketWebsiteConfigurationRoutingRule.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityHub {
23namespace Model {
24
31 public:
32 AWS_SECURITYHUB_API AwsS3BucketWebsiteConfiguration() = default;
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetErrorDocument() const { return m_errorDocument; }
42 inline bool ErrorDocumentHasBeenSet() const { return m_errorDocumentHasBeenSet; }
43 template <typename ErrorDocumentT = Aws::String>
44 void SetErrorDocument(ErrorDocumentT&& value) {
45 m_errorDocumentHasBeenSet = true;
46 m_errorDocument = std::forward<ErrorDocumentT>(value);
47 }
48 template <typename ErrorDocumentT = Aws::String>
50 SetErrorDocument(std::forward<ErrorDocumentT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetIndexDocumentSuffix() const { return m_indexDocumentSuffix; }
60 inline bool IndexDocumentSuffixHasBeenSet() const { return m_indexDocumentSuffixHasBeenSet; }
61 template <typename IndexDocumentSuffixT = Aws::String>
62 void SetIndexDocumentSuffix(IndexDocumentSuffixT&& value) {
63 m_indexDocumentSuffixHasBeenSet = true;
64 m_indexDocumentSuffix = std::forward<IndexDocumentSuffixT>(value);
65 }
66 template <typename IndexDocumentSuffixT = Aws::String>
68 SetIndexDocumentSuffix(std::forward<IndexDocumentSuffixT>(value));
69 return *this;
70 }
72
74
77 inline const AwsS3BucketWebsiteConfigurationRedirectTo& GetRedirectAllRequestsTo() const { return m_redirectAllRequestsTo; }
78 inline bool RedirectAllRequestsToHasBeenSet() const { return m_redirectAllRequestsToHasBeenSet; }
79 template <typename RedirectAllRequestsToT = AwsS3BucketWebsiteConfigurationRedirectTo>
80 void SetRedirectAllRequestsTo(RedirectAllRequestsToT&& value) {
81 m_redirectAllRequestsToHasBeenSet = true;
82 m_redirectAllRequestsTo = std::forward<RedirectAllRequestsToT>(value);
83 }
84 template <typename RedirectAllRequestsToT = AwsS3BucketWebsiteConfigurationRedirectTo>
86 SetRedirectAllRequestsTo(std::forward<RedirectAllRequestsToT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<AwsS3BucketWebsiteConfigurationRoutingRule>& GetRoutingRules() const { return m_routingRules; }
96 inline bool RoutingRulesHasBeenSet() const { return m_routingRulesHasBeenSet; }
97 template <typename RoutingRulesT = Aws::Vector<AwsS3BucketWebsiteConfigurationRoutingRule>>
98 void SetRoutingRules(RoutingRulesT&& value) {
99 m_routingRulesHasBeenSet = true;
100 m_routingRules = std::forward<RoutingRulesT>(value);
101 }
102 template <typename RoutingRulesT = Aws::Vector<AwsS3BucketWebsiteConfigurationRoutingRule>>
104 SetRoutingRules(std::forward<RoutingRulesT>(value));
105 return *this;
106 }
107 template <typename RoutingRulesT = AwsS3BucketWebsiteConfigurationRoutingRule>
109 m_routingRulesHasBeenSet = true;
110 m_routingRules.emplace_back(std::forward<RoutingRulesT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_errorDocument;
116
117 Aws::String m_indexDocumentSuffix;
118
119 AwsS3BucketWebsiteConfigurationRedirectTo m_redirectAllRequestsTo;
120
122 bool m_errorDocumentHasBeenSet = false;
123 bool m_indexDocumentSuffixHasBeenSet = false;
124 bool m_redirectAllRequestsToHasBeenSet = false;
125 bool m_routingRulesHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace SecurityHub
130} // namespace Aws
AwsS3BucketWebsiteConfiguration & WithRoutingRules(RoutingRulesT &&value)
AWS_SECURITYHUB_API AwsS3BucketWebsiteConfiguration()=default
AWS_SECURITYHUB_API AwsS3BucketWebsiteConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsS3BucketWebsiteConfiguration & WithIndexDocumentSuffix(IndexDocumentSuffixT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsS3BucketWebsiteConfiguration & WithRedirectAllRequestsTo(RedirectAllRequestsToT &&value)
const AwsS3BucketWebsiteConfigurationRedirectTo & GetRedirectAllRequestsTo() const
const Aws::Vector< AwsS3BucketWebsiteConfigurationRoutingRule > & GetRoutingRules() const
AwsS3BucketWebsiteConfiguration & AddRoutingRules(RoutingRulesT &&value)
AWS_SECURITYHUB_API AwsS3BucketWebsiteConfiguration(Aws::Utils::Json::JsonView jsonValue)
AwsS3BucketWebsiteConfiguration & WithErrorDocument(ErrorDocumentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue