AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateRoutingRuleResult.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/apigatewayv2/model/RoutingRuleAction.h>
9#include <aws/apigatewayv2/model/RoutingRuleCondition.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace ApiGatewayV2 {
26namespace Model {
28 public:
29 AWS_APIGATEWAYV2_API CreateRoutingRuleResult() = default;
32
34
37 inline const Aws::Vector<RoutingRuleAction>& GetActions() const { return m_actions; }
38 template <typename ActionsT = Aws::Vector<RoutingRuleAction>>
39 void SetActions(ActionsT&& value) {
40 m_actionsHasBeenSet = true;
41 m_actions = std::forward<ActionsT>(value);
42 }
43 template <typename ActionsT = Aws::Vector<RoutingRuleAction>>
45 SetActions(std::forward<ActionsT>(value));
46 return *this;
47 }
48 template <typename ActionsT = RoutingRuleAction>
50 m_actionsHasBeenSet = true;
51 m_actions.emplace_back(std::forward<ActionsT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::Vector<RoutingRuleCondition>& GetConditions() const { return m_conditions; }
64 template <typename ConditionsT = Aws::Vector<RoutingRuleCondition>>
65 void SetConditions(ConditionsT&& value) {
66 m_conditionsHasBeenSet = true;
67 m_conditions = std::forward<ConditionsT>(value);
68 }
69 template <typename ConditionsT = Aws::Vector<RoutingRuleCondition>>
71 SetConditions(std::forward<ConditionsT>(value));
72 return *this;
73 }
74 template <typename ConditionsT = RoutingRuleCondition>
75 CreateRoutingRuleResult& AddConditions(ConditionsT&& value) {
76 m_conditionsHasBeenSet = true;
77 m_conditions.emplace_back(std::forward<ConditionsT>(value));
78 return *this;
79 }
81
83
86 inline int GetPriority() const { return m_priority; }
87 inline void SetPriority(int value) {
88 m_priorityHasBeenSet = true;
89 m_priority = value;
90 }
92 SetPriority(value);
93 return *this;
94 }
96
98
101 inline const Aws::String& GetRoutingRuleArn() const { return m_routingRuleArn; }
102 template <typename RoutingRuleArnT = Aws::String>
103 void SetRoutingRuleArn(RoutingRuleArnT&& value) {
104 m_routingRuleArnHasBeenSet = true;
105 m_routingRuleArn = std::forward<RoutingRuleArnT>(value);
106 }
107 template <typename RoutingRuleArnT = Aws::String>
108 CreateRoutingRuleResult& WithRoutingRuleArn(RoutingRuleArnT&& value) {
109 SetRoutingRuleArn(std::forward<RoutingRuleArnT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetRoutingRuleId() const { return m_routingRuleId; }
119 template <typename RoutingRuleIdT = Aws::String>
120 void SetRoutingRuleId(RoutingRuleIdT&& value) {
121 m_routingRuleIdHasBeenSet = true;
122 m_routingRuleId = std::forward<RoutingRuleIdT>(value);
123 }
124 template <typename RoutingRuleIdT = Aws::String>
126 SetRoutingRuleId(std::forward<RoutingRuleIdT>(value));
127 return *this;
128 }
130
132
133 inline const Aws::String& GetRequestId() const { return m_requestId; }
134 template <typename RequestIdT = Aws::String>
135 void SetRequestId(RequestIdT&& value) {
136 m_requestIdHasBeenSet = true;
137 m_requestId = std::forward<RequestIdT>(value);
138 }
139 template <typename RequestIdT = Aws::String>
141 SetRequestId(std::forward<RequestIdT>(value));
142 return *this;
143 }
145 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
146
147 private:
149
151
152 int m_priority{0};
153
154 Aws::String m_routingRuleArn;
155
156 Aws::String m_routingRuleId;
157
158 Aws::String m_requestId;
159 Aws::Http::HttpResponseCode m_HttpResponseCode;
160 bool m_actionsHasBeenSet = false;
161 bool m_conditionsHasBeenSet = false;
162 bool m_priorityHasBeenSet = false;
163 bool m_routingRuleArnHasBeenSet = false;
164 bool m_routingRuleIdHasBeenSet = false;
165 bool m_requestIdHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace ApiGatewayV2
170} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< RoutingRuleCondition > & GetConditions() const
const Aws::Vector< RoutingRuleAction > & GetActions() const
CreateRoutingRuleResult & WithRoutingRuleId(RoutingRuleIdT &&value)
CreateRoutingRuleResult & WithActions(ActionsT &&value)
CreateRoutingRuleResult & WithRequestId(RequestIdT &&value)
AWS_APIGATEWAYV2_API CreateRoutingRuleResult()=default
CreateRoutingRuleResult & WithConditions(ConditionsT &&value)
CreateRoutingRuleResult & AddConditions(ConditionsT &&value)
CreateRoutingRuleResult & AddActions(ActionsT &&value)
AWS_APIGATEWAYV2_API CreateRoutingRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APIGATEWAYV2_API CreateRoutingRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateRoutingRuleResult & WithRoutingRuleArn(RoutingRuleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue