AWS SDK for C++

AWS SDK for C++ Version 1.11.754

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ApiGatewayV2 {
21namespace Model {
22
29 public:
30 AWS_APIGATEWAYV2_API RoutingRuleCondition() = default;
31 AWS_APIGATEWAYV2_API RoutingRuleCondition(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const RoutingRuleMatchBasePaths& GetMatchBasePaths() const { return m_matchBasePaths; }
40 inline bool MatchBasePathsHasBeenSet() const { return m_matchBasePathsHasBeenSet; }
41 template <typename MatchBasePathsT = RoutingRuleMatchBasePaths>
42 void SetMatchBasePaths(MatchBasePathsT&& value) {
43 m_matchBasePathsHasBeenSet = true;
44 m_matchBasePaths = std::forward<MatchBasePathsT>(value);
45 }
46 template <typename MatchBasePathsT = RoutingRuleMatchBasePaths>
47 RoutingRuleCondition& WithMatchBasePaths(MatchBasePathsT&& value) {
48 SetMatchBasePaths(std::forward<MatchBasePathsT>(value));
49 return *this;
50 }
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) {
61 m_matchHeadersHasBeenSet = true;
62 m_matchHeaders = std::forward<MatchHeadersT>(value);
63 }
64 template <typename MatchHeadersT = RoutingRuleMatchHeaders>
65 RoutingRuleCondition& WithMatchHeaders(MatchHeadersT&& value) {
66 SetMatchHeaders(std::forward<MatchHeadersT>(value));
67 return *this;
68 }
70 private:
71 RoutingRuleMatchBasePaths m_matchBasePaths;
72
73 RoutingRuleMatchHeaders m_matchHeaders;
74 bool m_matchBasePathsHasBeenSet = false;
75 bool m_matchHeadersHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace ApiGatewayV2
80} // 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