AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetErrorDocument(const Aws::String& value) { m_errorDocumentHasBeenSet = true; m_errorDocument = value; }
50 inline void SetErrorDocument(Aws::String&& value) { m_errorDocumentHasBeenSet = true; m_errorDocument = std::move(value); }
51 inline void SetErrorDocument(const char* value) { m_errorDocumentHasBeenSet = true; m_errorDocument.assign(value); }
53 inline AwsS3BucketWebsiteConfiguration& WithErrorDocument(Aws::String&& value) { SetErrorDocument(std::move(value)); return *this;}
54 inline AwsS3BucketWebsiteConfiguration& WithErrorDocument(const char* value) { SetErrorDocument(value); return *this;}
56
58
61 inline const Aws::String& GetIndexDocumentSuffix() const{ return m_indexDocumentSuffix; }
62 inline bool IndexDocumentSuffixHasBeenSet() const { return m_indexDocumentSuffixHasBeenSet; }
63 inline void SetIndexDocumentSuffix(const Aws::String& value) { m_indexDocumentSuffixHasBeenSet = true; m_indexDocumentSuffix = value; }
64 inline void SetIndexDocumentSuffix(Aws::String&& value) { m_indexDocumentSuffixHasBeenSet = true; m_indexDocumentSuffix = std::move(value); }
65 inline void SetIndexDocumentSuffix(const char* value) { m_indexDocumentSuffixHasBeenSet = true; m_indexDocumentSuffix.assign(value); }
68 inline AwsS3BucketWebsiteConfiguration& WithIndexDocumentSuffix(const char* value) { SetIndexDocumentSuffix(value); return *this;}
70
72
75 inline const AwsS3BucketWebsiteConfigurationRedirectTo& GetRedirectAllRequestsTo() const{ return m_redirectAllRequestsTo; }
76 inline bool RedirectAllRequestsToHasBeenSet() const { return m_redirectAllRequestsToHasBeenSet; }
77 inline void SetRedirectAllRequestsTo(const AwsS3BucketWebsiteConfigurationRedirectTo& value) { m_redirectAllRequestsToHasBeenSet = true; m_redirectAllRequestsTo = value; }
78 inline void SetRedirectAllRequestsTo(AwsS3BucketWebsiteConfigurationRedirectTo&& value) { m_redirectAllRequestsToHasBeenSet = true; m_redirectAllRequestsTo = std::move(value); }
82
84
87 inline const Aws::Vector<AwsS3BucketWebsiteConfigurationRoutingRule>& GetRoutingRules() const{ return m_routingRules; }
88 inline bool RoutingRulesHasBeenSet() const { return m_routingRulesHasBeenSet; }
89 inline void SetRoutingRules(const Aws::Vector<AwsS3BucketWebsiteConfigurationRoutingRule>& value) { m_routingRulesHasBeenSet = true; m_routingRules = value; }
90 inline void SetRoutingRules(Aws::Vector<AwsS3BucketWebsiteConfigurationRoutingRule>&& value) { m_routingRulesHasBeenSet = true; m_routingRules = std::move(value); }
93 inline AwsS3BucketWebsiteConfiguration& AddRoutingRules(const AwsS3BucketWebsiteConfigurationRoutingRule& value) { m_routingRulesHasBeenSet = true; m_routingRules.push_back(value); return *this; }
94 inline AwsS3BucketWebsiteConfiguration& AddRoutingRules(AwsS3BucketWebsiteConfigurationRoutingRule&& value) { m_routingRulesHasBeenSet = true; m_routingRules.push_back(std::move(value)); return *this; }
96 private:
97
98 Aws::String m_errorDocument;
99 bool m_errorDocumentHasBeenSet = false;
100
101 Aws::String m_indexDocumentSuffix;
102 bool m_indexDocumentSuffixHasBeenSet = false;
103
104 AwsS3BucketWebsiteConfigurationRedirectTo m_redirectAllRequestsTo;
105 bool m_redirectAllRequestsToHasBeenSet = false;
106
108 bool m_routingRulesHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace SecurityHub
113} // namespace Aws
void SetRoutingRules(const Aws::Vector< AwsS3BucketWebsiteConfigurationRoutingRule > &value)
AwsS3BucketWebsiteConfiguration & WithIndexDocumentSuffix(Aws::String &&value)
AWS_SECURITYHUB_API AwsS3BucketWebsiteConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsS3BucketWebsiteConfiguration & AddRoutingRules(AwsS3BucketWebsiteConfigurationRoutingRule &&value)
AwsS3BucketWebsiteConfiguration & WithIndexDocumentSuffix(const char *value)
AwsS3BucketWebsiteConfiguration & AddRoutingRules(const AwsS3BucketWebsiteConfigurationRoutingRule &value)
void SetRedirectAllRequestsTo(AwsS3BucketWebsiteConfigurationRedirectTo &&value)
void SetRedirectAllRequestsTo(const AwsS3BucketWebsiteConfigurationRedirectTo &value)
const AwsS3BucketWebsiteConfigurationRedirectTo & GetRedirectAllRequestsTo() const
AwsS3BucketWebsiteConfiguration & WithErrorDocument(const Aws::String &value)
AwsS3BucketWebsiteConfiguration & WithRoutingRules(const Aws::Vector< AwsS3BucketWebsiteConfigurationRoutingRule > &value)
AwsS3BucketWebsiteConfiguration & WithIndexDocumentSuffix(const Aws::String &value)
void SetRoutingRules(Aws::Vector< AwsS3BucketWebsiteConfigurationRoutingRule > &&value)
const Aws::Vector< AwsS3BucketWebsiteConfigurationRoutingRule > & GetRoutingRules() const
AwsS3BucketWebsiteConfiguration & WithRedirectAllRequestsTo(AwsS3BucketWebsiteConfigurationRedirectTo &&value)
AwsS3BucketWebsiteConfiguration & WithRoutingRules(Aws::Vector< AwsS3BucketWebsiteConfigurationRoutingRule > &&value)
AwsS3BucketWebsiteConfiguration & WithRedirectAllRequestsTo(const AwsS3BucketWebsiteConfigurationRedirectTo &value)
AwsS3BucketWebsiteConfiguration & WithErrorDocument(const char *value)
AWS_SECURITYHUB_API AwsS3BucketWebsiteConfiguration(Aws::Utils::Json::JsonView jsonValue)
AwsS3BucketWebsiteConfiguration & WithErrorDocument(Aws::String &&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