AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRuleRequest.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 <aws/elasticloadbalancingv2/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace ElasticLoadBalancingv2
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_ELASTICLOADBALANCINGV2_API CreateRuleRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateRule"; }
35
36 AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
47 inline const Aws::String& GetListenerArn() const{ return m_listenerArn; }
48 inline bool ListenerArnHasBeenSet() const { return m_listenerArnHasBeenSet; }
49 inline void SetListenerArn(const Aws::String& value) { m_listenerArnHasBeenSet = true; m_listenerArn = value; }
50 inline void SetListenerArn(Aws::String&& value) { m_listenerArnHasBeenSet = true; m_listenerArn = std::move(value); }
51 inline void SetListenerArn(const char* value) { m_listenerArnHasBeenSet = true; m_listenerArn.assign(value); }
52 inline CreateRuleRequest& WithListenerArn(const Aws::String& value) { SetListenerArn(value); return *this;}
53 inline CreateRuleRequest& WithListenerArn(Aws::String&& value) { SetListenerArn(std::move(value)); return *this;}
54 inline CreateRuleRequest& WithListenerArn(const char* value) { SetListenerArn(value); return *this;}
56
58
61 inline const Aws::Vector<RuleCondition>& GetConditions() const{ return m_conditions; }
62 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
63 inline void SetConditions(const Aws::Vector<RuleCondition>& value) { m_conditionsHasBeenSet = true; m_conditions = value; }
64 inline void SetConditions(Aws::Vector<RuleCondition>&& value) { m_conditionsHasBeenSet = true; m_conditions = std::move(value); }
65 inline CreateRuleRequest& WithConditions(const Aws::Vector<RuleCondition>& value) { SetConditions(value); return *this;}
66 inline CreateRuleRequest& WithConditions(Aws::Vector<RuleCondition>&& value) { SetConditions(std::move(value)); return *this;}
67 inline CreateRuleRequest& AddConditions(const RuleCondition& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(value); return *this; }
68 inline CreateRuleRequest& AddConditions(RuleCondition&& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(std::move(value)); return *this; }
70
72
76 inline int GetPriority() const{ return m_priority; }
77 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
78 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
79 inline CreateRuleRequest& WithPriority(int value) { SetPriority(value); return *this;}
81
83
86 inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
87 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
88 inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
89 inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
90 inline CreateRuleRequest& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
91 inline CreateRuleRequest& WithActions(Aws::Vector<Action>&& value) { SetActions(std::move(value)); return *this;}
92 inline CreateRuleRequest& AddActions(const Action& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
93 inline CreateRuleRequest& AddActions(Action&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
95
97
100 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
103 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
104 inline CreateRuleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
105 inline CreateRuleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
106 inline CreateRuleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
107 inline CreateRuleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
109 private:
110
111 Aws::String m_listenerArn;
112 bool m_listenerArnHasBeenSet = false;
113
114 Aws::Vector<RuleCondition> m_conditions;
115 bool m_conditionsHasBeenSet = false;
116
117 int m_priority;
118 bool m_priorityHasBeenSet = false;
119
120 Aws::Vector<Action> m_actions;
121 bool m_actionsHasBeenSet = false;
122
123 Aws::Vector<Tag> m_tags;
124 bool m_tagsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace ElasticLoadBalancingv2
129} // namespace Aws
CreateRuleRequest & WithListenerArn(const Aws::String &value)
CreateRuleRequest & WithTags(Aws::Vector< Tag > &&value)
CreateRuleRequest & WithTags(const Aws::Vector< Tag > &value)
const Aws::Vector< RuleCondition > & GetConditions() const
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
AWS_ELASTICLOADBALANCINGV2_API CreateRuleRequest()
CreateRuleRequest & WithConditions(Aws::Vector< RuleCondition > &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Action > & GetActions() const
void SetActions(const Aws::Vector< Action > &value)
CreateRuleRequest & WithListenerArn(const char *value)
CreateRuleRequest & WithListenerArn(Aws::String &&value)
CreateRuleRequest & WithConditions(const Aws::Vector< RuleCondition > &value)
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateRuleRequest & AddConditions(RuleCondition &&value)
CreateRuleRequest & WithActions(Aws::Vector< Action > &&value)
CreateRuleRequest & WithActions(const Aws::Vector< Action > &value)
void SetConditions(const Aws::Vector< RuleCondition > &value)
CreateRuleRequest & AddActions(const Action &value)
CreateRuleRequest & AddConditions(const RuleCondition &value)
void SetConditions(Aws::Vector< RuleCondition > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector