7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2Request.h>
10#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
11#include <aws/elasticloadbalancingv2/model/Action.h>
12#include <aws/elasticloadbalancingv2/model/RuleCondition.h>
13#include <aws/elasticloadbalancingv2/model/RuleTransform.h>
14#include <aws/elasticloadbalancingv2/model/Tag.h>
19namespace ElasticLoadBalancingv2 {
46 template <
typename ListenerArnT = Aws::String>
48 m_listenerArnHasBeenSet =
true;
49 m_listenerArn = std::forward<ListenerArnT>(value);
51 template <
typename ListenerArnT = Aws::String>
64 template <
typename ConditionsT = Aws::Vector<RuleCondition>>
66 m_conditionsHasBeenSet =
true;
67 m_conditions = std::forward<ConditionsT>(value);
69 template <
typename ConditionsT = Aws::Vector<RuleCondition>>
74 template <
typename ConditionsT = RuleCondition>
76 m_conditionsHasBeenSet =
true;
77 m_conditions.emplace_back(std::forward<ConditionsT>(value));
90 m_priorityHasBeenSet =
true;
105 template <
typename ActionsT = Aws::Vector<Action>>
107 m_actionsHasBeenSet =
true;
108 m_actions = std::forward<ActionsT>(value);
110 template <
typename ActionsT = Aws::Vector<Action>>
115 template <
typename ActionsT = Action>
117 m_actionsHasBeenSet =
true;
118 m_actions.emplace_back(std::forward<ActionsT>(value));
129 template <
typename TagsT = Aws::Vector<Tag>>
131 m_tagsHasBeenSet =
true;
132 m_tags = std::forward<TagsT>(value);
134 template <
typename TagsT = Aws::Vector<Tag>>
136 SetTags(std::forward<TagsT>(value));
139 template <
typename TagsT = Tag>
141 m_tagsHasBeenSet =
true;
142 m_tags.emplace_back(std::forward<TagsT>(value));
154 template <
typename TransformsT = Aws::Vector<RuleTransform>>
156 m_transformsHasBeenSet =
true;
157 m_transforms = std::forward<TransformsT>(value);
159 template <
typename TransformsT = Aws::Vector<RuleTransform>>
164 template <
typename TransformsT = RuleTransform>
166 m_transformsHasBeenSet =
true;
167 m_transforms.emplace_back(std::forward<TransformsT>(value));
183 bool m_listenerArnHasBeenSet =
false;
184 bool m_conditionsHasBeenSet =
false;
185 bool m_priorityHasBeenSet =
false;
186 bool m_actionsHasBeenSet =
false;
187 bool m_tagsHasBeenSet =
false;
188 bool m_transformsHasBeenSet =
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 & WithTransforms(TransformsT &&value)
CreateRuleRequest & AddConditions(ConditionsT &&value)
const Aws::String & GetListenerArn() const
bool ListenerArnHasBeenSet() const
bool TransformsHasBeenSet() const
CreateRuleRequest & AddTransforms(TransformsT &&value)
bool TagsHasBeenSet() const
void SetTransforms(TransformsT &&value)
const Aws::Vector< RuleTransform > & GetTransforms() 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