/** * 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 ResourceGroups { namespace Model { /** */ class SearchResourcesRequest : public ResourceGroupsRequest { public: AWS_RESOURCEGROUPS_API SearchResourcesRequest(); // 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 "SearchResources"; } AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override; /** *

The search query, using the same formats that are supported for resource * group definition. For more information, see CreateGroup.

*/ inline const ResourceQuery& GetResourceQuery() const{ return m_resourceQuery; } /** *

The search query, using the same formats that are supported for resource * group definition. For more information, see CreateGroup.

*/ inline bool ResourceQueryHasBeenSet() const { return m_resourceQueryHasBeenSet; } /** *

The search query, using the same formats that are supported for resource * group definition. For more information, see CreateGroup.

*/ inline void SetResourceQuery(const ResourceQuery& value) { m_resourceQueryHasBeenSet = true; m_resourceQuery = value; } /** *

The search query, using the same formats that are supported for resource * group definition. For more information, see CreateGroup.

*/ inline void SetResourceQuery(ResourceQuery&& value) { m_resourceQueryHasBeenSet = true; m_resourceQuery = std::move(value); } /** *

The search query, using the same formats that are supported for resource * group definition. For more information, see CreateGroup.

*/ inline SearchResourcesRequest& WithResourceQuery(const ResourceQuery& value) { SetResourceQuery(value); return *this;} /** *

The search query, using the same formats that are supported for resource * group definition. For more information, see CreateGroup.

*/ inline SearchResourcesRequest& WithResourceQuery(ResourceQuery&& value) { SetResourceQuery(std::move(value)); return *this;} /** *

The total number of results that you want included on each page of the * response. If you do not include this parameter, it defaults to a value that is * specific to the operation. If additional items exist beyond the maximum you * specify, the NextToken response element is present and has a value * (is not null). Include that value as the NextToken request * parameter in the next call to the operation to get the next part of the results. * Note that the service might return fewer results than the maximum even when * there are more results available. You should check NextToken after * every operation to ensure that you receive all of the results.

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

The total number of results that you want included on each page of the * response. If you do not include this parameter, it defaults to a value that is * specific to the operation. If additional items exist beyond the maximum you * specify, the NextToken response element is present and has a value * (is not null). Include that value as the NextToken request * parameter in the next call to the operation to get the next part of the results. * Note that the service might return fewer results than the maximum even when * there are more results available. You should check NextToken after * every operation to ensure that you receive all of the results.

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

The total number of results that you want included on each page of the * response. If you do not include this parameter, it defaults to a value that is * specific to the operation. If additional items exist beyond the maximum you * specify, the NextToken response element is present and has a value * (is not null). Include that value as the NextToken request * parameter in the next call to the operation to get the next part of the results. * Note that the service might return fewer results than the maximum even when * there are more results available. You should check NextToken after * every operation to ensure that you receive all of the results.

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

The total number of results that you want included on each page of the * response. If you do not include this parameter, it defaults to a value that is * specific to the operation. If additional items exist beyond the maximum you * specify, the NextToken response element is present and has a value * (is not null). Include that value as the NextToken request * parameter in the next call to the operation to get the next part of the results. * Note that the service might return fewer results than the maximum even when * there are more results available. You should check NextToken after * every operation to ensure that you receive all of the results.

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

The parameter for receiving additional results if you receive a * NextToken response in a previous request. A NextToken * response indicates that more output is available. Set this parameter to the * value provided by a previous call's NextToken response to indicate * where the output should continue from.

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

The parameter for receiving additional results if you receive a * NextToken response in a previous request. A NextToken * response indicates that more output is available. Set this parameter to the * value provided by a previous call's NextToken response to indicate * where the output should continue from.

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

The parameter for receiving additional results if you receive a * NextToken response in a previous request. A NextToken * response indicates that more output is available. Set this parameter to the * value provided by a previous call's NextToken response to indicate * where the output should continue from.

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

The parameter for receiving additional results if you receive a * NextToken response in a previous request. A NextToken * response indicates that more output is available. Set this parameter to the * value provided by a previous call's NextToken response to indicate * where the output should continue from.

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

The parameter for receiving additional results if you receive a * NextToken response in a previous request. A NextToken * response indicates that more output is available. Set this parameter to the * value provided by a previous call's NextToken response to indicate * where the output should continue from.

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

The parameter for receiving additional results if you receive a * NextToken response in a previous request. A NextToken * response indicates that more output is available. Set this parameter to the * value provided by a previous call's NextToken response to indicate * where the output should continue from.

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

The parameter for receiving additional results if you receive a * NextToken response in a previous request. A NextToken * response indicates that more output is available. Set this parameter to the * value provided by a previous call's NextToken response to indicate * where the output should continue from.

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

The parameter for receiving additional results if you receive a * NextToken response in a previous request. A NextToken * response indicates that more output is available. Set this parameter to the * value provided by a previous call's NextToken response to indicate * where the output should continue from.

*/ inline SearchResourcesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: ResourceQuery m_resourceQuery; bool m_resourceQueryHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ResourceGroups } // namespace Aws