7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.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>
24namespace ElasticLoadBalancingv2
37 AWS_ELASTICLOADBALANCINGV2_API
Rule();
41 AWS_ELASTICLOADBALANCINGV2_API
void OutputToStream(
Aws::OStream& ostream,
const char* location,
unsigned index,
const char* locationValue)
const;
53 inline void SetRuleArn(
const char* value) { m_ruleArnHasBeenSet =
true; m_ruleArn.assign(value); }
67 inline void SetPriority(
const char* value) { m_priorityHasBeenSet =
true; m_priority.assign(value); }
103 inline Rule&
AddActions(
const Action& value) { m_actionsHasBeenSet =
true; m_actions.push_back(value);
return *
this; }
104 inline Rule&
AddActions(
Action&& value) { m_actionsHasBeenSet =
true; m_actions.push_back(std::move(value));
return *
this; }
113 inline void SetIsDefault(
bool value) { m_isDefaultHasBeenSet =
true; m_isDefault = value; }
119 bool m_ruleArnHasBeenSet =
false;
122 bool m_priorityHasBeenSet =
false;
125 bool m_conditionsHasBeenSet =
false;
128 bool m_actionsHasBeenSet =
false;
131 bool m_isDefaultHasBeenSet =
false;
void SetConditions(const Aws::Vector< RuleCondition > &value)
Rule & WithPriority(const Aws::String &value)
AWS_ELASTICLOADBALANCINGV2_API Rule(const Aws::Utils::Xml::XmlNode &xmlNode)
Rule & WithRuleArn(Aws::String &&value)
Rule & WithRuleArn(const Aws::String &value)
AWS_ELASTICLOADBALANCINGV2_API Rule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Rule & WithConditions(Aws::Vector< RuleCondition > &&value)
Rule & WithIsDefault(bool value)
void SetConditions(Aws::Vector< RuleCondition > &&value)
bool IsDefaultHasBeenSet() const
Rule & AddActions(const Action &value)
void SetPriority(Aws::String &&value)
void SetActions(const Aws::Vector< Action > &value)
void SetIsDefault(bool value)
bool RuleArnHasBeenSet() const
bool GetIsDefault() const
void SetPriority(const Aws::String &value)
Rule & AddConditions(const RuleCondition &value)
const Aws::Vector< Action > & GetActions() const
Rule & WithRuleArn(const char *value)
bool ConditionsHasBeenSet() const
const Aws::Vector< RuleCondition > & GetConditions() const
AWS_ELASTICLOADBALANCINGV2_API Rule()
const Aws::String & GetRuleArn() const
void SetActions(Aws::Vector< Action > &&value)
bool ActionsHasBeenSet() const
void SetRuleArn(const char *value)
Rule & WithConditions(const Aws::Vector< RuleCondition > &value)
void SetPriority(const char *value)
Rule & WithActions(const Aws::Vector< Action > &value)
void SetRuleArn(const Aws::String &value)
Rule & WithPriority(const char *value)
void SetRuleArn(Aws::String &&value)
Rule & AddConditions(RuleCondition &&value)
const Aws::String & GetPriority() const
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Rule & WithPriority(Aws::String &&value)
Rule & AddActions(Action &&value)
Rule & WithActions(Aws::Vector< Action > &&value)
bool PriorityHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream