/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace ApplicationDiscoveryService { namespace Model { /** */ class ListConfigurationsRequest : public ApplicationDiscoveryServiceRequest { public: AWS_APPLICATIONDISCOVERYSERVICE_API ListConfigurationsRequest(); // 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 "ListConfigurations"; } AWS_APPLICATIONDISCOVERYSERVICE_API Aws::String SerializePayload() const override; AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A valid configuration identified by Application Discovery Service.

*/ inline const ConfigurationItemType& GetConfigurationType() const{ return m_configurationType; } /** *

A valid configuration identified by Application Discovery Service.

*/ inline bool ConfigurationTypeHasBeenSet() const { return m_configurationTypeHasBeenSet; } /** *

A valid configuration identified by Application Discovery Service.

*/ inline void SetConfigurationType(const ConfigurationItemType& value) { m_configurationTypeHasBeenSet = true; m_configurationType = value; } /** *

A valid configuration identified by Application Discovery Service.

*/ inline void SetConfigurationType(ConfigurationItemType&& value) { m_configurationTypeHasBeenSet = true; m_configurationType = std::move(value); } /** *

A valid configuration identified by Application Discovery Service.

*/ inline ListConfigurationsRequest& WithConfigurationType(const ConfigurationItemType& value) { SetConfigurationType(value); return *this;} /** *

A valid configuration identified by Application Discovery Service.

*/ inline ListConfigurationsRequest& WithConfigurationType(ConfigurationItemType&& value) { SetConfigurationType(std::move(value)); return *this;} /** *

You can filter the request using various logical operators and a * key-value format. For example:

{"key": * "serverType", "value": "webServer"}

For a complete list of filter * options and guidance about using them with this action, see Using * the ListConfigurations Action in the Amazon Web Services Application * Discovery Service User Guide.

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

You can filter the request using various logical operators and a * key-value format. For example:

{"key": * "serverType", "value": "webServer"}

For a complete list of filter * options and guidance about using them with this action, see Using * the ListConfigurations Action in the Amazon Web Services Application * Discovery Service User Guide.

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

You can filter the request using various logical operators and a * key-value format. For example:

{"key": * "serverType", "value": "webServer"}

For a complete list of filter * options and guidance about using them with this action, see Using * the ListConfigurations Action in the Amazon Web Services Application * Discovery Service User Guide.

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

You can filter the request using various logical operators and a * key-value format. For example:

{"key": * "serverType", "value": "webServer"}

For a complete list of filter * options and guidance about using them with this action, see Using * the ListConfigurations Action in the Amazon Web Services Application * Discovery Service User Guide.

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

You can filter the request using various logical operators and a * key-value format. For example:

{"key": * "serverType", "value": "webServer"}

For a complete list of filter * options and guidance about using them with this action, see Using * the ListConfigurations Action in the Amazon Web Services Application * Discovery Service User Guide.

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

You can filter the request using various logical operators and a * key-value format. For example:

{"key": * "serverType", "value": "webServer"}

For a complete list of filter * options and guidance about using them with this action, see Using * the ListConfigurations Action in the Amazon Web Services Application * Discovery Service User Guide.

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

You can filter the request using various logical operators and a * key-value format. For example:

{"key": * "serverType", "value": "webServer"}

For a complete list of filter * options and guidance about using them with this action, see Using * the ListConfigurations Action in the Amazon Web Services Application * Discovery Service User Guide.

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

You can filter the request using various logical operators and a * key-value format. For example:

{"key": * "serverType", "value": "webServer"}

For a complete list of filter * options and guidance about using them with this action, see Using * the ListConfigurations Action in the Amazon Web Services Application * Discovery Service User Guide.

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

The total number of items to return. The maximum value is 100.

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

The total number of items to return. The maximum value is 100.

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

The total number of items to return. The maximum value is 100.

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

The total number of items to return. The maximum value is 100.

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

Token to retrieve the next set of results. For example, if a previous call to * ListConfigurations returned 100 items, but you set * ListConfigurationsRequest$maxResults to 10, you received a set of * 10 results along with a token. Use that token in this query to get the next set * of 10.

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

Token to retrieve the next set of results. For example, if a previous call to * ListConfigurations returned 100 items, but you set * ListConfigurationsRequest$maxResults to 10, you received a set of * 10 results along with a token. Use that token in this query to get the next set * of 10.

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

Token to retrieve the next set of results. For example, if a previous call to * ListConfigurations returned 100 items, but you set * ListConfigurationsRequest$maxResults to 10, you received a set of * 10 results along with a token. Use that token in this query to get the next set * of 10.

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

Token to retrieve the next set of results. For example, if a previous call to * ListConfigurations returned 100 items, but you set * ListConfigurationsRequest$maxResults to 10, you received a set of * 10 results along with a token. Use that token in this query to get the next set * of 10.

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

Token to retrieve the next set of results. For example, if a previous call to * ListConfigurations returned 100 items, but you set * ListConfigurationsRequest$maxResults to 10, you received a set of * 10 results along with a token. Use that token in this query to get the next set * of 10.

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

Token to retrieve the next set of results. For example, if a previous call to * ListConfigurations returned 100 items, but you set * ListConfigurationsRequest$maxResults to 10, you received a set of * 10 results along with a token. Use that token in this query to get the next set * of 10.

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

Token to retrieve the next set of results. For example, if a previous call to * ListConfigurations returned 100 items, but you set * ListConfigurationsRequest$maxResults to 10, you received a set of * 10 results along with a token. Use that token in this query to get the next set * of 10.

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

Token to retrieve the next set of results. For example, if a previous call to * ListConfigurations returned 100 items, but you set * ListConfigurationsRequest$maxResults to 10, you received a set of * 10 results along with a token. Use that token in this query to get the next set * of 10.

*/ inline ListConfigurationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

Certain filter criteria return output that can be sorted in ascending or * descending order. For a list of output characteristics for each filter, see Using * the ListConfigurations Action in the Amazon Web Services Application * Discovery Service User Guide.

*/ inline const Aws::Vector& GetOrderBy() const{ return m_orderBy; } /** *

Certain filter criteria return output that can be sorted in ascending or * descending order. For a list of output characteristics for each filter, see Using * the ListConfigurations Action in the Amazon Web Services Application * Discovery Service User Guide.

*/ inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; } /** *

Certain filter criteria return output that can be sorted in ascending or * descending order. For a list of output characteristics for each filter, see Using * the ListConfigurations Action in the Amazon Web Services Application * Discovery Service User Guide.

*/ inline void SetOrderBy(const Aws::Vector& value) { m_orderByHasBeenSet = true; m_orderBy = value; } /** *

Certain filter criteria return output that can be sorted in ascending or * descending order. For a list of output characteristics for each filter, see Using * the ListConfigurations Action in the Amazon Web Services Application * Discovery Service User Guide.

*/ inline void SetOrderBy(Aws::Vector&& value) { m_orderByHasBeenSet = true; m_orderBy = std::move(value); } /** *

Certain filter criteria return output that can be sorted in ascending or * descending order. For a list of output characteristics for each filter, see Using * the ListConfigurations Action in the Amazon Web Services Application * Discovery Service User Guide.

*/ inline ListConfigurationsRequest& WithOrderBy(const Aws::Vector& value) { SetOrderBy(value); return *this;} /** *

Certain filter criteria return output that can be sorted in ascending or * descending order. For a list of output characteristics for each filter, see Using * the ListConfigurations Action in the Amazon Web Services Application * Discovery Service User Guide.

*/ inline ListConfigurationsRequest& WithOrderBy(Aws::Vector&& value) { SetOrderBy(std::move(value)); return *this;} /** *

Certain filter criteria return output that can be sorted in ascending or * descending order. For a list of output characteristics for each filter, see Using * the ListConfigurations Action in the Amazon Web Services Application * Discovery Service User Guide.

*/ inline ListConfigurationsRequest& AddOrderBy(const OrderByElement& value) { m_orderByHasBeenSet = true; m_orderBy.push_back(value); return *this; } /** *

Certain filter criteria return output that can be sorted in ascending or * descending order. For a list of output characteristics for each filter, see Using * the ListConfigurations Action in the Amazon Web Services Application * Discovery Service User Guide.

*/ inline ListConfigurationsRequest& AddOrderBy(OrderByElement&& value) { m_orderByHasBeenSet = true; m_orderBy.push_back(std::move(value)); return *this; } private: ConfigurationItemType m_configurationType; bool m_configurationTypeHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::Vector m_orderBy; bool m_orderByHasBeenSet = false; }; } // namespace Model } // namespace ApplicationDiscoveryService } // namespace Aws