/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace AppMesh { namespace Model { /** *

See Also:

AWS * API Reference

*/ class ListRoutesRequest : public AppMeshRequest { public: AWS_APPMESH_API ListRoutesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ListRoutes"; } AWS_APPMESH_API Aws::String SerializePayload() const override; AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The maximum number of results returned by ListRoutes in * paginated output. When you use this parameter, ListRoutes returns * only limit results in a single page along with a * nextToken response element. You can see the remaining results of * the initial request by sending another ListRoutes request with the * returned nextToken value. This value can be between 1 and 100. If * you don't use this parameter, ListRoutes returns up to 100 results * and a nextToken value if applicable.

*/ inline int GetLimit() const{ return m_limit; } /** *

The maximum number of results returned by ListRoutes in * paginated output. When you use this parameter, ListRoutes returns * only limit results in a single page along with a * nextToken response element. You can see the remaining results of * the initial request by sending another ListRoutes request with the * returned nextToken value. This value can be between 1 and 100. If * you don't use this parameter, ListRoutes returns up to 100 results * and a nextToken value if applicable.

*/ inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; } /** *

The maximum number of results returned by ListRoutes in * paginated output. When you use this parameter, ListRoutes returns * only limit results in a single page along with a * nextToken response element. You can see the remaining results of * the initial request by sending another ListRoutes request with the * returned nextToken value. This value can be between 1 and 100. If * you don't use this parameter, ListRoutes returns up to 100 results * and a nextToken value if applicable.

*/ inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; } /** *

The maximum number of results returned by ListRoutes in * paginated output. When you use this parameter, ListRoutes returns * only limit results in a single page along with a * nextToken response element. You can see the remaining results of * the initial request by sending another ListRoutes request with the * returned nextToken value. This value can be between 1 and 100. If * you don't use this parameter, ListRoutes returns up to 100 results * and a nextToken value if applicable.

*/ inline ListRoutesRequest& WithLimit(int value) { SetLimit(value); return *this;} /** *

The name of the service mesh to list routes in.

*/ inline const Aws::String& GetMeshName() const{ return m_meshName; } /** *

The name of the service mesh to list routes in.

*/ inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; } /** *

The name of the service mesh to list routes in.

*/ inline void SetMeshName(const Aws::String& value) { m_meshNameHasBeenSet = true; m_meshName = value; } /** *

The name of the service mesh to list routes in.

*/ inline void SetMeshName(Aws::String&& value) { m_meshNameHasBeenSet = true; m_meshName = std::move(value); } /** *

The name of the service mesh to list routes in.

*/ inline void SetMeshName(const char* value) { m_meshNameHasBeenSet = true; m_meshName.assign(value); } /** *

The name of the service mesh to list routes in.

*/ inline ListRoutesRequest& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;} /** *

The name of the service mesh to list routes in.

*/ inline ListRoutesRequest& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;} /** *

The name of the service mesh to list routes in.

*/ inline ListRoutesRequest& WithMeshName(const char* value) { SetMeshName(value); return *this;} /** *

The Amazon Web Services IAM account ID of the service mesh owner. If the * account ID is not your own, then it's the ID of the account that shared the mesh * with your account. For more information about mesh sharing, see Working * with shared meshes.

*/ inline const Aws::String& GetMeshOwner() const{ return m_meshOwner; } /** *

The Amazon Web Services IAM account ID of the service mesh owner. If the * account ID is not your own, then it's the ID of the account that shared the mesh * with your account. For more information about mesh sharing, see Working * with shared meshes.

*/ inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; } /** *

The Amazon Web Services IAM account ID of the service mesh owner. If the * account ID is not your own, then it's the ID of the account that shared the mesh * with your account. For more information about mesh sharing, see Working * with shared meshes.

*/ inline void SetMeshOwner(const Aws::String& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = value; } /** *

The Amazon Web Services IAM account ID of the service mesh owner. If the * account ID is not your own, then it's the ID of the account that shared the mesh * with your account. For more information about mesh sharing, see Working * with shared meshes.

*/ inline void SetMeshOwner(Aws::String&& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = std::move(value); } /** *

The Amazon Web Services IAM account ID of the service mesh owner. If the * account ID is not your own, then it's the ID of the account that shared the mesh * with your account. For more information about mesh sharing, see Working * with shared meshes.

*/ inline void SetMeshOwner(const char* value) { m_meshOwnerHasBeenSet = true; m_meshOwner.assign(value); } /** *

The Amazon Web Services IAM account ID of the service mesh owner. If the * account ID is not your own, then it's the ID of the account that shared the mesh * with your account. For more information about mesh sharing, see Working * with shared meshes.

*/ inline ListRoutesRequest& WithMeshOwner(const Aws::String& value) { SetMeshOwner(value); return *this;} /** *

The Amazon Web Services IAM account ID of the service mesh owner. If the * account ID is not your own, then it's the ID of the account that shared the mesh * with your account. For more information about mesh sharing, see Working * with shared meshes.

*/ inline ListRoutesRequest& WithMeshOwner(Aws::String&& value) { SetMeshOwner(std::move(value)); return *this;} /** *

The Amazon Web Services IAM account ID of the service mesh owner. If the * account ID is not your own, then it's the ID of the account that shared the mesh * with your account. For more information about mesh sharing, see Working * with shared meshes.

*/ inline ListRoutesRequest& WithMeshOwner(const char* value) { SetMeshOwner(value); return *this;} /** *

The nextToken value returned from a previous paginated * ListRoutes request where limit was used and the * results exceeded the value of that parameter. Pagination continues from the end * of the previous results that returned the nextToken value.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The nextToken value returned from a previous paginated * ListRoutes request where limit was used and the * results exceeded the value of that parameter. Pagination continues from the end * of the previous results that returned the nextToken value.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The nextToken value returned from a previous paginated * ListRoutes request where limit was used and the * results exceeded the value of that parameter. Pagination continues from the end * of the previous results that returned the nextToken value.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The nextToken value returned from a previous paginated * ListRoutes request where limit was used and the * results exceeded the value of that parameter. Pagination continues from the end * of the previous results that returned the nextToken value.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The nextToken value returned from a previous paginated * ListRoutes request where limit was used and the * results exceeded the value of that parameter. Pagination continues from the end * of the previous results that returned the nextToken value.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The nextToken value returned from a previous paginated * ListRoutes request where limit was used and the * results exceeded the value of that parameter. Pagination continues from the end * of the previous results that returned the nextToken value.

*/ inline ListRoutesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The nextToken value returned from a previous paginated * ListRoutes request where limit was used and the * results exceeded the value of that parameter. Pagination continues from the end * of the previous results that returned the nextToken value.

*/ inline ListRoutesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The nextToken value returned from a previous paginated * ListRoutes request where limit was used and the * results exceeded the value of that parameter. Pagination continues from the end * of the previous results that returned the nextToken value.

*/ inline ListRoutesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The name of the virtual router to list routes in.

*/ inline const Aws::String& GetVirtualRouterName() const{ return m_virtualRouterName; } /** *

The name of the virtual router to list routes in.

*/ inline bool VirtualRouterNameHasBeenSet() const { return m_virtualRouterNameHasBeenSet; } /** *

The name of the virtual router to list routes in.

*/ inline void SetVirtualRouterName(const Aws::String& value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName = value; } /** *

The name of the virtual router to list routes in.

*/ inline void SetVirtualRouterName(Aws::String&& value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName = std::move(value); } /** *

The name of the virtual router to list routes in.

*/ inline void SetVirtualRouterName(const char* value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName.assign(value); } /** *

The name of the virtual router to list routes in.

*/ inline ListRoutesRequest& WithVirtualRouterName(const Aws::String& value) { SetVirtualRouterName(value); return *this;} /** *

The name of the virtual router to list routes in.

*/ inline ListRoutesRequest& WithVirtualRouterName(Aws::String&& value) { SetVirtualRouterName(std::move(value)); return *this;} /** *

The name of the virtual router to list routes in.

*/ inline ListRoutesRequest& WithVirtualRouterName(const char* value) { SetVirtualRouterName(value); return *this;} private: int m_limit; bool m_limitHasBeenSet = false; Aws::String m_meshName; bool m_meshNameHasBeenSet = false; Aws::String m_meshOwner; bool m_meshOwnerHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::String m_virtualRouterName; bool m_virtualRouterNameHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws