AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ListRoutesRequest.h
1
6#pragma once
7#include <aws/appmesh/AppMeshRequest.h>
8#include <aws/appmesh/AppMesh_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace AppMesh {
18namespace Model {
19
26 public:
27 AWS_APPMESH_API ListRoutesRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListRoutes"; }
34
35 AWS_APPMESH_API Aws::String SerializePayload() const override;
36
37 AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
50 inline int GetLimit() const { return m_limit; }
51 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
52 inline void SetLimit(int value) {
53 m_limitHasBeenSet = true;
54 m_limit = value;
55 }
56 inline ListRoutesRequest& WithLimit(int value) {
57 SetLimit(value);
58 return *this;
59 }
61
63
66 inline const Aws::String& GetMeshName() const { return m_meshName; }
67 inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
68 template <typename MeshNameT = Aws::String>
69 void SetMeshName(MeshNameT&& value) {
70 m_meshNameHasBeenSet = true;
71 m_meshName = std::forward<MeshNameT>(value);
72 }
73 template <typename MeshNameT = Aws::String>
74 ListRoutesRequest& WithMeshName(MeshNameT&& value) {
75 SetMeshName(std::forward<MeshNameT>(value));
76 return *this;
77 }
79
81
88 inline const Aws::String& GetMeshOwner() const { return m_meshOwner; }
89 inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
90 template <typename MeshOwnerT = Aws::String>
91 void SetMeshOwner(MeshOwnerT&& value) {
92 m_meshOwnerHasBeenSet = true;
93 m_meshOwner = std::forward<MeshOwnerT>(value);
94 }
95 template <typename MeshOwnerT = Aws::String>
96 ListRoutesRequest& WithMeshOwner(MeshOwnerT&& value) {
97 SetMeshOwner(std::forward<MeshOwnerT>(value));
98 return *this;
99 }
101
103
109 inline const Aws::String& GetNextToken() const { return m_nextToken; }
110 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
111 template <typename NextTokenT = Aws::String>
112 void SetNextToken(NextTokenT&& value) {
113 m_nextTokenHasBeenSet = true;
114 m_nextToken = std::forward<NextTokenT>(value);
115 }
116 template <typename NextTokenT = Aws::String>
117 ListRoutesRequest& WithNextToken(NextTokenT&& value) {
118 SetNextToken(std::forward<NextTokenT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetVirtualRouterName() const { return m_virtualRouterName; }
128 inline bool VirtualRouterNameHasBeenSet() const { return m_virtualRouterNameHasBeenSet; }
129 template <typename VirtualRouterNameT = Aws::String>
130 void SetVirtualRouterName(VirtualRouterNameT&& value) {
131 m_virtualRouterNameHasBeenSet = true;
132 m_virtualRouterName = std::forward<VirtualRouterNameT>(value);
133 }
134 template <typename VirtualRouterNameT = Aws::String>
135 ListRoutesRequest& WithVirtualRouterName(VirtualRouterNameT&& value) {
136 SetVirtualRouterName(std::forward<VirtualRouterNameT>(value));
137 return *this;
138 }
140 private:
141 int m_limit{0};
142
143 Aws::String m_meshName;
144
145 Aws::String m_meshOwner;
146
147 Aws::String m_nextToken;
148
149 Aws::String m_virtualRouterName;
150 bool m_limitHasBeenSet = false;
151 bool m_meshNameHasBeenSet = false;
152 bool m_meshOwnerHasBeenSet = false;
153 bool m_nextTokenHasBeenSet = false;
154 bool m_virtualRouterNameHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace AppMesh
159} // namespace Aws
AWS_APPMESH_API Aws::String SerializePayload() const override
void SetVirtualRouterName(VirtualRouterNameT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetMeshOwner() const
ListRoutesRequest & WithNextToken(NextTokenT &&value)
const Aws::String & GetNextToken() const
ListRoutesRequest & WithLimit(int value)
const Aws::String & GetMeshName() const
ListRoutesRequest & WithMeshOwner(MeshOwnerT &&value)
AWS_APPMESH_API ListRoutesRequest()=default
AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListRoutesRequest & WithMeshName(MeshNameT &&value)
const Aws::String & GetVirtualRouterName() const
ListRoutesRequest & WithVirtualRouterName(VirtualRouterNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String