AWS SDK for C++

AWS SDK for C++ Version 1.11.756

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/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace ApiGatewayV2 {
25namespace Model {
27 public:
28 AWS_APIGATEWAYV2_API CreateRoutingRuleResult() = default;
31
33
36 inline const Aws::Vector<RoutingRuleAction>& GetActions() const { return m_actions; }
37 template <typename ActionsT = Aws::Vector<RoutingRuleAction>>
38 void SetActions(ActionsT&& value) {
39 m_actionsHasBeenSet = true;
40 m_actions = std::forward<ActionsT>(value);
41 }
42 template <typename ActionsT = Aws::Vector<RoutingRuleAction>>
44 SetActions(std::forward<ActionsT>(value));
45 return *this;
46 }
47 template <typename ActionsT = RoutingRuleAction>
49 m_actionsHasBeenSet = true;
50 m_actions.emplace_back(std::forward<ActionsT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::Vector<RoutingRuleCondition>& GetConditions() const { return m_conditions; }
63 template <typename ConditionsT = Aws::Vector<RoutingRuleCondition>>
64 void SetConditions(ConditionsT&& value) {
65 m_conditionsHasBeenSet = true;
66 m_conditions = std::forward<ConditionsT>(value);
67 }
68 template <typename ConditionsT = Aws::Vector<RoutingRuleCondition>>
70 SetConditions(std::forward<ConditionsT>(value));
71 return *this;
72 }
73 template <typename ConditionsT = RoutingRuleCondition>
74 CreateRoutingRuleResult& AddConditions(ConditionsT&& value) {
75 m_conditionsHasBeenSet = true;
76 m_conditions.emplace_back(std::forward<ConditionsT>(value));
77 return *this;
78 }
80
82
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 CreateRoutingRuleResult& 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>
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>
140 SetRequestId(std::forward<RequestIdT>(value));
141 return *this;
142 }
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 bool m_actionsHasBeenSet = false;
157 bool m_conditionsHasBeenSet = false;
158 bool m_priorityHasBeenSet = false;
159 bool m_routingRuleArnHasBeenSet = false;
160 bool m_routingRuleIdHasBeenSet = false;
161 bool m_requestIdHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace ApiGatewayV2
166} // namespace Aws
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