AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ModifyRuleRequest.h
1
6#pragma once
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
15#include <utility>
16
17namespace Aws {
18namespace ElasticLoadBalancingv2 {
19namespace Model {
20
24 public:
25 AWS_ELASTICLOADBALANCINGV2_API ModifyRuleRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ModifyRule"; }
32
33 AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
43 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
44 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
45 template <typename RuleArnT = Aws::String>
46 void SetRuleArn(RuleArnT&& value) {
47 m_ruleArnHasBeenSet = true;
48 m_ruleArn = std::forward<RuleArnT>(value);
49 }
50 template <typename RuleArnT = Aws::String>
51 ModifyRuleRequest& WithRuleArn(RuleArnT&& value) {
52 SetRuleArn(std::forward<RuleArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<RuleCondition>& GetConditions() const { return m_conditions; }
62 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
63 template <typename ConditionsT = Aws::Vector<RuleCondition>>
64 void SetConditions(ConditionsT&& value) {
65 m_conditionsHasBeenSet = true;
66 m_conditions = std::forward<ConditionsT>(value);
67 }
68 template <typename ConditionsT = Aws::Vector<RuleCondition>>
69 ModifyRuleRequest& WithConditions(ConditionsT&& value) {
70 SetConditions(std::forward<ConditionsT>(value));
71 return *this;
72 }
73 template <typename ConditionsT = RuleCondition>
74 ModifyRuleRequest& AddConditions(ConditionsT&& value) {
75 m_conditionsHasBeenSet = true;
76 m_conditions.emplace_back(std::forward<ConditionsT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Vector<Action>& GetActions() const { return m_actions; }
86 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
87 template <typename ActionsT = Aws::Vector<Action>>
88 void SetActions(ActionsT&& value) {
89 m_actionsHasBeenSet = true;
90 m_actions = std::forward<ActionsT>(value);
91 }
92 template <typename ActionsT = Aws::Vector<Action>>
93 ModifyRuleRequest& WithActions(ActionsT&& value) {
94 SetActions(std::forward<ActionsT>(value));
95 return *this;
96 }
97 template <typename ActionsT = Action>
98 ModifyRuleRequest& AddActions(ActionsT&& value) {
99 m_actionsHasBeenSet = true;
100 m_actions.emplace_back(std::forward<ActionsT>(value));
101 return *this;
102 }
104
106
111 inline const Aws::Vector<RuleTransform>& GetTransforms() const { return m_transforms; }
112 inline bool TransformsHasBeenSet() const { return m_transformsHasBeenSet; }
113 template <typename TransformsT = Aws::Vector<RuleTransform>>
114 void SetTransforms(TransformsT&& value) {
115 m_transformsHasBeenSet = true;
116 m_transforms = std::forward<TransformsT>(value);
117 }
118 template <typename TransformsT = Aws::Vector<RuleTransform>>
119 ModifyRuleRequest& WithTransforms(TransformsT&& value) {
120 SetTransforms(std::forward<TransformsT>(value));
121 return *this;
122 }
123 template <typename TransformsT = RuleTransform>
124 ModifyRuleRequest& AddTransforms(TransformsT&& value) {
125 m_transformsHasBeenSet = true;
126 m_transforms.emplace_back(std::forward<TransformsT>(value));
127 return *this;
128 }
130
132
136 inline bool GetResetTransforms() const { return m_resetTransforms; }
137 inline bool ResetTransformsHasBeenSet() const { return m_resetTransformsHasBeenSet; }
138 inline void SetResetTransforms(bool value) {
139 m_resetTransformsHasBeenSet = true;
140 m_resetTransforms = value;
141 }
143 SetResetTransforms(value);
144 return *this;
145 }
147 private:
148 Aws::String m_ruleArn;
149
150 Aws::Vector<RuleCondition> m_conditions;
151
152 Aws::Vector<Action> m_actions;
153
154 Aws::Vector<RuleTransform> m_transforms;
155
156 bool m_resetTransforms{false};
157 bool m_ruleArnHasBeenSet = false;
158 bool m_conditionsHasBeenSet = false;
159 bool m_actionsHasBeenSet = false;
160 bool m_transformsHasBeenSet = false;
161 bool m_resetTransformsHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace ElasticLoadBalancingv2
166} // namespace Aws
ModifyRuleRequest & AddActions(ActionsT &&value)
ModifyRuleRequest & WithActions(ActionsT &&value)
ModifyRuleRequest & WithTransforms(TransformsT &&value)
const Aws::Vector< RuleCondition > & GetConditions() const
AWS_ELASTICLOADBALANCINGV2_API ModifyRuleRequest()=default
const Aws::Vector< Action > & GetActions() const
ModifyRuleRequest & WithConditions(ConditionsT &&value)
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
ModifyRuleRequest & AddConditions(ConditionsT &&value)
const Aws::Vector< RuleTransform > & GetTransforms() const
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyRuleRequest & WithRuleArn(RuleArnT &&value)
virtual const char * GetServiceRequestName() const override
ModifyRuleRequest & AddTransforms(TransformsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector