/** * 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 EKS { namespace Model { /** */ class ListNodegroupsRequest : public EKSRequest { public: AWS_EKS_API ListNodegroupsRequest(); // 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 "ListNodegroups"; } AWS_EKS_API Aws::String SerializePayload() const override; AWS_EKS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The name of the Amazon EKS cluster that you would like to list node groups * in.

*/ inline const Aws::String& GetClusterName() const{ return m_clusterName; } /** *

The name of the Amazon EKS cluster that you would like to list node groups * in.

*/ inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; } /** *

The name of the Amazon EKS cluster that you would like to list node groups * in.

*/ inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; } /** *

The name of the Amazon EKS cluster that you would like to list node groups * in.

*/ inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); } /** *

The name of the Amazon EKS cluster that you would like to list node groups * in.

*/ inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); } /** *

The name of the Amazon EKS cluster that you would like to list node groups * in.

*/ inline ListNodegroupsRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;} /** *

The name of the Amazon EKS cluster that you would like to list node groups * in.

*/ inline ListNodegroupsRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;} /** *

The name of the Amazon EKS cluster that you would like to list node groups * in.

*/ inline ListNodegroupsRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;} /** *

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

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

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

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

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

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

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

*/ inline ListNodegroupsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The nextToken value returned from a previous paginated * ListNodegroups request where maxResults 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 * ListNodegroups request where maxResults 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 * ListNodegroups request where maxResults 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 * ListNodegroups request where maxResults 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 * ListNodegroups request where maxResults 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 * ListNodegroups request where maxResults 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 ListNodegroupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The nextToken value returned from a previous paginated * ListNodegroups request where maxResults 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 ListNodegroupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The nextToken value returned from a previous paginated * ListNodegroups request where maxResults 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 ListNodegroupsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_clusterName; bool m_clusterNameHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace EKS } // namespace Aws