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

Criteria for restricting the resulting list of platform versions. The filter * is interpreted as a logical conjunction (AND) of the separate * PlatformFilter terms.

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

Criteria for restricting the resulting list of platform versions. The filter * is interpreted as a logical conjunction (AND) of the separate * PlatformFilter terms.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

Criteria for restricting the resulting list of platform versions. The filter * is interpreted as a logical conjunction (AND) of the separate * PlatformFilter terms.

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

Criteria for restricting the resulting list of platform versions. The filter * is interpreted as a logical conjunction (AND) of the separate * PlatformFilter terms.

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

Criteria for restricting the resulting list of platform versions. The filter * is interpreted as a logical conjunction (AND) of the separate * PlatformFilter terms.

*/ inline ListPlatformVersionsRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

Criteria for restricting the resulting list of platform versions. The filter * is interpreted as a logical conjunction (AND) of the separate * PlatformFilter terms.

*/ inline ListPlatformVersionsRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

Criteria for restricting the resulting list of platform versions. The filter * is interpreted as a logical conjunction (AND) of the separate * PlatformFilter terms.

*/ inline ListPlatformVersionsRequest& AddFilters(const PlatformFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

Criteria for restricting the resulting list of platform versions. The filter * is interpreted as a logical conjunction (AND) of the separate * PlatformFilter terms.

*/ inline ListPlatformVersionsRequest& AddFilters(PlatformFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } /** *

The maximum number of platform version values returned in one call.

*/ inline int GetMaxRecords() const{ return m_maxRecords; } /** *

The maximum number of platform version values returned in one call.

*/ inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; } /** *

The maximum number of platform version values returned in one call.

*/ inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; } /** *

The maximum number of platform version values returned in one call.

*/ inline ListPlatformVersionsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;} /** *

For a paginated request. Specify a token from a previous response page to * retrieve the next response page. All other parameter values must be identical to * the ones specified in the initial request.

If no NextToken * is specified, the first page is retrieved.

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

For a paginated request. Specify a token from a previous response page to * retrieve the next response page. All other parameter values must be identical to * the ones specified in the initial request.

If no NextToken * is specified, the first page is retrieved.

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

For a paginated request. Specify a token from a previous response page to * retrieve the next response page. All other parameter values must be identical to * the ones specified in the initial request.

If no NextToken * is specified, the first page is retrieved.

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

For a paginated request. Specify a token from a previous response page to * retrieve the next response page. All other parameter values must be identical to * the ones specified in the initial request.

If no NextToken * is specified, the first page is retrieved.

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

For a paginated request. Specify a token from a previous response page to * retrieve the next response page. All other parameter values must be identical to * the ones specified in the initial request.

If no NextToken * is specified, the first page is retrieved.

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

For a paginated request. Specify a token from a previous response page to * retrieve the next response page. All other parameter values must be identical to * the ones specified in the initial request.

If no NextToken * is specified, the first page is retrieved.

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

For a paginated request. Specify a token from a previous response page to * retrieve the next response page. All other parameter values must be identical to * the ones specified in the initial request.

If no NextToken * is specified, the first page is retrieved.

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

For a paginated request. Specify a token from a previous response page to * retrieve the next response page. All other parameter values must be identical to * the ones specified in the initial request.

If no NextToken * is specified, the first page is retrieved.

*/ inline ListPlatformVersionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_filters; bool m_filtersHasBeenSet = false; int m_maxRecords; bool m_maxRecordsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws