AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RoutingRuleCondition.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/apigatewayv2/model/RoutingRuleMatchBasePaths.h>
9#include <aws/apigatewayv2/model/RoutingRuleMatchHeaders.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ApiGatewayV2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_APIGATEWAYV2_API RoutingRuleCondition() = default;
36 AWS_APIGATEWAYV2_API RoutingRuleCondition(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const RoutingRuleMatchBasePaths& GetMatchBasePaths() const { return m_matchBasePaths; }
46 inline bool MatchBasePathsHasBeenSet() const { return m_matchBasePathsHasBeenSet; }
47 template<typename MatchBasePathsT = RoutingRuleMatchBasePaths>
48 void SetMatchBasePaths(MatchBasePathsT&& value) { m_matchBasePathsHasBeenSet = true; m_matchBasePaths = std::forward<MatchBasePathsT>(value); }
49 template<typename MatchBasePathsT = RoutingRuleMatchBasePaths>
50 RoutingRuleCondition& WithMatchBasePaths(MatchBasePathsT&& value) { SetMatchBasePaths(std::forward<MatchBasePathsT>(value)); return *this;}
52
54
57 inline const RoutingRuleMatchHeaders& GetMatchHeaders() const { return m_matchHeaders; }
58 inline bool MatchHeadersHasBeenSet() const { return m_matchHeadersHasBeenSet; }
59 template<typename MatchHeadersT = RoutingRuleMatchHeaders>
60 void SetMatchHeaders(MatchHeadersT&& value) { m_matchHeadersHasBeenSet = true; m_matchHeaders = std::forward<MatchHeadersT>(value); }
61 template<typename MatchHeadersT = RoutingRuleMatchHeaders>
62 RoutingRuleCondition& WithMatchHeaders(MatchHeadersT&& value) { SetMatchHeaders(std::forward<MatchHeadersT>(value)); return *this;}
64 private:
65
66 RoutingRuleMatchBasePaths m_matchBasePaths;
67 bool m_matchBasePathsHasBeenSet = false;
68
69 RoutingRuleMatchHeaders m_matchHeaders;
70 bool m_matchHeadersHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace ApiGatewayV2
75} // namespace Aws
RoutingRuleCondition & WithMatchBasePaths(MatchBasePathsT &&value)
const RoutingRuleMatchBasePaths & GetMatchBasePaths() const
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
const RoutingRuleMatchHeaders & GetMatchHeaders() const
RoutingRuleCondition & WithMatchHeaders(MatchHeadersT &&value)
AWS_APIGATEWAYV2_API RoutingRuleCondition()=default
AWS_APIGATEWAYV2_API RoutingRuleCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APIGATEWAYV2_API RoutingRuleCondition(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue