/** * 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 ElasticsearchService { namespace Model { /** *

Container for request parameters to ListDomainsForPackage * operation.

See Also:

AWS * API Reference

*/ class ListDomainsForPackageRequest : public ElasticsearchServiceRequest { public: AWS_ELASTICSEARCHSERVICE_API ListDomainsForPackageRequest(); // 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 "ListDomainsForPackage"; } AWS_ELASTICSEARCHSERVICE_API Aws::String SerializePayload() const override; AWS_ELASTICSEARCHSERVICE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The package for which to list domains.

*/ inline const Aws::String& GetPackageID() const{ return m_packageID; } /** *

The package for which to list domains.

*/ inline bool PackageIDHasBeenSet() const { return m_packageIDHasBeenSet; } /** *

The package for which to list domains.

*/ inline void SetPackageID(const Aws::String& value) { m_packageIDHasBeenSet = true; m_packageID = value; } /** *

The package for which to list domains.

*/ inline void SetPackageID(Aws::String&& value) { m_packageIDHasBeenSet = true; m_packageID = std::move(value); } /** *

The package for which to list domains.

*/ inline void SetPackageID(const char* value) { m_packageIDHasBeenSet = true; m_packageID.assign(value); } /** *

The package for which to list domains.

*/ inline ListDomainsForPackageRequest& WithPackageID(const Aws::String& value) { SetPackageID(value); return *this;} /** *

The package for which to list domains.

*/ inline ListDomainsForPackageRequest& WithPackageID(Aws::String&& value) { SetPackageID(std::move(value)); return *this;} /** *

The package for which to list domains.

*/ inline ListDomainsForPackageRequest& WithPackageID(const char* value) { SetPackageID(value); return *this;} /** *

Limits results to a maximum number of domains.

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

Limits results to a maximum number of domains.

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

Limits results to a maximum number of domains.

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

Limits results to a maximum number of domains.

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

Used for pagination. Only necessary if a previous API call includes a * non-null NextToken value. If provided, returns results for the next page.

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

Used for pagination. Only necessary if a previous API call includes a * non-null NextToken value. If provided, returns results for the next page.

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

Used for pagination. Only necessary if a previous API call includes a * non-null NextToken value. If provided, returns results for the next page.

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

Used for pagination. Only necessary if a previous API call includes a * non-null NextToken value. If provided, returns results for the next page.

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

Used for pagination. Only necessary if a previous API call includes a * non-null NextToken value. If provided, returns results for the next page.

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

Used for pagination. Only necessary if a previous API call includes a * non-null NextToken value. If provided, returns results for the next page.

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

Used for pagination. Only necessary if a previous API call includes a * non-null NextToken value. If provided, returns results for the next page.

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

Used for pagination. Only necessary if a previous API call includes a * non-null NextToken value. If provided, returns results for the next page.

*/ inline ListDomainsForPackageRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_packageID; bool m_packageIDHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ElasticsearchService } // namespace Aws