AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
CreateLinkRoutingRuleRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rtbfabric/RTBFabricRequest.h>
11#include <aws/rtbfabric/RTBFabric_EXPORTS.h>
12#include <aws/rtbfabric/model/RuleCondition.h>
13
14#include <utility>
15
16namespace Aws {
17namespace RTBFabric {
18namespace Model {
19
23 public:
24 AWS_RTBFABRIC_API CreateLinkRoutingRuleRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateLinkRoutingRule"; }
31
32 AWS_RTBFABRIC_API Aws::String SerializePayload() const override;
33
35
47 inline const Aws::String& GetClientToken() const { return m_clientToken; }
48 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
49 template <typename ClientTokenT = Aws::String>
50 void SetClientToken(ClientTokenT&& value) {
51 m_clientTokenHasBeenSet = true;
52 m_clientToken = std::forward<ClientTokenT>(value);
53 }
54 template <typename ClientTokenT = Aws::String>
56 SetClientToken(std::forward<ClientTokenT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetGatewayId() const { return m_gatewayId; }
66 inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
67 template <typename GatewayIdT = Aws::String>
68 void SetGatewayId(GatewayIdT&& value) {
69 m_gatewayIdHasBeenSet = true;
70 m_gatewayId = std::forward<GatewayIdT>(value);
71 }
72 template <typename GatewayIdT = Aws::String>
74 SetGatewayId(std::forward<GatewayIdT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetLinkId() const { return m_linkId; }
84 inline bool LinkIdHasBeenSet() const { return m_linkIdHasBeenSet; }
85 template <typename LinkIdT = Aws::String>
86 void SetLinkId(LinkIdT&& value) {
87 m_linkIdHasBeenSet = true;
88 m_linkId = std::forward<LinkIdT>(value);
89 }
90 template <typename LinkIdT = Aws::String>
92 SetLinkId(std::forward<LinkIdT>(value));
93 return *this;
94 }
96
98
103 inline int GetPriority() const { return m_priority; }
104 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
105 inline void SetPriority(int value) {
106 m_priorityHasBeenSet = true;
107 m_priority = value;
108 }
110 SetPriority(value);
111 return *this;
112 }
114
116
120 inline const RuleCondition& GetConditions() const { return m_conditions; }
121 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
122 template <typename ConditionsT = RuleCondition>
123 void SetConditions(ConditionsT&& value) {
124 m_conditionsHasBeenSet = true;
125 m_conditions = std::forward<ConditionsT>(value);
126 }
127 template <typename ConditionsT = RuleCondition>
129 SetConditions(std::forward<ConditionsT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
140 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
141 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
142 void SetTags(TagsT&& value) {
143 m_tagsHasBeenSet = true;
144 m_tags = std::forward<TagsT>(value);
145 }
146 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 SetTags(std::forward<TagsT>(value));
149 return *this;
150 }
151 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
152 CreateLinkRoutingRuleRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
153 m_tagsHasBeenSet = true;
154 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
155 return *this;
156 }
158 private:
160
161 Aws::String m_gatewayId;
162
163 Aws::String m_linkId;
164
165 int m_priority{0};
166
167 RuleCondition m_conditions;
168
170 bool m_clientTokenHasBeenSet = true;
171 bool m_gatewayIdHasBeenSet = false;
172 bool m_linkIdHasBeenSet = false;
173 bool m_priorityHasBeenSet = false;
174 bool m_conditionsHasBeenSet = false;
175 bool m_tagsHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace RTBFabric
180} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
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