/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies the redirect behavior and when a redirect is applied. For more
* information about routing rules, see Configuring
* advanced conditional redirects in the Amazon S3 User
* Guide.See Also:
AWS API
* Reference
A container for describing a condition that must be met for the specified
* redirect to apply. For example, 1. If request is for pages in the
* /docs
folder, redirect to the /documents
folder. 2. If
* request results in HTTP error 4xx, redirect request to another host where you
* might process the error.
A container for describing a condition that must be met for the specified
* redirect to apply. For example, 1. If request is for pages in the
* /docs
folder, redirect to the /documents
folder. 2. If
* request results in HTTP error 4xx, redirect request to another host where you
* might process the error.
A container for describing a condition that must be met for the specified
* redirect to apply. For example, 1. If request is for pages in the
* /docs
folder, redirect to the /documents
folder. 2. If
* request results in HTTP error 4xx, redirect request to another host where you
* might process the error.
A container for describing a condition that must be met for the specified
* redirect to apply. For example, 1. If request is for pages in the
* /docs
folder, redirect to the /documents
folder. 2. If
* request results in HTTP error 4xx, redirect request to another host where you
* might process the error.
A container for describing a condition that must be met for the specified
* redirect to apply. For example, 1. If request is for pages in the
* /docs
folder, redirect to the /documents
folder. 2. If
* request results in HTTP error 4xx, redirect request to another host where you
* might process the error.
A container for describing a condition that must be met for the specified
* redirect to apply. For example, 1. If request is for pages in the
* /docs
folder, redirect to the /documents
folder. 2. If
* request results in HTTP error 4xx, redirect request to another host where you
* might process the error.
Container for redirect information. You can redirect requests to another * host, to another page, or with another protocol. In the event of an error, you * can specify a different error code to return.
*/ inline const Redirect& GetRedirect() const{ return m_redirect; } /** *Container for redirect information. You can redirect requests to another * host, to another page, or with another protocol. In the event of an error, you * can specify a different error code to return.
*/ inline bool RedirectHasBeenSet() const { return m_redirectHasBeenSet; } /** *Container for redirect information. You can redirect requests to another * host, to another page, or with another protocol. In the event of an error, you * can specify a different error code to return.
*/ inline void SetRedirect(const Redirect& value) { m_redirectHasBeenSet = true; m_redirect = value; } /** *Container for redirect information. You can redirect requests to another * host, to another page, or with another protocol. In the event of an error, you * can specify a different error code to return.
*/ inline void SetRedirect(Redirect&& value) { m_redirectHasBeenSet = true; m_redirect = std::move(value); } /** *Container for redirect information. You can redirect requests to another * host, to another page, or with another protocol. In the event of an error, you * can specify a different error code to return.
*/ inline RoutingRule& WithRedirect(const Redirect& value) { SetRedirect(value); return *this;} /** *Container for redirect information. You can redirect requests to another * host, to another page, or with another protocol. In the event of an error, you * can specify a different error code to return.
*/ inline RoutingRule& WithRedirect(Redirect&& value) { SetRedirect(std::move(value)); return *this;} private: Condition m_condition; bool m_conditionHasBeenSet; Redirect m_redirect; bool m_redirectHasBeenSet; }; } // namespace Model } // namespace S3 } // namespace Aws