/** * 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 parameters to * DescribeReservedElasticsearchInstances

See Also:

* AWS * API Reference

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

The reserved instance identifier filter value. Use this parameter to show * only the reservation that matches the specified reserved Elasticsearch instance * ID.

*/ inline const Aws::String& GetReservedElasticsearchInstanceId() const{ return m_reservedElasticsearchInstanceId; } /** *

The reserved instance identifier filter value. Use this parameter to show * only the reservation that matches the specified reserved Elasticsearch instance * ID.

*/ inline bool ReservedElasticsearchInstanceIdHasBeenSet() const { return m_reservedElasticsearchInstanceIdHasBeenSet; } /** *

The reserved instance identifier filter value. Use this parameter to show * only the reservation that matches the specified reserved Elasticsearch instance * ID.

*/ inline void SetReservedElasticsearchInstanceId(const Aws::String& value) { m_reservedElasticsearchInstanceIdHasBeenSet = true; m_reservedElasticsearchInstanceId = value; } /** *

The reserved instance identifier filter value. Use this parameter to show * only the reservation that matches the specified reserved Elasticsearch instance * ID.

*/ inline void SetReservedElasticsearchInstanceId(Aws::String&& value) { m_reservedElasticsearchInstanceIdHasBeenSet = true; m_reservedElasticsearchInstanceId = std::move(value); } /** *

The reserved instance identifier filter value. Use this parameter to show * only the reservation that matches the specified reserved Elasticsearch instance * ID.

*/ inline void SetReservedElasticsearchInstanceId(const char* value) { m_reservedElasticsearchInstanceIdHasBeenSet = true; m_reservedElasticsearchInstanceId.assign(value); } /** *

The reserved instance identifier filter value. Use this parameter to show * only the reservation that matches the specified reserved Elasticsearch instance * ID.

*/ inline DescribeReservedElasticsearchInstancesRequest& WithReservedElasticsearchInstanceId(const Aws::String& value) { SetReservedElasticsearchInstanceId(value); return *this;} /** *

The reserved instance identifier filter value. Use this parameter to show * only the reservation that matches the specified reserved Elasticsearch instance * ID.

*/ inline DescribeReservedElasticsearchInstancesRequest& WithReservedElasticsearchInstanceId(Aws::String&& value) { SetReservedElasticsearchInstanceId(std::move(value)); return *this;} /** *

The reserved instance identifier filter value. Use this parameter to show * only the reservation that matches the specified reserved Elasticsearch instance * ID.

*/ inline DescribeReservedElasticsearchInstancesRequest& WithReservedElasticsearchInstanceId(const char* value) { SetReservedElasticsearchInstanceId(value); return *this;} /** *

Set this value to limit the number of results returned. If not specified, * defaults to 100.

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

Set this value to limit the number of results returned. If not specified, * defaults to 100.

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

Set this value to limit the number of results returned. If not specified, * defaults to 100.

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

Set this value to limit the number of results returned. If not specified, * defaults to 100.

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

NextToken should be sent in case if earlier API call produced result * containing NextToken. It is used for pagination.

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

NextToken should be sent in case if earlier API call produced result * containing NextToken. It is used for pagination.

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

NextToken should be sent in case if earlier API call produced result * containing NextToken. It is used for pagination.

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

NextToken should be sent in case if earlier API call produced result * containing NextToken. It is used for pagination.

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

NextToken should be sent in case if earlier API call produced result * containing NextToken. It is used for pagination.

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

NextToken should be sent in case if earlier API call produced result * containing NextToken. It is used for pagination.

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

NextToken should be sent in case if earlier API call produced result * containing NextToken. It is used for pagination.

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

NextToken should be sent in case if earlier API call produced result * containing NextToken. It is used for pagination.

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