AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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