7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticloadbalancingv2/model/RuleCondition.h>
12#include <aws/elasticloadbalancingv2/model/Action.h>
13#include <aws/elasticloadbalancingv2/model/Tag.h>
18namespace ElasticLoadBalancingv2
49 template<
typename ListenerArnT = Aws::String>
50 void SetListenerArn(ListenerArnT&& value) { m_listenerArnHasBeenSet =
true; m_listenerArn = std::forward<ListenerArnT>(value); }
51 template<
typename ListenerArnT = Aws::String>
61 template<
typename ConditionsT = Aws::Vector<RuleCondition>>
62 void SetConditions(ConditionsT&& value) { m_conditionsHasBeenSet =
true; m_conditions = std::forward<ConditionsT>(value); }
63 template<
typename ConditionsT = Aws::Vector<RuleCondition>>
65 template<
typename ConditionsT = RuleCondition>
66 CreateRuleRequest&
AddConditions(ConditionsT&& value) { m_conditionsHasBeenSet =
true; m_conditions.emplace_back(std::forward<ConditionsT>(value));
return *
this; }
76 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
86 template<
typename ActionsT = Aws::Vector<Action>>
87 void SetActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions = std::forward<ActionsT>(value); }
88 template<
typename ActionsT = Aws::Vector<Action>>
90 template<
typename ActionsT = Action>
91 CreateRuleRequest&
AddActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions.emplace_back(std::forward<ActionsT>(value));
return *
this; }
100 template<
typename TagsT = Aws::Vector<Tag>>
101 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
102 template<
typename TagsT = Aws::Vector<Tag>>
104 template<
typename TagsT = Tag>
105 CreateRuleRequest&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
110 bool m_listenerArnHasBeenSet =
false;
113 bool m_conditionsHasBeenSet =
false;
116 bool m_priorityHasBeenSet =
false;
119 bool m_actionsHasBeenSet =
false;
122 bool m_tagsHasBeenSet =
false;
CreateRuleRequest & WithPriority(int value)
AWS_ELASTICLOADBALANCINGV2_API CreateRuleRequest()=default
CreateRuleRequest & AddTags(TagsT &&value)
const Aws::Vector< RuleCondition > & GetConditions() const
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
void SetActions(ActionsT &&value)
CreateRuleRequest & WithActions(ActionsT &&value)
CreateRuleRequest & AddActions(ActionsT &&value)
CreateRuleRequest & WithListenerArn(ListenerArnT &&value)
const Aws::Vector< Tag > & GetTags() const
void SetPriority(int value)
bool PriorityHasBeenSet() const
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Action > & GetActions() const
CreateRuleRequest & AddConditions(ConditionsT &&value)
const Aws::String & GetListenerArn() const
bool ListenerArnHasBeenSet() const
bool TagsHasBeenSet() const
void SetListenerArn(ListenerArnT &&value)
CreateRuleRequest & WithTags(TagsT &&value)
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
bool ConditionsHasBeenSet() const
void SetTags(TagsT &&value)
void SetConditions(ConditionsT &&value)
bool ActionsHasBeenSet() const
CreateRuleRequest & WithConditions(ConditionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector