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/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/vpc-lattice/VPCLatticeRequest.h>
9#include <aws/vpc-lattice/model/RuleAction.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/vpc-lattice/model/RuleMatch.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace VPCLattice
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_VPCLATTICE_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_VPCLATTICE_API Aws::String SerializePayload() const override;
37
38
40
43 inline const RuleAction& GetAction() const{ return m_action; }
44 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
45 inline void SetAction(const RuleAction& value) { m_actionHasBeenSet = true; m_action = value; }
46 inline void SetAction(RuleAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
47 inline CreateRuleRequest& WithAction(const RuleAction& value) { SetAction(value); return *this;}
48 inline CreateRuleRequest& WithAction(RuleAction&& value) { SetAction(std::move(value)); return *this;}
50
52
58 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
59 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
60 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
61 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
62 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
63 inline CreateRuleRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
64 inline CreateRuleRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
65 inline CreateRuleRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
67
69
72 inline const Aws::String& GetListenerIdentifier() const{ return m_listenerIdentifier; }
73 inline bool ListenerIdentifierHasBeenSet() const { return m_listenerIdentifierHasBeenSet; }
74 inline void SetListenerIdentifier(const Aws::String& value) { m_listenerIdentifierHasBeenSet = true; m_listenerIdentifier = value; }
75 inline void SetListenerIdentifier(Aws::String&& value) { m_listenerIdentifierHasBeenSet = true; m_listenerIdentifier = std::move(value); }
76 inline void SetListenerIdentifier(const char* value) { m_listenerIdentifierHasBeenSet = true; m_listenerIdentifier.assign(value); }
77 inline CreateRuleRequest& WithListenerIdentifier(const Aws::String& value) { SetListenerIdentifier(value); return *this;}
78 inline CreateRuleRequest& WithListenerIdentifier(Aws::String&& value) { SetListenerIdentifier(std::move(value)); return *this;}
79 inline CreateRuleRequest& WithListenerIdentifier(const char* value) { SetListenerIdentifier(value); return *this;}
81
83
86 inline const RuleMatch& GetMatch() const{ return m_match; }
87 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
88 inline void SetMatch(const RuleMatch& value) { m_matchHasBeenSet = true; m_match = value; }
89 inline void SetMatch(RuleMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
90 inline CreateRuleRequest& WithMatch(const RuleMatch& value) { SetMatch(value); return *this;}
91 inline CreateRuleRequest& WithMatch(RuleMatch&& value) { SetMatch(std::move(value)); return *this;}
93
95
100 inline const Aws::String& GetName() const{ return m_name; }
101 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
102 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
103 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
104 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
105 inline CreateRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
106 inline CreateRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
107 inline CreateRuleRequest& WithName(const char* value) { SetName(value); return *this;}
109
111
116 inline int GetPriority() const{ return m_priority; }
117 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
118 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
119 inline CreateRuleRequest& WithPriority(int value) { SetPriority(value); return *this;}
121
123
126 inline const Aws::String& GetServiceIdentifier() const{ return m_serviceIdentifier; }
127 inline bool ServiceIdentifierHasBeenSet() const { return m_serviceIdentifierHasBeenSet; }
128 inline void SetServiceIdentifier(const Aws::String& value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier = value; }
129 inline void SetServiceIdentifier(Aws::String&& value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier = std::move(value); }
130 inline void SetServiceIdentifier(const char* value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier.assign(value); }
131 inline CreateRuleRequest& WithServiceIdentifier(const Aws::String& value) { SetServiceIdentifier(value); return *this;}
132 inline CreateRuleRequest& WithServiceIdentifier(Aws::String&& value) { SetServiceIdentifier(std::move(value)); return *this;}
133 inline CreateRuleRequest& WithServiceIdentifier(const char* value) { SetServiceIdentifier(value); return *this;}
135
137
140 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
141 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
142 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
143 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
144 inline CreateRuleRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
145 inline CreateRuleRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
146 inline CreateRuleRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
147 inline CreateRuleRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
148 inline CreateRuleRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
149 inline CreateRuleRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
150 inline CreateRuleRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
151 inline CreateRuleRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
152 inline CreateRuleRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
154 private:
155
156 RuleAction m_action;
157 bool m_actionHasBeenSet = false;
158
159 Aws::String m_clientToken;
160 bool m_clientTokenHasBeenSet = false;
161
162 Aws::String m_listenerIdentifier;
163 bool m_listenerIdentifierHasBeenSet = false;
164
165 RuleMatch m_match;
166 bool m_matchHasBeenSet = false;
167
168 Aws::String m_name;
169 bool m_nameHasBeenSet = false;
170
171 int m_priority;
172 bool m_priorityHasBeenSet = false;
173
174 Aws::String m_serviceIdentifier;
175 bool m_serviceIdentifierHasBeenSet = false;
176
178 bool m_tagsHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace VPCLattice
183} // namespace Aws
CreateRuleRequest & WithListenerIdentifier(Aws::String &&value)
CreateRuleRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateRuleRequest & WithClientToken(const char *value)
CreateRuleRequest & AddTags(Aws::String &&key, const char *value)
CreateRuleRequest & WithAction(RuleAction &&value)
CreateRuleRequest & WithClientToken(const Aws::String &value)
void SetListenerIdentifier(const Aws::String &value)
const Aws::String & GetServiceIdentifier() const
CreateRuleRequest & WithName(const char *value)
CreateRuleRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateRuleRequest & WithMatch(RuleMatch &&value)
CreateRuleRequest & WithName(Aws::String &&value)
void SetAction(const RuleAction &value)
CreateRuleRequest & WithName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateRuleRequest & WithListenerIdentifier(const Aws::String &value)
CreateRuleRequest & WithPriority(int value)
CreateRuleRequest & WithListenerIdentifier(const char *value)
const Aws::String & GetListenerIdentifier() const
CreateRuleRequest & WithServiceIdentifier(Aws::String &&value)
CreateRuleRequest & WithClientToken(Aws::String &&value)
void SetName(const Aws::String &value)
void SetServiceIdentifier(const Aws::String &value)
CreateRuleRequest & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateRuleRequest & AddTags(const char *key, Aws::String &&value)
CreateRuleRequest & WithAction(const RuleAction &value)
CreateRuleRequest & WithServiceIdentifier(const Aws::String &value)
void SetClientToken(const Aws::String &value)
CreateRuleRequest & AddTags(const char *key, const char *value)
CreateRuleRequest & WithMatch(const RuleMatch &value)
CreateRuleRequest & WithServiceIdentifier(const char *value)
CreateRuleRequest & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::String & GetClientToken() const
CreateRuleRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetListenerIdentifier(Aws::String &&value)
AWS_VPCLATTICE_API Aws::String SerializePayload() const override
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateRuleRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String