/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a custom rewrite or redirect rule. See Also:
AWS
* API Reference
The source pattern for a URL rewrite or redirect rule.
*/ inline const Aws::String& GetSource() const{ return m_source; } /** *The source pattern for a URL rewrite or redirect rule.
*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *The source pattern for a URL rewrite or redirect rule.
*/ inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } /** *The source pattern for a URL rewrite or redirect rule.
*/ inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *The source pattern for a URL rewrite or redirect rule.
*/ inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } /** *The source pattern for a URL rewrite or redirect rule.
*/ inline CustomRule& WithSource(const Aws::String& value) { SetSource(value); return *this;} /** *The source pattern for a URL rewrite or redirect rule.
*/ inline CustomRule& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} /** *The source pattern for a URL rewrite or redirect rule.
*/ inline CustomRule& WithSource(const char* value) { SetSource(value); return *this;} /** *The target pattern for a URL rewrite or redirect rule.
*/ inline const Aws::String& GetTarget() const{ return m_target; } /** *The target pattern for a URL rewrite or redirect rule.
*/ inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; } /** *The target pattern for a URL rewrite or redirect rule.
*/ inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; } /** *The target pattern for a URL rewrite or redirect rule.
*/ inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); } /** *The target pattern for a URL rewrite or redirect rule.
*/ inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); } /** *The target pattern for a URL rewrite or redirect rule.
*/ inline CustomRule& WithTarget(const Aws::String& value) { SetTarget(value); return *this;} /** *The target pattern for a URL rewrite or redirect rule.
*/ inline CustomRule& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;} /** *The target pattern for a URL rewrite or redirect rule.
*/ inline CustomRule& WithTarget(const char* value) { SetTarget(value); return *this;} /** *The status code for a URL rewrite or redirect rule.
Represents a 200 rewrite rule.
Represents * a 301 (moved pemanently) redirect rule. This and all future requests should be * directed to the target URL.
Represents a 302 * temporary redirect rule.
Represents a 404 * redirect rule.
Represents a 404 rewrite * rule.
The status code for a URL rewrite or redirect rule.
Represents a 200 rewrite rule.
Represents * a 301 (moved pemanently) redirect rule. This and all future requests should be * directed to the target URL.
Represents a 302 * temporary redirect rule.
Represents a 404 * redirect rule.
Represents a 404 rewrite * rule.
The status code for a URL rewrite or redirect rule.
Represents a 200 rewrite rule.
Represents * a 301 (moved pemanently) redirect rule. This and all future requests should be * directed to the target URL.
Represents a 302 * temporary redirect rule.
Represents a 404 * redirect rule.
Represents a 404 rewrite * rule.
The status code for a URL rewrite or redirect rule.
Represents a 200 rewrite rule.
Represents * a 301 (moved pemanently) redirect rule. This and all future requests should be * directed to the target URL.
Represents a 302 * temporary redirect rule.
Represents a 404 * redirect rule.
Represents a 404 rewrite * rule.
The status code for a URL rewrite or redirect rule.
Represents a 200 rewrite rule.
Represents * a 301 (moved pemanently) redirect rule. This and all future requests should be * directed to the target URL.
Represents a 302 * temporary redirect rule.
Represents a 404 * redirect rule.
Represents a 404 rewrite * rule.
The status code for a URL rewrite or redirect rule.
Represents a 200 rewrite rule.
Represents * a 301 (moved pemanently) redirect rule. This and all future requests should be * directed to the target URL.
Represents a 302 * temporary redirect rule.
Represents a 404 * redirect rule.
Represents a 404 rewrite * rule.
The status code for a URL rewrite or redirect rule.
Represents a 200 rewrite rule.
Represents * a 301 (moved pemanently) redirect rule. This and all future requests should be * directed to the target URL.
Represents a 302 * temporary redirect rule.
Represents a 404 * redirect rule.
Represents a 404 rewrite * rule.
The status code for a URL rewrite or redirect rule.
Represents a 200 rewrite rule.
Represents * a 301 (moved pemanently) redirect rule. This and all future requests should be * directed to the target URL.
Represents a 302 * temporary redirect rule.
Represents a 404 * redirect rule.
Represents a 404 rewrite * rule.
The condition for a URL rewrite or redirect rule, such as a country code. *
*/ inline const Aws::String& GetCondition() const{ return m_condition; } /** *The condition for a URL rewrite or redirect rule, such as a country code. *
*/ inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; } /** *The condition for a URL rewrite or redirect rule, such as a country code. *
*/ inline void SetCondition(const Aws::String& value) { m_conditionHasBeenSet = true; m_condition = value; } /** *The condition for a URL rewrite or redirect rule, such as a country code. *
*/ inline void SetCondition(Aws::String&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); } /** *The condition for a URL rewrite or redirect rule, such as a country code. *
*/ inline void SetCondition(const char* value) { m_conditionHasBeenSet = true; m_condition.assign(value); } /** *The condition for a URL rewrite or redirect rule, such as a country code. *
*/ inline CustomRule& WithCondition(const Aws::String& value) { SetCondition(value); return *this;} /** *The condition for a URL rewrite or redirect rule, such as a country code. *
*/ inline CustomRule& WithCondition(Aws::String&& value) { SetCondition(std::move(value)); return *this;} /** *The condition for a URL rewrite or redirect rule, such as a country code. *
*/ inline CustomRule& WithCondition(const char* value) { SetCondition(value); return *this;} private: Aws::String m_source; bool m_sourceHasBeenSet = false; Aws::String m_target; bool m_targetHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_condition; bool m_conditionHasBeenSet = false; }; } // namespace Model } // namespace Amplify } // namespace Aws