AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateRoutingRuleResult.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/apigatewayv2/model/RoutingRuleAction.h>
11#include <aws/apigatewayv2/model/RoutingRuleCondition.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace ApiGatewayV2
27{
28namespace Model
29{
31 {
32 public:
33 AWS_APIGATEWAYV2_API CreateRoutingRuleResult() = default;
36
37
39
42 inline const Aws::Vector<RoutingRuleAction>& GetActions() const { return m_actions; }
43 template<typename ActionsT = Aws::Vector<RoutingRuleAction>>
44 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
45 template<typename ActionsT = Aws::Vector<RoutingRuleAction>>
46 CreateRoutingRuleResult& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
47 template<typename ActionsT = RoutingRuleAction>
48 CreateRoutingRuleResult& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
50
52
58 inline const Aws::Vector<RoutingRuleCondition>& GetConditions() const { return m_conditions; }
59 template<typename ConditionsT = Aws::Vector<RoutingRuleCondition>>
60 void SetConditions(ConditionsT&& value) { m_conditionsHasBeenSet = true; m_conditions = std::forward<ConditionsT>(value); }
61 template<typename ConditionsT = Aws::Vector<RoutingRuleCondition>>
62 CreateRoutingRuleResult& WithConditions(ConditionsT&& value) { SetConditions(std::forward<ConditionsT>(value)); return *this;}
63 template<typename ConditionsT = RoutingRuleCondition>
64 CreateRoutingRuleResult& AddConditions(ConditionsT&& value) { m_conditionsHasBeenSet = true; m_conditions.emplace_back(std::forward<ConditionsT>(value)); return *this; }
66
68
71 inline int GetPriority() const { return m_priority; }
72 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
73 inline CreateRoutingRuleResult& WithPriority(int value) { SetPriority(value); return *this;}
75
77
80 inline const Aws::String& GetRoutingRuleArn() const { return m_routingRuleArn; }
81 template<typename RoutingRuleArnT = Aws::String>
82 void SetRoutingRuleArn(RoutingRuleArnT&& value) { m_routingRuleArnHasBeenSet = true; m_routingRuleArn = std::forward<RoutingRuleArnT>(value); }
83 template<typename RoutingRuleArnT = Aws::String>
84 CreateRoutingRuleResult& WithRoutingRuleArn(RoutingRuleArnT&& value) { SetRoutingRuleArn(std::forward<RoutingRuleArnT>(value)); return *this;}
86
88
91 inline const Aws::String& GetRoutingRuleId() const { return m_routingRuleId; }
92 template<typename RoutingRuleIdT = Aws::String>
93 void SetRoutingRuleId(RoutingRuleIdT&& value) { m_routingRuleIdHasBeenSet = true; m_routingRuleId = std::forward<RoutingRuleIdT>(value); }
94 template<typename RoutingRuleIdT = Aws::String>
95 CreateRoutingRuleResult& WithRoutingRuleId(RoutingRuleIdT&& value) { SetRoutingRuleId(std::forward<RoutingRuleIdT>(value)); return *this;}
97
99
100 inline const Aws::String& GetRequestId() const { return m_requestId; }
101 template<typename RequestIdT = Aws::String>
102 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
103 template<typename RequestIdT = Aws::String>
104 CreateRoutingRuleResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
106 private:
107
109 bool m_actionsHasBeenSet = false;
110
112 bool m_conditionsHasBeenSet = false;
113
114 int m_priority{0};
115 bool m_priorityHasBeenSet = false;
116
117 Aws::String m_routingRuleArn;
118 bool m_routingRuleArnHasBeenSet = false;
119
120 Aws::String m_routingRuleId;
121 bool m_routingRuleIdHasBeenSet = false;
122
123 Aws::String m_requestId;
124 bool m_requestIdHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace ApiGatewayV2
129} // 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