/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Website parameters for the S3 bucket.

See Also:

AWS * API Reference

*/ class AwsS3BucketWebsiteConfiguration { public: AWS_SECURITYHUB_API AwsS3BucketWebsiteConfiguration(); AWS_SECURITYHUB_API AwsS3BucketWebsiteConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsS3BucketWebsiteConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the error document for the website.

*/ inline const Aws::String& GetErrorDocument() const{ return m_errorDocument; } /** *

The name of the error document for the website.

*/ inline bool ErrorDocumentHasBeenSet() const { return m_errorDocumentHasBeenSet; } /** *

The name of the error document for the website.

*/ inline void SetErrorDocument(const Aws::String& value) { m_errorDocumentHasBeenSet = true; m_errorDocument = value; } /** *

The name of the error document for the website.

*/ inline void SetErrorDocument(Aws::String&& value) { m_errorDocumentHasBeenSet = true; m_errorDocument = std::move(value); } /** *

The name of the error document for the website.

*/ inline void SetErrorDocument(const char* value) { m_errorDocumentHasBeenSet = true; m_errorDocument.assign(value); } /** *

The name of the error document for the website.

*/ inline AwsS3BucketWebsiteConfiguration& WithErrorDocument(const Aws::String& value) { SetErrorDocument(value); return *this;} /** *

The name of the error document for the website.

*/ inline AwsS3BucketWebsiteConfiguration& WithErrorDocument(Aws::String&& value) { SetErrorDocument(std::move(value)); return *this;} /** *

The name of the error document for the website.

*/ inline AwsS3BucketWebsiteConfiguration& WithErrorDocument(const char* value) { SetErrorDocument(value); return *this;} /** *

The name of the index document for the website.

*/ inline const Aws::String& GetIndexDocumentSuffix() const{ return m_indexDocumentSuffix; } /** *

The name of the index document for the website.

*/ inline bool IndexDocumentSuffixHasBeenSet() const { return m_indexDocumentSuffixHasBeenSet; } /** *

The name of the index document for the website.

*/ inline void SetIndexDocumentSuffix(const Aws::String& value) { m_indexDocumentSuffixHasBeenSet = true; m_indexDocumentSuffix = value; } /** *

The name of the index document for the website.

*/ inline void SetIndexDocumentSuffix(Aws::String&& value) { m_indexDocumentSuffixHasBeenSet = true; m_indexDocumentSuffix = std::move(value); } /** *

The name of the index document for the website.

*/ inline void SetIndexDocumentSuffix(const char* value) { m_indexDocumentSuffixHasBeenSet = true; m_indexDocumentSuffix.assign(value); } /** *

The name of the index document for the website.

*/ inline AwsS3BucketWebsiteConfiguration& WithIndexDocumentSuffix(const Aws::String& value) { SetIndexDocumentSuffix(value); return *this;} /** *

The name of the index document for the website.

*/ inline AwsS3BucketWebsiteConfiguration& WithIndexDocumentSuffix(Aws::String&& value) { SetIndexDocumentSuffix(std::move(value)); return *this;} /** *

The name of the index document for the website.

*/ inline AwsS3BucketWebsiteConfiguration& WithIndexDocumentSuffix(const char* value) { SetIndexDocumentSuffix(value); return *this;} /** *

The redirect behavior for requests to the website.

*/ inline const AwsS3BucketWebsiteConfigurationRedirectTo& GetRedirectAllRequestsTo() const{ return m_redirectAllRequestsTo; } /** *

The redirect behavior for requests to the website.

*/ inline bool RedirectAllRequestsToHasBeenSet() const { return m_redirectAllRequestsToHasBeenSet; } /** *

The redirect behavior for requests to the website.

*/ inline void SetRedirectAllRequestsTo(const AwsS3BucketWebsiteConfigurationRedirectTo& value) { m_redirectAllRequestsToHasBeenSet = true; m_redirectAllRequestsTo = value; } /** *

The redirect behavior for requests to the website.

*/ inline void SetRedirectAllRequestsTo(AwsS3BucketWebsiteConfigurationRedirectTo&& value) { m_redirectAllRequestsToHasBeenSet = true; m_redirectAllRequestsTo = std::move(value); } /** *

The redirect behavior for requests to the website.

*/ inline AwsS3BucketWebsiteConfiguration& WithRedirectAllRequestsTo(const AwsS3BucketWebsiteConfigurationRedirectTo& value) { SetRedirectAllRequestsTo(value); return *this;} /** *

The redirect behavior for requests to the website.

*/ inline AwsS3BucketWebsiteConfiguration& WithRedirectAllRequestsTo(AwsS3BucketWebsiteConfigurationRedirectTo&& value) { SetRedirectAllRequestsTo(std::move(value)); return *this;} /** *

The rules for applying redirects for requests to the website.

*/ inline const Aws::Vector& GetRoutingRules() const{ return m_routingRules; } /** *

The rules for applying redirects for requests to the website.

*/ inline bool RoutingRulesHasBeenSet() const { return m_routingRulesHasBeenSet; } /** *

The rules for applying redirects for requests to the website.

*/ inline void SetRoutingRules(const Aws::Vector& value) { m_routingRulesHasBeenSet = true; m_routingRules = value; } /** *

The rules for applying redirects for requests to the website.

*/ inline void SetRoutingRules(Aws::Vector&& value) { m_routingRulesHasBeenSet = true; m_routingRules = std::move(value); } /** *

The rules for applying redirects for requests to the website.

*/ inline AwsS3BucketWebsiteConfiguration& WithRoutingRules(const Aws::Vector& value) { SetRoutingRules(value); return *this;} /** *

The rules for applying redirects for requests to the website.

*/ inline AwsS3BucketWebsiteConfiguration& WithRoutingRules(Aws::Vector&& value) { SetRoutingRules(std::move(value)); return *this;} /** *

The rules for applying redirects for requests to the website.

*/ inline AwsS3BucketWebsiteConfiguration& AddRoutingRules(const AwsS3BucketWebsiteConfigurationRoutingRule& value) { m_routingRulesHasBeenSet = true; m_routingRules.push_back(value); return *this; } /** *

The rules for applying redirects for requests to the website.

*/ inline AwsS3BucketWebsiteConfiguration& AddRoutingRules(AwsS3BucketWebsiteConfigurationRoutingRule&& value) { m_routingRulesHasBeenSet = true; m_routingRules.push_back(std::move(value)); return *this; } private: Aws::String m_errorDocument; bool m_errorDocumentHasBeenSet = false; Aws::String m_indexDocumentSuffix; bool m_indexDocumentSuffixHasBeenSet = false; AwsS3BucketWebsiteConfigurationRedirectTo m_redirectAllRequestsTo; bool m_redirectAllRequestsToHasBeenSet = false; Aws::Vector m_routingRules; bool m_routingRulesHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws