AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetRoutingRuleResult.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 GetRoutingRuleResult() = default;
32
34
38 inline const Aws::Vector<RoutingRuleAction>& GetActions() const { return m_actions; }
39 template <typename ActionsT = Aws::Vector<RoutingRuleAction>>
40 void SetActions(ActionsT&& value) {
41 m_actionsHasBeenSet = true;
42 m_actions = std::forward<ActionsT>(value);
43 }
44 template <typename ActionsT = Aws::Vector<RoutingRuleAction>>
45 GetRoutingRuleResult& WithActions(ActionsT&& value) {
46 SetActions(std::forward<ActionsT>(value));
47 return *this;
48 }
49 template <typename ActionsT = RoutingRuleAction>
50 GetRoutingRuleResult& AddActions(ActionsT&& value) {
51 m_actionsHasBeenSet = true;
52 m_actions.emplace_back(std::forward<ActionsT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<RoutingRuleCondition>& GetConditions() const { return m_conditions; }
62 template <typename ConditionsT = Aws::Vector<RoutingRuleCondition>>
63 void SetConditions(ConditionsT&& value) {
64 m_conditionsHasBeenSet = true;
65 m_conditions = std::forward<ConditionsT>(value);
66 }
67 template <typename ConditionsT = Aws::Vector<RoutingRuleCondition>>
68 GetRoutingRuleResult& WithConditions(ConditionsT&& value) {
69 SetConditions(std::forward<ConditionsT>(value));
70 return *this;
71 }
72 template <typename ConditionsT = RoutingRuleCondition>
73 GetRoutingRuleResult& AddConditions(ConditionsT&& value) {
74 m_conditionsHasBeenSet = true;
75 m_conditions.emplace_back(std::forward<ConditionsT>(value));
76 return *this;
77 }
79
81
85 inline int GetPriority() const { return m_priority; }
86 inline void SetPriority(int value) {
87 m_priorityHasBeenSet = true;
88 m_priority = value;
89 }
91 SetPriority(value);
92 return *this;
93 }
95
97
100 inline const Aws::String& GetRoutingRuleArn() const { return m_routingRuleArn; }
101 template <typename RoutingRuleArnT = Aws::String>
102 void SetRoutingRuleArn(RoutingRuleArnT&& value) {
103 m_routingRuleArnHasBeenSet = true;
104 m_routingRuleArn = std::forward<RoutingRuleArnT>(value);
105 }
106 template <typename RoutingRuleArnT = Aws::String>
107 GetRoutingRuleResult& WithRoutingRuleArn(RoutingRuleArnT&& value) {
108 SetRoutingRuleArn(std::forward<RoutingRuleArnT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetRoutingRuleId() const { return m_routingRuleId; }
118 template <typename RoutingRuleIdT = Aws::String>
119 void SetRoutingRuleId(RoutingRuleIdT&& value) {
120 m_routingRuleIdHasBeenSet = true;
121 m_routingRuleId = std::forward<RoutingRuleIdT>(value);
122 }
123 template <typename RoutingRuleIdT = Aws::String>
124 GetRoutingRuleResult& WithRoutingRuleId(RoutingRuleIdT&& value) {
125 SetRoutingRuleId(std::forward<RoutingRuleIdT>(value));
126 return *this;
127 }
129
131
132 inline const Aws::String& GetRequestId() const { return m_requestId; }
133 template <typename RequestIdT = Aws::String>
134 void SetRequestId(RequestIdT&& value) {
135 m_requestIdHasBeenSet = true;
136 m_requestId = std::forward<RequestIdT>(value);
137 }
138 template <typename RequestIdT = Aws::String>
139 GetRoutingRuleResult& WithRequestId(RequestIdT&& value) {
140 SetRequestId(std::forward<RequestIdT>(value));
141 return *this;
142 }
144 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
145
146 private:
148
150
151 int m_priority{0};
152
153 Aws::String m_routingRuleArn;
154
155 Aws::String m_routingRuleId;
156
157 Aws::String m_requestId;
158 Aws::Http::HttpResponseCode m_HttpResponseCode;
159 bool m_actionsHasBeenSet = false;
160 bool m_conditionsHasBeenSet = false;
161 bool m_priorityHasBeenSet = false;
162 bool m_routingRuleArnHasBeenSet = false;
163 bool m_routingRuleIdHasBeenSet = false;
164 bool m_requestIdHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace ApiGatewayV2
169} // namespace Aws
AWS_APIGATEWAYV2_API GetRoutingRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< RoutingRuleCondition > & GetConditions() const
AWS_APIGATEWAYV2_API GetRoutingRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRoutingRuleResult & WithPriority(int value)
GetRoutingRuleResult & WithActions(ActionsT &&value)
GetRoutingRuleResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< RoutingRuleAction > & GetActions() const
GetRoutingRuleResult & WithRoutingRuleId(RoutingRuleIdT &&value)
GetRoutingRuleResult & AddConditions(ConditionsT &&value)
AWS_APIGATEWAYV2_API GetRoutingRuleResult()=default
GetRoutingRuleResult & AddActions(ActionsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetRoutingRuleResult & WithRoutingRuleArn(RoutingRuleArnT &&value)
GetRoutingRuleResult & WithConditions(ConditionsT &&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