AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Rule.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace ElasticLoadBalancingv2
25{
26namespace Model
27{
28
34 class Rule
35 {
36 public:
37 AWS_ELASTICLOADBALANCINGV2_API Rule();
38 AWS_ELASTICLOADBALANCINGV2_API Rule(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_ELASTICLOADBALANCINGV2_API Rule& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetRuleArn() const{ return m_ruleArn; }
50 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
51 inline void SetRuleArn(const Aws::String& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; }
52 inline void SetRuleArn(Aws::String&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::move(value); }
53 inline void SetRuleArn(const char* value) { m_ruleArnHasBeenSet = true; m_ruleArn.assign(value); }
54 inline Rule& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
55 inline Rule& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;}
56 inline Rule& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
58
60
63 inline const Aws::String& GetPriority() const{ return m_priority; }
64 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
65 inline void SetPriority(const Aws::String& value) { m_priorityHasBeenSet = true; m_priority = value; }
66 inline void SetPriority(Aws::String&& value) { m_priorityHasBeenSet = true; m_priority = std::move(value); }
67 inline void SetPriority(const char* value) { m_priorityHasBeenSet = true; m_priority.assign(value); }
68 inline Rule& WithPriority(const Aws::String& value) { SetPriority(value); return *this;}
69 inline Rule& WithPriority(Aws::String&& value) { SetPriority(std::move(value)); return *this;}
70 inline Rule& WithPriority(const char* value) { SetPriority(value); return *this;}
72
74
81 inline const Aws::Vector<RuleCondition>& GetConditions() const{ return m_conditions; }
82 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
83 inline void SetConditions(const Aws::Vector<RuleCondition>& value) { m_conditionsHasBeenSet = true; m_conditions = value; }
84 inline void SetConditions(Aws::Vector<RuleCondition>&& value) { m_conditionsHasBeenSet = true; m_conditions = std::move(value); }
85 inline Rule& WithConditions(const Aws::Vector<RuleCondition>& value) { SetConditions(value); return *this;}
86 inline Rule& WithConditions(Aws::Vector<RuleCondition>&& value) { SetConditions(std::move(value)); return *this;}
87 inline Rule& AddConditions(const RuleCondition& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(value); return *this; }
88 inline Rule& AddConditions(RuleCondition&& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(std::move(value)); return *this; }
90
92
97 inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
98 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
99 inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
100 inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
101 inline Rule& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
102 inline Rule& WithActions(Aws::Vector<Action>&& value) { SetActions(std::move(value)); return *this;}
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; }
106
108
111 inline bool GetIsDefault() const{ return m_isDefault; }
112 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
113 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
114 inline Rule& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
116 private:
117
118 Aws::String m_ruleArn;
119 bool m_ruleArnHasBeenSet = false;
120
121 Aws::String m_priority;
122 bool m_priorityHasBeenSet = false;
123
124 Aws::Vector<RuleCondition> m_conditions;
125 bool m_conditionsHasBeenSet = false;
126
127 Aws::Vector<Action> m_actions;
128 bool m_actionsHasBeenSet = false;
129
130 bool m_isDefault;
131 bool m_isDefaultHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace ElasticLoadBalancingv2
136} // namespace Aws
void SetConditions(const Aws::Vector< RuleCondition > &value)
Definition Rule.h:83
Rule & WithPriority(const Aws::String &value)
Definition Rule.h:68
AWS_ELASTICLOADBALANCINGV2_API Rule(const Aws::Utils::Xml::XmlNode &xmlNode)
Rule & WithRuleArn(Aws::String &&value)
Definition Rule.h:55
Rule & WithRuleArn(const Aws::String &value)
Definition Rule.h:54
AWS_ELASTICLOADBALANCINGV2_API Rule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Rule & WithConditions(Aws::Vector< RuleCondition > &&value)
Definition Rule.h:86
void SetConditions(Aws::Vector< RuleCondition > &&value)
Definition Rule.h:84
Rule & AddActions(const Action &value)
Definition Rule.h:103
void SetPriority(Aws::String &&value)
Definition Rule.h:66
void SetActions(const Aws::Vector< Action > &value)
Definition Rule.h:99
void SetPriority(const Aws::String &value)
Definition Rule.h:65
Rule & AddConditions(const RuleCondition &value)
Definition Rule.h:87
const Aws::Vector< Action > & GetActions() const
Definition Rule.h:97
Rule & WithRuleArn(const char *value)
Definition Rule.h:56
const Aws::Vector< RuleCondition > & GetConditions() const
Definition Rule.h:81
AWS_ELASTICLOADBALANCINGV2_API Rule()
const Aws::String & GetRuleArn() const
Definition Rule.h:49
void SetActions(Aws::Vector< Action > &&value)
Definition Rule.h:100
void SetRuleArn(const char *value)
Definition Rule.h:53
Rule & WithConditions(const Aws::Vector< RuleCondition > &value)
Definition Rule.h:85
void SetPriority(const char *value)
Definition Rule.h:67
Rule & WithActions(const Aws::Vector< Action > &value)
Definition Rule.h:101
void SetRuleArn(const Aws::String &value)
Definition Rule.h:51
Rule & WithPriority(const char *value)
Definition Rule.h:70
void SetRuleArn(Aws::String &&value)
Definition Rule.h:52
Rule & AddConditions(RuleCondition &&value)
Definition Rule.h:88
const Aws::String & GetPriority() const
Definition Rule.h:63
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)
Definition Rule.h:69
Rule & AddActions(Action &&value)
Definition Rule.h:104
Rule & WithActions(Aws::Vector< Action > &&value)
Definition Rule.h:102
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