AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRuleArn(const Aws::String& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; }
49 inline void SetRuleArn(Aws::String&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::move(value); }
50 inline void SetRuleArn(const char* value) { m_ruleArnHasBeenSet = true; m_ruleArn.assign(value); }
51 inline ModifyRuleRequest& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
52 inline ModifyRuleRequest& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;}
53 inline ModifyRuleRequest& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
55
57
60 inline const Aws::Vector<RuleCondition>& GetConditions() const{ return m_conditions; }
61 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
62 inline void SetConditions(const Aws::Vector<RuleCondition>& value) { m_conditionsHasBeenSet = true; m_conditions = value; }
63 inline void SetConditions(Aws::Vector<RuleCondition>&& value) { m_conditionsHasBeenSet = true; m_conditions = std::move(value); }
64 inline ModifyRuleRequest& WithConditions(const Aws::Vector<RuleCondition>& value) { SetConditions(value); return *this;}
65 inline ModifyRuleRequest& WithConditions(Aws::Vector<RuleCondition>&& value) { SetConditions(std::move(value)); return *this;}
66 inline ModifyRuleRequest& AddConditions(const RuleCondition& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(value); return *this; }
67 inline ModifyRuleRequest& AddConditions(RuleCondition&& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(std::move(value)); return *this; }
69
71
74 inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
75 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
76 inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
77 inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
78 inline ModifyRuleRequest& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
79 inline ModifyRuleRequest& WithActions(Aws::Vector<Action>&& value) { SetActions(std::move(value)); return *this;}
80 inline ModifyRuleRequest& AddActions(const Action& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
81 inline ModifyRuleRequest& AddActions(Action&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
83 private:
84
85 Aws::String m_ruleArn;
86 bool m_ruleArnHasBeenSet = false;
87
88 Aws::Vector<RuleCondition> m_conditions;
89 bool m_conditionsHasBeenSet = false;
90
91 Aws::Vector<Action> m_actions;
92 bool m_actionsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace ElasticLoadBalancingv2
97} // namespace Aws
void SetActions(const Aws::Vector< Action > &value)
ModifyRuleRequest & AddConditions(RuleCondition &&value)
ModifyRuleRequest & AddActions(const Action &value)
void SetConditions(Aws::Vector< RuleCondition > &&value)
const Aws::Vector< RuleCondition > & GetConditions() const
ModifyRuleRequest & WithConditions(const Aws::Vector< RuleCondition > &value)
const Aws::Vector< Action > & GetActions() const
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
ModifyRuleRequest & WithConditions(Aws::Vector< RuleCondition > &&value)
void SetConditions(const Aws::Vector< RuleCondition > &value)
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICLOADBALANCINGV2_API ModifyRuleRequest()
ModifyRuleRequest & WithRuleArn(const char *value)
ModifyRuleRequest & WithRuleArn(Aws::String &&value)
ModifyRuleRequest & WithRuleArn(const Aws::String &value)
ModifyRuleRequest & WithActions(const Aws::Vector< Action > &value)
virtual const char * GetServiceRequestName() const override
ModifyRuleRequest & WithActions(Aws::Vector< Action > &&value)
ModifyRuleRequest & AddConditions(const RuleCondition &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector