AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsS3BucketWebsiteConfiguration.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/AwsS3BucketWebsiteConfigurationRedirectTo.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/securityhub/model/AwsS3BucketWebsiteConfigurationRoutingRule.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityHub
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_SECURITYHUB_API AwsS3BucketWebsiteConfiguration() = default;
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetErrorDocument() const { return m_errorDocument; }
48 inline bool ErrorDocumentHasBeenSet() const { return m_errorDocumentHasBeenSet; }
49 template<typename ErrorDocumentT = Aws::String>
50 void SetErrorDocument(ErrorDocumentT&& value) { m_errorDocumentHasBeenSet = true; m_errorDocument = std::forward<ErrorDocumentT>(value); }
51 template<typename ErrorDocumentT = Aws::String>
52 AwsS3BucketWebsiteConfiguration& WithErrorDocument(ErrorDocumentT&& value) { SetErrorDocument(std::forward<ErrorDocumentT>(value)); return *this;}
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) { m_indexDocumentSuffixHasBeenSet = true; m_indexDocumentSuffix = std::forward<IndexDocumentSuffixT>(value); }
63 template<typename IndexDocumentSuffixT = Aws::String>
64 AwsS3BucketWebsiteConfiguration& WithIndexDocumentSuffix(IndexDocumentSuffixT&& value) { SetIndexDocumentSuffix(std::forward<IndexDocumentSuffixT>(value)); return *this;}
66
68
71 inline const AwsS3BucketWebsiteConfigurationRedirectTo& GetRedirectAllRequestsTo() const { return m_redirectAllRequestsTo; }
72 inline bool RedirectAllRequestsToHasBeenSet() const { return m_redirectAllRequestsToHasBeenSet; }
73 template<typename RedirectAllRequestsToT = AwsS3BucketWebsiteConfigurationRedirectTo>
74 void SetRedirectAllRequestsTo(RedirectAllRequestsToT&& value) { m_redirectAllRequestsToHasBeenSet = true; m_redirectAllRequestsTo = std::forward<RedirectAllRequestsToT>(value); }
75 template<typename RedirectAllRequestsToT = AwsS3BucketWebsiteConfigurationRedirectTo>
76 AwsS3BucketWebsiteConfiguration& WithRedirectAllRequestsTo(RedirectAllRequestsToT&& value) { SetRedirectAllRequestsTo(std::forward<RedirectAllRequestsToT>(value)); return *this;}
78
80
83 inline const Aws::Vector<AwsS3BucketWebsiteConfigurationRoutingRule>& GetRoutingRules() const { return m_routingRules; }
84 inline bool RoutingRulesHasBeenSet() const { return m_routingRulesHasBeenSet; }
85 template<typename RoutingRulesT = Aws::Vector<AwsS3BucketWebsiteConfigurationRoutingRule>>
86 void SetRoutingRules(RoutingRulesT&& value) { m_routingRulesHasBeenSet = true; m_routingRules = std::forward<RoutingRulesT>(value); }
87 template<typename RoutingRulesT = Aws::Vector<AwsS3BucketWebsiteConfigurationRoutingRule>>
88 AwsS3BucketWebsiteConfiguration& WithRoutingRules(RoutingRulesT&& value) { SetRoutingRules(std::forward<RoutingRulesT>(value)); return *this;}
89 template<typename RoutingRulesT = AwsS3BucketWebsiteConfigurationRoutingRule>
90 AwsS3BucketWebsiteConfiguration& AddRoutingRules(RoutingRulesT&& value) { m_routingRulesHasBeenSet = true; m_routingRules.emplace_back(std::forward<RoutingRulesT>(value)); return *this; }
92 private:
93
94 Aws::String m_errorDocument;
95 bool m_errorDocumentHasBeenSet = false;
96
97 Aws::String m_indexDocumentSuffix;
98 bool m_indexDocumentSuffixHasBeenSet = false;
99
100 AwsS3BucketWebsiteConfigurationRedirectTo m_redirectAllRequestsTo;
101 bool m_redirectAllRequestsToHasBeenSet = false;
102
104 bool m_routingRulesHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace SecurityHub
109} // 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