7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/apigatewayv2/model/RoutingRuleAction.h>
11#include <aws/apigatewayv2/model/RoutingRuleCondition.h>
49 template<
typename ActionsT = Aws::Vector<RoutingRuleAction>>
50 void SetActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions = std::forward<ActionsT>(value); }
51 template<
typename ActionsT = Aws::Vector<RoutingRuleAction>>
53 template<
typename ActionsT = RoutingRuleAction>
54 RoutingRule&
AddActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions.emplace_back(std::forward<ActionsT>(value));
return *
this; }
63 template<
typename ConditionsT = Aws::Vector<RoutingRuleCondition>>
64 void SetConditions(ConditionsT&& value) { m_conditionsHasBeenSet =
true; m_conditions = std::forward<ConditionsT>(value); }
65 template<
typename ConditionsT = Aws::Vector<RoutingRuleCondition>>
67 template<
typename ConditionsT = RoutingRuleCondition>
68 RoutingRule&
AddConditions(ConditionsT&& value) { m_conditionsHasBeenSet =
true; m_conditions.emplace_back(std::forward<ConditionsT>(value));
return *
this; }
77 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
87 template<
typename RoutingRuleArnT = Aws::String>
88 void SetRoutingRuleArn(RoutingRuleArnT&& value) { m_routingRuleArnHasBeenSet =
true; m_routingRuleArn = std::forward<RoutingRuleArnT>(value); }
89 template<
typename RoutingRuleArnT = Aws::String>
99 template<
typename RoutingRuleIdT = Aws::String>
100 void SetRoutingRuleId(RoutingRuleIdT&& value) { m_routingRuleIdHasBeenSet =
true; m_routingRuleId = std::forward<RoutingRuleIdT>(value); }
101 template<
typename RoutingRuleIdT = Aws::String>
107 bool m_actionsHasBeenSet =
false;
110 bool m_conditionsHasBeenSet =
false;
113 bool m_priorityHasBeenSet =
false;
116 bool m_routingRuleArnHasBeenSet =
false;
119 bool m_routingRuleIdHasBeenSet =
false;
RoutingRule & WithActions(ActionsT &&value)
const Aws::Vector< RoutingRuleCondition > & GetConditions() const
void SetRoutingRuleId(RoutingRuleIdT &&value)
RoutingRule & WithRoutingRuleId(RoutingRuleIdT &&value)
AWS_APIGATEWAYV2_API RoutingRule & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ConditionsHasBeenSet() const
RoutingRule & AddActions(ActionsT &&value)
bool PriorityHasBeenSet() const
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRoutingRuleId() const
void SetPriority(int value)
AWS_APIGATEWAYV2_API RoutingRule()=default
const Aws::Vector< RoutingRuleAction > & GetActions() const
RoutingRule & WithPriority(int value)
RoutingRule & AddConditions(ConditionsT &&value)
void SetRoutingRuleArn(RoutingRuleArnT &&value)
const Aws::String & GetRoutingRuleArn() const
AWS_APIGATEWAYV2_API RoutingRule(Aws::Utils::Json::JsonView jsonValue)
RoutingRule & WithConditions(ConditionsT &&value)
RoutingRule & WithRoutingRuleArn(RoutingRuleArnT &&value)
bool ActionsHasBeenSet() const
bool RoutingRuleArnHasBeenSet() const
bool RoutingRuleIdHasBeenSet() const
void SetConditions(ConditionsT &&value)
void SetActions(ActionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue