/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace EKS { namespace Model { /** */ class DescribeAddonVersionsRequest : public EKSRequest { public: AWS_EKS_API DescribeAddonVersionsRequest(); // 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 "DescribeAddonVersions"; } AWS_EKS_API Aws::String SerializePayload() const override; AWS_EKS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The Kubernetes versions that you can use the add-on with.

*/ inline const Aws::String& GetKubernetesVersion() const{ return m_kubernetesVersion; } /** *

The Kubernetes versions that you can use the add-on with.

*/ inline bool KubernetesVersionHasBeenSet() const { return m_kubernetesVersionHasBeenSet; } /** *

The Kubernetes versions that you can use the add-on with.

*/ inline void SetKubernetesVersion(const Aws::String& value) { m_kubernetesVersionHasBeenSet = true; m_kubernetesVersion = value; } /** *

The Kubernetes versions that you can use the add-on with.

*/ inline void SetKubernetesVersion(Aws::String&& value) { m_kubernetesVersionHasBeenSet = true; m_kubernetesVersion = std::move(value); } /** *

The Kubernetes versions that you can use the add-on with.

*/ inline void SetKubernetesVersion(const char* value) { m_kubernetesVersionHasBeenSet = true; m_kubernetesVersion.assign(value); } /** *

The Kubernetes versions that you can use the add-on with.

*/ inline DescribeAddonVersionsRequest& WithKubernetesVersion(const Aws::String& value) { SetKubernetesVersion(value); return *this;} /** *

The Kubernetes versions that you can use the add-on with.

*/ inline DescribeAddonVersionsRequest& WithKubernetesVersion(Aws::String&& value) { SetKubernetesVersion(std::move(value)); return *this;} /** *

The Kubernetes versions that you can use the add-on with.

*/ inline DescribeAddonVersionsRequest& WithKubernetesVersion(const char* value) { SetKubernetesVersion(value); return *this;} /** *

The maximum number of results to return.

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

The maximum number of results to return.

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

The maximum number of results to return.

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

The maximum number of results to return.

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

The nextToken value returned from a previous paginated * DescribeAddonVersionsRequest 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.

This token should be treated as an opaque identifier that * is used only to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a previous paginated * DescribeAddonVersionsRequest 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.

This token should be treated as an opaque identifier that * is used only to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a previous paginated * DescribeAddonVersionsRequest 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.

This token should be treated as an opaque identifier that * is used only to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a previous paginated * DescribeAddonVersionsRequest 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.

This token should be treated as an opaque identifier that * is used only to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a previous paginated * DescribeAddonVersionsRequest 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.

This token should be treated as an opaque identifier that * is used only to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a previous paginated * DescribeAddonVersionsRequest 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.

This token should be treated as an opaque identifier that * is used only to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a previous paginated * DescribeAddonVersionsRequest 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.

This token should be treated as an opaque identifier that * is used only to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a previous paginated * DescribeAddonVersionsRequest 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.

This token should be treated as an opaque identifier that * is used only to retrieve the next items in a list and not for other programmatic * purposes.

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

The name of the add-on. The name must match one of the names returned by * ListAddons .

*/ inline const Aws::String& GetAddonName() const{ return m_addonName; } /** *

The name of the add-on. The name must match one of the names returned by * ListAddons .

*/ inline bool AddonNameHasBeenSet() const { return m_addonNameHasBeenSet; } /** *

The name of the add-on. The name must match one of the names returned by * ListAddons .

*/ inline void SetAddonName(const Aws::String& value) { m_addonNameHasBeenSet = true; m_addonName = value; } /** *

The name of the add-on. The name must match one of the names returned by * ListAddons .

*/ inline void SetAddonName(Aws::String&& value) { m_addonNameHasBeenSet = true; m_addonName = std::move(value); } /** *

The name of the add-on. The name must match one of the names returned by * ListAddons .

*/ inline void SetAddonName(const char* value) { m_addonNameHasBeenSet = true; m_addonName.assign(value); } /** *

The name of the add-on. The name must match one of the names returned by * ListAddons .

*/ inline DescribeAddonVersionsRequest& WithAddonName(const Aws::String& value) { SetAddonName(value); return *this;} /** *

The name of the add-on. The name must match one of the names returned by * ListAddons .

*/ inline DescribeAddonVersionsRequest& WithAddonName(Aws::String&& value) { SetAddonName(std::move(value)); return *this;} /** *

The name of the add-on. The name must match one of the names returned by * ListAddons .

*/ inline DescribeAddonVersionsRequest& WithAddonName(const char* value) { SetAddonName(value); return *this;} /** *

The type of the add-on. For valid types, don't specify a value * for this property.

*/ inline const Aws::Vector& GetTypes() const{ return m_types; } /** *

The type of the add-on. For valid types, don't specify a value * for this property.

*/ inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; } /** *

The type of the add-on. For valid types, don't specify a value * for this property.

*/ inline void SetTypes(const Aws::Vector& value) { m_typesHasBeenSet = true; m_types = value; } /** *

The type of the add-on. For valid types, don't specify a value * for this property.

*/ inline void SetTypes(Aws::Vector&& value) { m_typesHasBeenSet = true; m_types = std::move(value); } /** *

The type of the add-on. For valid types, don't specify a value * for this property.

*/ inline DescribeAddonVersionsRequest& WithTypes(const Aws::Vector& value) { SetTypes(value); return *this;} /** *

The type of the add-on. For valid types, don't specify a value * for this property.

*/ inline DescribeAddonVersionsRequest& WithTypes(Aws::Vector&& value) { SetTypes(std::move(value)); return *this;} /** *

The type of the add-on. For valid types, don't specify a value * for this property.

*/ inline DescribeAddonVersionsRequest& AddTypes(const Aws::String& value) { m_typesHasBeenSet = true; m_types.push_back(value); return *this; } /** *

The type of the add-on. For valid types, don't specify a value * for this property.

*/ inline DescribeAddonVersionsRequest& AddTypes(Aws::String&& value) { m_typesHasBeenSet = true; m_types.push_back(std::move(value)); return *this; } /** *

The type of the add-on. For valid types, don't specify a value * for this property.

*/ inline DescribeAddonVersionsRequest& AddTypes(const char* value) { m_typesHasBeenSet = true; m_types.push_back(value); return *this; } /** *

The publisher of the add-on. For valid publishers, don't specify * a value for this property.

*/ inline const Aws::Vector& GetPublishers() const{ return m_publishers; } /** *

The publisher of the add-on. For valid publishers, don't specify * a value for this property.

*/ inline bool PublishersHasBeenSet() const { return m_publishersHasBeenSet; } /** *

The publisher of the add-on. For valid publishers, don't specify * a value for this property.

*/ inline void SetPublishers(const Aws::Vector& value) { m_publishersHasBeenSet = true; m_publishers = value; } /** *

The publisher of the add-on. For valid publishers, don't specify * a value for this property.

*/ inline void SetPublishers(Aws::Vector&& value) { m_publishersHasBeenSet = true; m_publishers = std::move(value); } /** *

The publisher of the add-on. For valid publishers, don't specify * a value for this property.

*/ inline DescribeAddonVersionsRequest& WithPublishers(const Aws::Vector& value) { SetPublishers(value); return *this;} /** *

The publisher of the add-on. For valid publishers, don't specify * a value for this property.

*/ inline DescribeAddonVersionsRequest& WithPublishers(Aws::Vector&& value) { SetPublishers(std::move(value)); return *this;} /** *

The publisher of the add-on. For valid publishers, don't specify * a value for this property.

*/ inline DescribeAddonVersionsRequest& AddPublishers(const Aws::String& value) { m_publishersHasBeenSet = true; m_publishers.push_back(value); return *this; } /** *

The publisher of the add-on. For valid publishers, don't specify * a value for this property.

*/ inline DescribeAddonVersionsRequest& AddPublishers(Aws::String&& value) { m_publishersHasBeenSet = true; m_publishers.push_back(std::move(value)); return *this; } /** *

The publisher of the add-on. For valid publishers, don't specify * a value for this property.

*/ inline DescribeAddonVersionsRequest& AddPublishers(const char* value) { m_publishersHasBeenSet = true; m_publishers.push_back(value); return *this; } /** *

The owner of the add-on. For valid owners, don't specify a value * for this property.

*/ inline const Aws::Vector& GetOwners() const{ return m_owners; } /** *

The owner of the add-on. For valid owners, don't specify a value * for this property.

*/ inline bool OwnersHasBeenSet() const { return m_ownersHasBeenSet; } /** *

The owner of the add-on. For valid owners, don't specify a value * for this property.

*/ inline void SetOwners(const Aws::Vector& value) { m_ownersHasBeenSet = true; m_owners = value; } /** *

The owner of the add-on. For valid owners, don't specify a value * for this property.

*/ inline void SetOwners(Aws::Vector&& value) { m_ownersHasBeenSet = true; m_owners = std::move(value); } /** *

The owner of the add-on. For valid owners, don't specify a value * for this property.

*/ inline DescribeAddonVersionsRequest& WithOwners(const Aws::Vector& value) { SetOwners(value); return *this;} /** *

The owner of the add-on. For valid owners, don't specify a value * for this property.

*/ inline DescribeAddonVersionsRequest& WithOwners(Aws::Vector&& value) { SetOwners(std::move(value)); return *this;} /** *

The owner of the add-on. For valid owners, don't specify a value * for this property.

*/ inline DescribeAddonVersionsRequest& AddOwners(const Aws::String& value) { m_ownersHasBeenSet = true; m_owners.push_back(value); return *this; } /** *

The owner of the add-on. For valid owners, don't specify a value * for this property.

*/ inline DescribeAddonVersionsRequest& AddOwners(Aws::String&& value) { m_ownersHasBeenSet = true; m_owners.push_back(std::move(value)); return *this; } /** *

The owner of the add-on. For valid owners, don't specify a value * for this property.

*/ inline DescribeAddonVersionsRequest& AddOwners(const char* value) { m_ownersHasBeenSet = true; m_owners.push_back(value); return *this; } private: Aws::String m_kubernetesVersion; bool m_kubernetesVersionHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::String m_addonName; bool m_addonNameHasBeenSet = false; Aws::Vector m_types; bool m_typesHasBeenSet = false; Aws::Vector m_publishers; bool m_publishersHasBeenSet = false; Aws::Vector m_owners; bool m_ownersHasBeenSet = false; }; } // namespace Model } // namespace EKS } // namespace Aws