/** * 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 { /** *

Request to describe one or more environments.

See Also:

AWS * API Reference

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

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that are associated with this application.

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

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that are associated with this application.

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

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that are associated with this application.

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

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that are associated with this application.

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

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that are associated with this application.

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

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that are associated with this application.

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

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that are associated with this application.

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

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that are associated with this application.

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

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that are associated with this application version.

*/ inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; } /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that are associated with this application version.

*/ inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; } /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that are associated with this application version.

*/ inline void SetVersionLabel(const Aws::String& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; } /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that are associated with this application version.

*/ inline void SetVersionLabel(Aws::String&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::move(value); } /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that are associated with this application version.

*/ inline void SetVersionLabel(const char* value) { m_versionLabelHasBeenSet = true; m_versionLabel.assign(value); } /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that are associated with this application version.

*/ inline DescribeEnvironmentsRequest& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;} /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that are associated with this application version.

*/ inline DescribeEnvironmentsRequest& WithVersionLabel(Aws::String&& value) { SetVersionLabel(std::move(value)); return *this;} /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that are associated with this application version.

*/ inline DescribeEnvironmentsRequest& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;} /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that have the specified IDs.

*/ inline const Aws::Vector& GetEnvironmentIds() const{ return m_environmentIds; } /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that have the specified IDs.

*/ inline bool EnvironmentIdsHasBeenSet() const { return m_environmentIdsHasBeenSet; } /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that have the specified IDs.

*/ inline void SetEnvironmentIds(const Aws::Vector& value) { m_environmentIdsHasBeenSet = true; m_environmentIds = value; } /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that have the specified IDs.

*/ inline void SetEnvironmentIds(Aws::Vector&& value) { m_environmentIdsHasBeenSet = true; m_environmentIds = std::move(value); } /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that have the specified IDs.

*/ inline DescribeEnvironmentsRequest& WithEnvironmentIds(const Aws::Vector& value) { SetEnvironmentIds(value); return *this;} /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that have the specified IDs.

*/ inline DescribeEnvironmentsRequest& WithEnvironmentIds(Aws::Vector&& value) { SetEnvironmentIds(std::move(value)); return *this;} /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that have the specified IDs.

*/ inline DescribeEnvironmentsRequest& AddEnvironmentIds(const Aws::String& value) { m_environmentIdsHasBeenSet = true; m_environmentIds.push_back(value); return *this; } /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that have the specified IDs.

*/ inline DescribeEnvironmentsRequest& AddEnvironmentIds(Aws::String&& value) { m_environmentIdsHasBeenSet = true; m_environmentIds.push_back(std::move(value)); return *this; } /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that have the specified IDs.

*/ inline DescribeEnvironmentsRequest& AddEnvironmentIds(const char* value) { m_environmentIdsHasBeenSet = true; m_environmentIds.push_back(value); return *this; } /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that have the specified names.

*/ inline const Aws::Vector& GetEnvironmentNames() const{ return m_environmentNames; } /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that have the specified names.

*/ inline bool EnvironmentNamesHasBeenSet() const { return m_environmentNamesHasBeenSet; } /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that have the specified names.

*/ inline void SetEnvironmentNames(const Aws::Vector& value) { m_environmentNamesHasBeenSet = true; m_environmentNames = value; } /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that have the specified names.

*/ inline void SetEnvironmentNames(Aws::Vector&& value) { m_environmentNamesHasBeenSet = true; m_environmentNames = std::move(value); } /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that have the specified names.

*/ inline DescribeEnvironmentsRequest& WithEnvironmentNames(const Aws::Vector& value) { SetEnvironmentNames(value); return *this;} /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that have the specified names.

*/ inline DescribeEnvironmentsRequest& WithEnvironmentNames(Aws::Vector&& value) { SetEnvironmentNames(std::move(value)); return *this;} /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that have the specified names.

*/ inline DescribeEnvironmentsRequest& AddEnvironmentNames(const Aws::String& value) { m_environmentNamesHasBeenSet = true; m_environmentNames.push_back(value); return *this; } /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that have the specified names.

*/ inline DescribeEnvironmentsRequest& AddEnvironmentNames(Aws::String&& value) { m_environmentNamesHasBeenSet = true; m_environmentNames.push_back(std::move(value)); return *this; } /** *

If specified, AWS Elastic Beanstalk restricts the returned descriptions to * include only those that have the specified names.

*/ inline DescribeEnvironmentsRequest& AddEnvironmentNames(const char* value) { m_environmentNamesHasBeenSet = true; m_environmentNames.push_back(value); return *this; } /** *

Indicates whether to include deleted environments:

true: * Environments that have been deleted after IncludedDeletedBackTo are * displayed.

false: Do not include deleted environments.

*/ inline bool GetIncludeDeleted() const{ return m_includeDeleted; } /** *

Indicates whether to include deleted environments:

true: * Environments that have been deleted after IncludedDeletedBackTo are * displayed.

false: Do not include deleted environments.

*/ inline bool IncludeDeletedHasBeenSet() const { return m_includeDeletedHasBeenSet; } /** *

Indicates whether to include deleted environments:

true: * Environments that have been deleted after IncludedDeletedBackTo are * displayed.

false: Do not include deleted environments.

*/ inline void SetIncludeDeleted(bool value) { m_includeDeletedHasBeenSet = true; m_includeDeleted = value; } /** *

Indicates whether to include deleted environments:

true: * Environments that have been deleted after IncludedDeletedBackTo are * displayed.

false: Do not include deleted environments.

*/ inline DescribeEnvironmentsRequest& WithIncludeDeleted(bool value) { SetIncludeDeleted(value); return *this;} /** *

If specified when IncludeDeleted is set to true, * then environments deleted after this date are displayed.

*/ inline const Aws::Utils::DateTime& GetIncludedDeletedBackTo() const{ return m_includedDeletedBackTo; } /** *

If specified when IncludeDeleted is set to true, * then environments deleted after this date are displayed.

*/ inline bool IncludedDeletedBackToHasBeenSet() const { return m_includedDeletedBackToHasBeenSet; } /** *

If specified when IncludeDeleted is set to true, * then environments deleted after this date are displayed.

*/ inline void SetIncludedDeletedBackTo(const Aws::Utils::DateTime& value) { m_includedDeletedBackToHasBeenSet = true; m_includedDeletedBackTo = value; } /** *

If specified when IncludeDeleted is set to true, * then environments deleted after this date are displayed.

*/ inline void SetIncludedDeletedBackTo(Aws::Utils::DateTime&& value) { m_includedDeletedBackToHasBeenSet = true; m_includedDeletedBackTo = std::move(value); } /** *

If specified when IncludeDeleted is set to true, * then environments deleted after this date are displayed.

*/ inline DescribeEnvironmentsRequest& WithIncludedDeletedBackTo(const Aws::Utils::DateTime& value) { SetIncludedDeletedBackTo(value); return *this;} /** *

If specified when IncludeDeleted is set to true, * then environments deleted after this date are displayed.

*/ inline DescribeEnvironmentsRequest& WithIncludedDeletedBackTo(Aws::Utils::DateTime&& value) { SetIncludedDeletedBackTo(std::move(value)); return *this;} /** *

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

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

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

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

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

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

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

If no MaxRecords is specified, all * available environments 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 environments to include * in each response.

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

*/ inline DescribeEnvironmentsRequest& 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 DescribeEnvironmentsRequest& 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 DescribeEnvironmentsRequest& 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 DescribeEnvironmentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_applicationName; bool m_applicationNameHasBeenSet = false; Aws::String m_versionLabel; bool m_versionLabelHasBeenSet = false; Aws::Vector m_environmentIds; bool m_environmentIdsHasBeenSet = false; Aws::Vector m_environmentNames; bool m_environmentNamesHasBeenSet = false; bool m_includeDeleted; bool m_includeDeletedHasBeenSet = false; Aws::Utils::DateTime m_includedDeletedBackTo; bool m_includedDeletedBackToHasBeenSet = false; int m_maxRecords; bool m_maxRecordsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws