AWS SDK for C++  0.14.3
AWS SDK for C++
ModifyRuleRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
22 
23 namespace Aws
24 {
25 namespace ElasticLoadBalancingv2
26 {
27 namespace Model
28 {
29 
34  {
35  public:
37  Aws::String SerializePayload() const override;
38 
42  inline const Aws::String& GetRuleArn() const{ return m_ruleArn; }
43 
47  inline void SetRuleArn(const Aws::String& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; }
48 
52  inline void SetRuleArn(Aws::String&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; }
53 
57  inline void SetRuleArn(const char* value) { m_ruleArnHasBeenSet = true; m_ruleArn.assign(value); }
58 
62  inline ModifyRuleRequest& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
63 
67  inline ModifyRuleRequest& WithRuleArn(Aws::String&& value) { SetRuleArn(value); return *this;}
68 
72  inline ModifyRuleRequest& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
73 
77  inline const Aws::Vector<RuleCondition>& GetConditions() const{ return m_conditions; }
78 
82  inline void SetConditions(const Aws::Vector<RuleCondition>& value) { m_conditionsHasBeenSet = true; m_conditions = value; }
83 
87  inline void SetConditions(Aws::Vector<RuleCondition>&& value) { m_conditionsHasBeenSet = true; m_conditions = value; }
88 
92  inline ModifyRuleRequest& WithConditions(const Aws::Vector<RuleCondition>& value) { SetConditions(value); return *this;}
93 
97  inline ModifyRuleRequest& WithConditions(Aws::Vector<RuleCondition>&& value) { SetConditions(value); return *this;}
98 
102  inline ModifyRuleRequest& AddConditions(const RuleCondition& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(value); return *this; }
103 
107  inline ModifyRuleRequest& AddConditions(RuleCondition&& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(value); return *this; }
108 
112  inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
113 
117  inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
118 
122  inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = value; }
123 
127  inline ModifyRuleRequest& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
128 
132  inline ModifyRuleRequest& WithActions(Aws::Vector<Action>&& value) { SetActions(value); return *this;}
133 
137  inline ModifyRuleRequest& AddActions(const Action& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
138 
142  inline ModifyRuleRequest& AddActions(Action&& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
143 
144  private:
145  Aws::String m_ruleArn;
146  bool m_ruleArnHasBeenSet;
147  Aws::Vector<RuleCondition> m_conditions;
148  bool m_conditionsHasBeenSet;
149  Aws::Vector<Action> m_actions;
150  bool m_actionsHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace ElasticLoadBalancingv2
155 } // 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:27
const Aws::Vector< Action > & GetActions() const
ModifyRuleRequest & WithRuleArn(const char *value)
void SetActions(const Aws::Vector< Action > &value)
ModifyRuleRequest & AddConditions(const RuleCondition &value)
const Aws::Vector< RuleCondition > & GetConditions() const
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
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)
JSON (JavaScript Object Notation).
ModifyRuleRequest & WithRuleArn(const Aws::String &value)