/** * 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 ApplicationDiscoveryService { namespace Model { /** */ class DescribeAgentsRequest : public ApplicationDiscoveryServiceRequest { public: AWS_APPLICATIONDISCOVERYSERVICE_API DescribeAgentsRequest(); // 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 "DescribeAgents"; } AWS_APPLICATIONDISCOVERYSERVICE_API Aws::String SerializePayload() const override; AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The agent or the collector IDs for which you want information. If you specify * no IDs, the system returns information about all agents/collectors associated * with your user.

*/ inline const Aws::Vector& GetAgentIds() const{ return m_agentIds; } /** *

The agent or the collector IDs for which you want information. If you specify * no IDs, the system returns information about all agents/collectors associated * with your user.

*/ inline bool AgentIdsHasBeenSet() const { return m_agentIdsHasBeenSet; } /** *

The agent or the collector IDs for which you want information. If you specify * no IDs, the system returns information about all agents/collectors associated * with your user.

*/ inline void SetAgentIds(const Aws::Vector& value) { m_agentIdsHasBeenSet = true; m_agentIds = value; } /** *

The agent or the collector IDs for which you want information. If you specify * no IDs, the system returns information about all agents/collectors associated * with your user.

*/ inline void SetAgentIds(Aws::Vector&& value) { m_agentIdsHasBeenSet = true; m_agentIds = std::move(value); } /** *

The agent or the collector IDs for which you want information. If you specify * no IDs, the system returns information about all agents/collectors associated * with your user.

*/ inline DescribeAgentsRequest& WithAgentIds(const Aws::Vector& value) { SetAgentIds(value); return *this;} /** *

The agent or the collector IDs for which you want information. If you specify * no IDs, the system returns information about all agents/collectors associated * with your user.

*/ inline DescribeAgentsRequest& WithAgentIds(Aws::Vector&& value) { SetAgentIds(std::move(value)); return *this;} /** *

The agent or the collector IDs for which you want information. If you specify * no IDs, the system returns information about all agents/collectors associated * with your user.

*/ inline DescribeAgentsRequest& AddAgentIds(const Aws::String& value) { m_agentIdsHasBeenSet = true; m_agentIds.push_back(value); return *this; } /** *

The agent or the collector IDs for which you want information. If you specify * no IDs, the system returns information about all agents/collectors associated * with your user.

*/ inline DescribeAgentsRequest& AddAgentIds(Aws::String&& value) { m_agentIdsHasBeenSet = true; m_agentIds.push_back(std::move(value)); return *this; } /** *

The agent or the collector IDs for which you want information. If you specify * no IDs, the system returns information about all agents/collectors associated * with your user.

*/ inline DescribeAgentsRequest& AddAgentIds(const char* value) { m_agentIdsHasBeenSet = true; m_agentIds.push_back(value); return *this; } /** *

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

{"key": * "collectionStatus", "value": "STARTED"}

*/ 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": * "collectionStatus", "value": "STARTED"}

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

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

{"key": * "collectionStatus", "value": "STARTED"}

*/ 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": * "collectionStatus", "value": "STARTED"}

*/ 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": * "collectionStatus", "value": "STARTED"}

*/ inline DescribeAgentsRequest& 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": * "collectionStatus", "value": "STARTED"}

*/ inline DescribeAgentsRequest& 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": * "collectionStatus", "value": "STARTED"}

*/ inline DescribeAgentsRequest& 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": * "collectionStatus", "value": "STARTED"}

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

The total number of agents/collectors to return in a single page of output. * The maximum value is 100.

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

The total number of agents/collectors to return in a single page of output. * The maximum value is 100.

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

The total number of agents/collectors to return in a single page of output. * The maximum value is 100.

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

The total number of agents/collectors to return in a single page of output. * The maximum value is 100.

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

Token to retrieve the next set of results. For example, if you previously * specified 100 IDs for DescribeAgentsRequest$agentIds but set * DescribeAgentsRequest$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 you previously * specified 100 IDs for DescribeAgentsRequest$agentIds but set * DescribeAgentsRequest$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 you previously * specified 100 IDs for DescribeAgentsRequest$agentIds but set * DescribeAgentsRequest$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 you previously * specified 100 IDs for DescribeAgentsRequest$agentIds but set * DescribeAgentsRequest$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 you previously * specified 100 IDs for DescribeAgentsRequest$agentIds but set * DescribeAgentsRequest$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 you previously * specified 100 IDs for DescribeAgentsRequest$agentIds but set * DescribeAgentsRequest$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 DescribeAgentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

Token to retrieve the next set of results. For example, if you previously * specified 100 IDs for DescribeAgentsRequest$agentIds but set * DescribeAgentsRequest$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 DescribeAgentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

Token to retrieve the next set of results. For example, if you previously * specified 100 IDs for DescribeAgentsRequest$agentIds but set * DescribeAgentsRequest$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 DescribeAgentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_agentIds; bool m_agentIdsHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ApplicationDiscoveryService } // namespace Aws