/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a rule.See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of the rule.
*/ inline const Aws::String& GetRuleArn() const{ return m_ruleArn; } /** *The Amazon Resource Name (ARN) of the rule.
*/ inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the rule.
*/ inline void SetRuleArn(const Aws::String& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; } /** *The Amazon Resource Name (ARN) of the rule.
*/ inline void SetRuleArn(Aws::String&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the rule.
*/ inline void SetRuleArn(const char* value) { m_ruleArnHasBeenSet = true; m_ruleArn.assign(value); } /** *The Amazon Resource Name (ARN) of the rule.
*/ inline Rule& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the rule.
*/ inline Rule& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the rule.
*/ inline Rule& WithRuleArn(const char* value) { SetRuleArn(value); return *this;} /** *The priority.
*/ inline const Aws::String& GetPriority() const{ return m_priority; } /** *The priority.
*/ inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; } /** *The priority.
*/ inline void SetPriority(const Aws::String& value) { m_priorityHasBeenSet = true; m_priority = value; } /** *The priority.
*/ inline void SetPriority(Aws::String&& value) { m_priorityHasBeenSet = true; m_priority = std::move(value); } /** *The priority.
*/ inline void SetPriority(const char* value) { m_priorityHasBeenSet = true; m_priority.assign(value); } /** *The priority.
*/ inline Rule& WithPriority(const Aws::String& value) { SetPriority(value); return *this;} /** *The priority.
*/ inline Rule& WithPriority(Aws::String&& value) { SetPriority(std::move(value)); return *this;} /** *The priority.
*/ inline Rule& WithPriority(const char* value) { SetPriority(value); return *this;} /** *The conditions. Each rule can include zero or one of the following
* conditions: http-request-method
, host-header
,
* path-pattern
, and source-ip
, and zero or more of the
* following conditions: http-header
and
* query-string
.
The conditions. Each rule can include zero or one of the following
* conditions: http-request-method
, host-header
,
* path-pattern
, and source-ip
, and zero or more of the
* following conditions: http-header
and
* query-string
.
The conditions. Each rule can include zero or one of the following
* conditions: http-request-method
, host-header
,
* path-pattern
, and source-ip
, and zero or more of the
* following conditions: http-header
and
* query-string
.
The conditions. Each rule can include zero or one of the following
* conditions: http-request-method
, host-header
,
* path-pattern
, and source-ip
, and zero or more of the
* following conditions: http-header
and
* query-string
.
The conditions. Each rule can include zero or one of the following
* conditions: http-request-method
, host-header
,
* path-pattern
, and source-ip
, and zero or more of the
* following conditions: http-header
and
* query-string
.
The conditions. Each rule can include zero or one of the following
* conditions: http-request-method
, host-header
,
* path-pattern
, and source-ip
, and zero or more of the
* following conditions: http-header
and
* query-string
.
The conditions. Each rule can include zero or one of the following
* conditions: http-request-method
, host-header
,
* path-pattern
, and source-ip
, and zero or more of the
* following conditions: http-header
and
* query-string
.
The conditions. Each rule can include zero or one of the following
* conditions: http-request-method
, host-header
,
* path-pattern
, and source-ip
, and zero or more of the
* following conditions: http-header
and
* query-string
.
The actions. Each rule must include exactly one of the following types of
* actions: forward
, redirect
, or
* fixed-response
, and it must be the last action to be performed.
The actions. Each rule must include exactly one of the following types of
* actions: forward
, redirect
, or
* fixed-response
, and it must be the last action to be performed.
The actions. Each rule must include exactly one of the following types of
* actions: forward
, redirect
, or
* fixed-response
, and it must be the last action to be performed.
The actions. Each rule must include exactly one of the following types of
* actions: forward
, redirect
, or
* fixed-response
, and it must be the last action to be performed.
The actions. Each rule must include exactly one of the following types of
* actions: forward
, redirect
, or
* fixed-response
, and it must be the last action to be performed.
The actions. Each rule must include exactly one of the following types of
* actions: forward
, redirect
, or
* fixed-response
, and it must be the last action to be performed.
The actions. Each rule must include exactly one of the following types of
* actions: forward
, redirect
, or
* fixed-response
, and it must be the last action to be performed.
The actions. Each rule must include exactly one of the following types of
* actions: forward
, redirect
, or
* fixed-response
, and it must be the last action to be performed.
Indicates whether this is the default rule.
*/ inline bool GetIsDefault() const{ return m_isDefault; } /** *Indicates whether this is the default rule.
*/ inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; } /** *Indicates whether this is the default rule.
*/ inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; } /** *Indicates whether this is the default rule.
*/ inline Rule& WithIsDefault(bool value) { SetIsDefault(value); return *this;} private: Aws::String m_ruleArn; bool m_ruleArnHasBeenSet = false; Aws::String m_priority; bool m_priorityHasBeenSet = false; Aws::Vector