AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GrpcRoute.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/GrpcRouteAction.h>
9#include <aws/appmesh/model/GrpcRouteMatch.h>
10#include <aws/appmesh/model/GrpcRetryPolicy.h>
11#include <aws/appmesh/model/GrpcTimeout.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
35 {
36 public:
37 AWS_APPMESH_API GrpcRoute();
38 AWS_APPMESH_API GrpcRoute(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPMESH_API GrpcRoute& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const GrpcRouteAction& GetAction() const{ return m_action; }
48 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
49 inline void SetAction(const GrpcRouteAction& value) { m_actionHasBeenSet = true; m_action = value; }
50 inline void SetAction(GrpcRouteAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
51 inline GrpcRoute& WithAction(const GrpcRouteAction& value) { SetAction(value); return *this;}
52 inline GrpcRoute& WithAction(GrpcRouteAction&& value) { SetAction(std::move(value)); return *this;}
54
56
59 inline const GrpcRouteMatch& GetMatch() const{ return m_match; }
60 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
61 inline void SetMatch(const GrpcRouteMatch& value) { m_matchHasBeenSet = true; m_match = value; }
62 inline void SetMatch(GrpcRouteMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
63 inline GrpcRoute& WithMatch(const GrpcRouteMatch& value) { SetMatch(value); return *this;}
64 inline GrpcRoute& WithMatch(GrpcRouteMatch&& value) { SetMatch(std::move(value)); return *this;}
66
68
71 inline const GrpcRetryPolicy& GetRetryPolicy() const{ return m_retryPolicy; }
72 inline bool RetryPolicyHasBeenSet() const { return m_retryPolicyHasBeenSet; }
73 inline void SetRetryPolicy(const GrpcRetryPolicy& value) { m_retryPolicyHasBeenSet = true; m_retryPolicy = value; }
74 inline void SetRetryPolicy(GrpcRetryPolicy&& value) { m_retryPolicyHasBeenSet = true; m_retryPolicy = std::move(value); }
75 inline GrpcRoute& WithRetryPolicy(const GrpcRetryPolicy& value) { SetRetryPolicy(value); return *this;}
76 inline GrpcRoute& WithRetryPolicy(GrpcRetryPolicy&& value) { SetRetryPolicy(std::move(value)); return *this;}
78
80
83 inline const GrpcTimeout& GetTimeout() const{ return m_timeout; }
84 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
85 inline void SetTimeout(const GrpcTimeout& value) { m_timeoutHasBeenSet = true; m_timeout = value; }
86 inline void SetTimeout(GrpcTimeout&& value) { m_timeoutHasBeenSet = true; m_timeout = std::move(value); }
87 inline GrpcRoute& WithTimeout(const GrpcTimeout& value) { SetTimeout(value); return *this;}
88 inline GrpcRoute& WithTimeout(GrpcTimeout&& value) { SetTimeout(std::move(value)); return *this;}
90 private:
91
92 GrpcRouteAction m_action;
93 bool m_actionHasBeenSet = false;
94
95 GrpcRouteMatch m_match;
96 bool m_matchHasBeenSet = false;
97
98 GrpcRetryPolicy m_retryPolicy;
99 bool m_retryPolicyHasBeenSet = false;
100
101 GrpcTimeout m_timeout;
102 bool m_timeoutHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace AppMesh
107} // namespace Aws
GrpcRoute & WithAction(GrpcRouteAction &&value)
Definition GrpcRoute.h:52
GrpcRoute & WithMatch(const GrpcRouteMatch &value)
Definition GrpcRoute.h:63
void SetRetryPolicy(GrpcRetryPolicy &&value)
Definition GrpcRoute.h:74
void SetRetryPolicy(const GrpcRetryPolicy &value)
Definition GrpcRoute.h:73
void SetMatch(GrpcRouteMatch &&value)
Definition GrpcRoute.h:62
GrpcRoute & WithRetryPolicy(GrpcRetryPolicy &&value)
Definition GrpcRoute.h:76
GrpcRoute & WithTimeout(GrpcTimeout &&value)
Definition GrpcRoute.h:88
GrpcRoute & WithMatch(GrpcRouteMatch &&value)
Definition GrpcRoute.h:64
void SetTimeout(const GrpcTimeout &value)
Definition GrpcRoute.h:85
const GrpcRetryPolicy & GetRetryPolicy() const
Definition GrpcRoute.h:71
void SetAction(GrpcRouteAction &&value)
Definition GrpcRoute.h:50
GrpcRoute & WithAction(const GrpcRouteAction &value)
Definition GrpcRoute.h:51
GrpcRoute & WithRetryPolicy(const GrpcRetryPolicy &value)
Definition GrpcRoute.h:75
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMESH_API GrpcRoute(Aws::Utils::Json::JsonView jsonValue)
bool RetryPolicyHasBeenSet() const
Definition GrpcRoute.h:72
void SetAction(const GrpcRouteAction &value)
Definition GrpcRoute.h:49
const GrpcRouteMatch & GetMatch() const
Definition GrpcRoute.h:59
GrpcRoute & WithTimeout(const GrpcTimeout &value)
Definition GrpcRoute.h:87
const GrpcTimeout & GetTimeout() const
Definition GrpcRoute.h:83
void SetTimeout(GrpcTimeout &&value)
Definition GrpcRoute.h:86
void SetMatch(const GrpcRouteMatch &value)
Definition GrpcRoute.h:61
AWS_APPMESH_API GrpcRoute & operator=(Aws::Utils::Json::JsonView jsonValue)
const GrpcRouteAction & GetAction() const
Definition GrpcRoute.h:47
Aws::Utils::Json::JsonValue JsonValue