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

Request to describe application versions.

See Also:

AWS * API Reference

*/ class DescribeApplicationVersionsRequest : public ElasticBeanstalkRequest { public: AWS_ELASTICBEANSTALK_API DescribeApplicationVersionsRequest(); // 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 "DescribeApplicationVersions"; } AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override; protected: AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

Specify an application name to show only application versions for that * application.

*/ inline const Aws::String& GetApplicationName() const{ return m_applicationName; } /** *

Specify an application name to show only application versions for that * application.

*/ inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; } /** *

Specify an application name to show only application versions for that * application.

*/ inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; } /** *

Specify an application name to show only application versions for that * application.

*/ inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); } /** *

Specify an application name to show only application versions for that * application.

*/ inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); } /** *

Specify an application name to show only application versions for that * application.

*/ inline DescribeApplicationVersionsRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;} /** *

Specify an application name to show only application versions for that * application.

*/ inline DescribeApplicationVersionsRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;} /** *

Specify an application name to show only application versions for that * application.

*/ inline DescribeApplicationVersionsRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;} /** *

Specify a version label to show a specific application version.

*/ inline const Aws::Vector& GetVersionLabels() const{ return m_versionLabels; } /** *

Specify a version label to show a specific application version.

*/ inline bool VersionLabelsHasBeenSet() const { return m_versionLabelsHasBeenSet; } /** *

Specify a version label to show a specific application version.

*/ inline void SetVersionLabels(const Aws::Vector& value) { m_versionLabelsHasBeenSet = true; m_versionLabels = value; } /** *

Specify a version label to show a specific application version.

*/ inline void SetVersionLabels(Aws::Vector&& value) { m_versionLabelsHasBeenSet = true; m_versionLabels = std::move(value); } /** *

Specify a version label to show a specific application version.

*/ inline DescribeApplicationVersionsRequest& WithVersionLabels(const Aws::Vector& value) { SetVersionLabels(value); return *this;} /** *

Specify a version label to show a specific application version.

*/ inline DescribeApplicationVersionsRequest& WithVersionLabels(Aws::Vector&& value) { SetVersionLabels(std::move(value)); return *this;} /** *

Specify a version label to show a specific application version.

*/ inline DescribeApplicationVersionsRequest& AddVersionLabels(const Aws::String& value) { m_versionLabelsHasBeenSet = true; m_versionLabels.push_back(value); return *this; } /** *

Specify a version label to show a specific application version.

*/ inline DescribeApplicationVersionsRequest& AddVersionLabels(Aws::String&& value) { m_versionLabelsHasBeenSet = true; m_versionLabels.push_back(std::move(value)); return *this; } /** *

Specify a version label to show a specific application version.

*/ inline DescribeApplicationVersionsRequest& AddVersionLabels(const char* value) { m_versionLabelsHasBeenSet = true; m_versionLabels.push_back(value); return *this; } /** *

For a paginated request. Specify a maximum number of application versions to * include in each response.

If no MaxRecords is specified, all * available application versions are retrieved in a single response.

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

For a paginated request. Specify a maximum number of application versions to * include in each response.

If no MaxRecords is specified, all * available application versions are retrieved in a single response.

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

For a paginated request. Specify a maximum number of application versions to * include in each response.

If no MaxRecords is specified, all * available application versions are retrieved in a single response.

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

For a paginated request. Specify a maximum number of application versions to * include in each response.

If no MaxRecords is specified, all * available application versions are retrieved in a single response.

*/ inline DescribeApplicationVersionsRequest& 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 DescribeApplicationVersionsRequest& 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 DescribeApplicationVersionsRequest& 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 DescribeApplicationVersionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_applicationName; bool m_applicationNameHasBeenSet = false; Aws::Vector m_versionLabels; bool m_versionLabelsHasBeenSet = false; int m_maxRecords; bool m_maxRecordsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws