AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HttpRoute.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/HttpRouteAction.h>
9#include <aws/appmesh/model/HttpRouteMatch.h>
10#include <aws/appmesh/model/HttpRetryPolicy.h>
11#include <aws/appmesh/model/HttpTimeout.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AppMesh
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_APPMESH_API HttpRoute();
39 AWS_APPMESH_API HttpRoute(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPMESH_API HttpRoute& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const HttpRouteAction& GetAction() const{ return m_action; }
49 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
50 inline void SetAction(const HttpRouteAction& value) { m_actionHasBeenSet = true; m_action = value; }
51 inline void SetAction(HttpRouteAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
52 inline HttpRoute& WithAction(const HttpRouteAction& value) { SetAction(value); return *this;}
53 inline HttpRoute& WithAction(HttpRouteAction&& value) { SetAction(std::move(value)); return *this;}
55
57
60 inline const HttpRouteMatch& GetMatch() const{ return m_match; }
61 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
62 inline void SetMatch(const HttpRouteMatch& value) { m_matchHasBeenSet = true; m_match = value; }
63 inline void SetMatch(HttpRouteMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
64 inline HttpRoute& WithMatch(const HttpRouteMatch& value) { SetMatch(value); return *this;}
65 inline HttpRoute& WithMatch(HttpRouteMatch&& value) { SetMatch(std::move(value)); return *this;}
67
69
72 inline const HttpRetryPolicy& GetRetryPolicy() const{ return m_retryPolicy; }
73 inline bool RetryPolicyHasBeenSet() const { return m_retryPolicyHasBeenSet; }
74 inline void SetRetryPolicy(const HttpRetryPolicy& value) { m_retryPolicyHasBeenSet = true; m_retryPolicy = value; }
75 inline void SetRetryPolicy(HttpRetryPolicy&& value) { m_retryPolicyHasBeenSet = true; m_retryPolicy = std::move(value); }
76 inline HttpRoute& WithRetryPolicy(const HttpRetryPolicy& value) { SetRetryPolicy(value); return *this;}
77 inline HttpRoute& WithRetryPolicy(HttpRetryPolicy&& value) { SetRetryPolicy(std::move(value)); return *this;}
79
81
84 inline const HttpTimeout& GetTimeout() const{ return m_timeout; }
85 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
86 inline void SetTimeout(const HttpTimeout& value) { m_timeoutHasBeenSet = true; m_timeout = value; }
87 inline void SetTimeout(HttpTimeout&& value) { m_timeoutHasBeenSet = true; m_timeout = std::move(value); }
88 inline HttpRoute& WithTimeout(const HttpTimeout& value) { SetTimeout(value); return *this;}
89 inline HttpRoute& WithTimeout(HttpTimeout&& value) { SetTimeout(std::move(value)); return *this;}
91 private:
92
93 HttpRouteAction m_action;
94 bool m_actionHasBeenSet = false;
95
96 HttpRouteMatch m_match;
97 bool m_matchHasBeenSet = false;
98
99 HttpRetryPolicy m_retryPolicy;
100 bool m_retryPolicyHasBeenSet = false;
101
102 HttpTimeout m_timeout;
103 bool m_timeoutHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace AppMesh
108} // namespace Aws
void SetTimeout(HttpTimeout &&value)
Definition HttpRoute.h:87
HttpRoute & WithTimeout(HttpTimeout &&value)
Definition HttpRoute.h:89
HttpRoute & WithAction(const HttpRouteAction &value)
Definition HttpRoute.h:52
HttpRoute & WithMatch(const HttpRouteMatch &value)
Definition HttpRoute.h:64
void SetTimeout(const HttpTimeout &value)
Definition HttpRoute.h:86
const HttpRetryPolicy & GetRetryPolicy() const
Definition HttpRoute.h:72
const HttpTimeout & GetTimeout() const
Definition HttpRoute.h:84
const HttpRouteMatch & GetMatch() const
Definition HttpRoute.h:60
HttpRoute & WithMatch(HttpRouteMatch &&value)
Definition HttpRoute.h:65
HttpRoute & WithRetryPolicy(const HttpRetryPolicy &value)
Definition HttpRoute.h:76
HttpRoute & WithTimeout(const HttpTimeout &value)
Definition HttpRoute.h:88
void SetAction(HttpRouteAction &&value)
Definition HttpRoute.h:51
AWS_APPMESH_API HttpRoute & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRetryPolicy(const HttpRetryPolicy &value)
Definition HttpRoute.h:74
void SetMatch(HttpRouteMatch &&value)
Definition HttpRoute.h:63
AWS_APPMESH_API HttpRoute(Aws::Utils::Json::JsonView jsonValue)
HttpRoute & WithAction(HttpRouteAction &&value)
Definition HttpRoute.h:53
void SetRetryPolicy(HttpRetryPolicy &&value)
Definition HttpRoute.h:75
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
HttpRoute & WithRetryPolicy(HttpRetryPolicy &&value)
Definition HttpRoute.h:77
void SetMatch(const HttpRouteMatch &value)
Definition HttpRoute.h:62
bool RetryPolicyHasBeenSet() const
Definition HttpRoute.h:73
void SetAction(const HttpRouteAction &value)
Definition HttpRoute.h:50
const HttpRouteAction & GetAction() const
Definition HttpRoute.h:48
Aws::Utils::Json::JsonValue JsonValue