AWS SDK for C++  1.8.71
AWS SDK for C++
ModifyRuleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace ElasticLoadBalancingv2
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "ModifyRule"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
45  inline const Aws::String& GetRuleArn() const{ return m_ruleArn; }
46 
50  inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
51 
55  inline void SetRuleArn(const Aws::String& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; }
56 
60  inline void SetRuleArn(Aws::String&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::move(value); }
61 
65  inline void SetRuleArn(const char* value) { m_ruleArnHasBeenSet = true; m_ruleArn.assign(value); }
66 
70  inline ModifyRuleRequest& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
71 
75  inline ModifyRuleRequest& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;}
76 
80  inline ModifyRuleRequest& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
81 
82 
90  inline const Aws::Vector<RuleCondition>& GetConditions() const{ return m_conditions; }
91 
99  inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
100 
108  inline void SetConditions(const Aws::Vector<RuleCondition>& value) { m_conditionsHasBeenSet = true; m_conditions = value; }
109 
117  inline void SetConditions(Aws::Vector<RuleCondition>&& value) { m_conditionsHasBeenSet = true; m_conditions = std::move(value); }
118 
126  inline ModifyRuleRequest& WithConditions(const Aws::Vector<RuleCondition>& value) { SetConditions(value); return *this;}
127 
135  inline ModifyRuleRequest& WithConditions(Aws::Vector<RuleCondition>&& value) { SetConditions(std::move(value)); return *this;}
136 
144  inline ModifyRuleRequest& AddConditions(const RuleCondition& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(value); return *this; }
145 
153  inline ModifyRuleRequest& AddConditions(RuleCondition&& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(std::move(value)); return *this; }
154 
155 
173  inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
174 
192  inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
193 
211  inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
212 
230  inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
231 
249  inline ModifyRuleRequest& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
250 
268  inline ModifyRuleRequest& WithActions(Aws::Vector<Action>&& value) { SetActions(std::move(value)); return *this;}
269 
287  inline ModifyRuleRequest& AddActions(const Action& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
288 
306  inline ModifyRuleRequest& AddActions(Action&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
307 
308  private:
309 
310  Aws::String m_ruleArn;
311  bool m_ruleArnHasBeenSet;
312 
313  Aws::Vector<RuleCondition> m_conditions;
314  bool m_conditionsHasBeenSet;
315 
316  Aws::Vector<Action> m_actions;
317  bool m_actionsHasBeenSet;
318  };
319 
320 } // namespace Model
321 } // namespace ElasticLoadBalancingv2
322 } // namespace Aws
ModifyRuleRequest & WithConditions(const Aws::Vector< RuleCondition > &value)
ModifyRuleRequest & WithConditions(Aws::Vector< RuleCondition > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
const Aws::Vector< Action > & GetActions() const
ModifyRuleRequest & WithRuleArn(const char *value)
const Aws::Vector< RuleCondition > & GetConditions() const
void SetActions(const Aws::Vector< Action > &value)
ModifyRuleRequest & AddConditions(const RuleCondition &value)
void SetConditions(const Aws::Vector< RuleCondition > &value)
ModifyRuleRequest & WithActions(Aws::Vector< Action > &&value)
ModifyRuleRequest & AddActions(const Action &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
virtual const char * GetServiceRequestName() const override
ModifyRuleRequest & WithActions(const Aws::Vector< Action > &value)
ModifyRuleRequest & AddConditions(RuleCondition &&value)
ModifyRuleRequest & WithRuleArn(Aws::String &&value)
#define AWS_ELASTICLOADBALANCINGV2_API
void SetConditions(Aws::Vector< RuleCondition > &&value)
ModifyRuleRequest & WithRuleArn(const Aws::String &value)