/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Website parameters for the S3 bucket.See Also:
AWS
* API Reference
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::VectorThe 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::VectorThe rules for applying redirects for requests to the website.
*/ inline void SetRoutingRules(Aws::VectorThe rules for applying redirects for requests to the website.
*/ inline AwsS3BucketWebsiteConfiguration& WithRoutingRules(const Aws::VectorThe rules for applying redirects for requests to the website.
*/ inline AwsS3BucketWebsiteConfiguration& WithRoutingRules(Aws::VectorThe 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