AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ModifyRuleRequest.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2Request.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 ElasticLoadBalancingv2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_ELASTICLOADBALANCINGV2_API ModifyRuleRequest() = default;
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_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
47 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
48 template<typename RuleArnT = Aws::String>
49 void SetRuleArn(RuleArnT&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::forward<RuleArnT>(value); }
50 template<typename RuleArnT = Aws::String>
51 ModifyRuleRequest& WithRuleArn(RuleArnT&& value) { SetRuleArn(std::forward<RuleArnT>(value)); return *this;}
53
55
58 inline const Aws::Vector<RuleCondition>& GetConditions() const { return m_conditions; }
59 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
60 template<typename ConditionsT = Aws::Vector<RuleCondition>>
61 void SetConditions(ConditionsT&& value) { m_conditionsHasBeenSet = true; m_conditions = std::forward<ConditionsT>(value); }
62 template<typename ConditionsT = Aws::Vector<RuleCondition>>
63 ModifyRuleRequest& WithConditions(ConditionsT&& value) { SetConditions(std::forward<ConditionsT>(value)); return *this;}
64 template<typename ConditionsT = RuleCondition>
65 ModifyRuleRequest& AddConditions(ConditionsT&& value) { m_conditionsHasBeenSet = true; m_conditions.emplace_back(std::forward<ConditionsT>(value)); return *this; }
67
69
72 inline const Aws::Vector<Action>& GetActions() const { return m_actions; }
73 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
74 template<typename ActionsT = Aws::Vector<Action>>
75 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
76 template<typename ActionsT = Aws::Vector<Action>>
77 ModifyRuleRequest& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
78 template<typename ActionsT = Action>
79 ModifyRuleRequest& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
81 private:
82
83 Aws::String m_ruleArn;
84 bool m_ruleArnHasBeenSet = false;
85
86 Aws::Vector<RuleCondition> m_conditions;
87 bool m_conditionsHasBeenSet = false;
88
89 Aws::Vector<Action> m_actions;
90 bool m_actionsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace ElasticLoadBalancingv2
95} // namespace Aws
ModifyRuleRequest & AddActions(ActionsT &&value)
ModifyRuleRequest & WithActions(ActionsT &&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)
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyRuleRequest & WithRuleArn(RuleArnT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector