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

See Also:

AWS * API Reference

*/ class ListDiscoveredResourcesRequest : public ConfigServiceRequest { public: AWS_CONFIGSERVICE_API ListDiscoveredResourcesRequest(); // 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 "ListDiscoveredResources"; } AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override; AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The type of resources that you want Config to list in the response.

*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *

The type of resources that you want Config to list in the response.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The type of resources that you want Config to list in the response.

*/ inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The type of resources that you want Config to list in the response.

*/ inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The type of resources that you want Config to list in the response.

*/ inline ListDiscoveredResourcesRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *

The type of resources that you want Config to list in the response.

*/ inline ListDiscoveredResourcesRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *

The IDs of only those resources that you want Config to list in the response. * If you do not specify this parameter, Config lists all resources of the * specified type that it has discovered. You can list a minimum of 1 resourceID * and a maximum of 20 resourceIds.

*/ inline const Aws::Vector& GetResourceIds() const{ return m_resourceIds; } /** *

The IDs of only those resources that you want Config to list in the response. * If you do not specify this parameter, Config lists all resources of the * specified type that it has discovered. You can list a minimum of 1 resourceID * and a maximum of 20 resourceIds.

*/ inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; } /** *

The IDs of only those resources that you want Config to list in the response. * If you do not specify this parameter, Config lists all resources of the * specified type that it has discovered. You can list a minimum of 1 resourceID * and a maximum of 20 resourceIds.

*/ inline void SetResourceIds(const Aws::Vector& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = value; } /** *

The IDs of only those resources that you want Config to list in the response. * If you do not specify this parameter, Config lists all resources of the * specified type that it has discovered. You can list a minimum of 1 resourceID * and a maximum of 20 resourceIds.

*/ inline void SetResourceIds(Aws::Vector&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = std::move(value); } /** *

The IDs of only those resources that you want Config to list in the response. * If you do not specify this parameter, Config lists all resources of the * specified type that it has discovered. You can list a minimum of 1 resourceID * and a maximum of 20 resourceIds.

*/ inline ListDiscoveredResourcesRequest& WithResourceIds(const Aws::Vector& value) { SetResourceIds(value); return *this;} /** *

The IDs of only those resources that you want Config to list in the response. * If you do not specify this parameter, Config lists all resources of the * specified type that it has discovered. You can list a minimum of 1 resourceID * and a maximum of 20 resourceIds.

*/ inline ListDiscoveredResourcesRequest& WithResourceIds(Aws::Vector&& value) { SetResourceIds(std::move(value)); return *this;} /** *

The IDs of only those resources that you want Config to list in the response. * If you do not specify this parameter, Config lists all resources of the * specified type that it has discovered. You can list a minimum of 1 resourceID * and a maximum of 20 resourceIds.

*/ inline ListDiscoveredResourcesRequest& AddResourceIds(const Aws::String& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; } /** *

The IDs of only those resources that you want Config to list in the response. * If you do not specify this parameter, Config lists all resources of the * specified type that it has discovered. You can list a minimum of 1 resourceID * and a maximum of 20 resourceIds.

*/ inline ListDiscoveredResourcesRequest& AddResourceIds(Aws::String&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(std::move(value)); return *this; } /** *

The IDs of only those resources that you want Config to list in the response. * If you do not specify this parameter, Config lists all resources of the * specified type that it has discovered. You can list a minimum of 1 resourceID * and a maximum of 20 resourceIds.

*/ inline ListDiscoveredResourcesRequest& AddResourceIds(const char* value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; } /** *

The custom name of only those resources that you want Config to list in the * response. If you do not specify this parameter, Config lists all resources of * the specified type that it has discovered.

*/ inline const Aws::String& GetResourceName() const{ return m_resourceName; } /** *

The custom name of only those resources that you want Config to list in the * response. If you do not specify this parameter, Config lists all resources of * the specified type that it has discovered.

*/ inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; } /** *

The custom name of only those resources that you want Config to list in the * response. If you do not specify this parameter, Config lists all resources of * the specified type that it has discovered.

*/ inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; } /** *

The custom name of only those resources that you want Config to list in the * response. If you do not specify this parameter, Config lists all resources of * the specified type that it has discovered.

*/ inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); } /** *

The custom name of only those resources that you want Config to list in the * response. If you do not specify this parameter, Config lists all resources of * the specified type that it has discovered.

*/ inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); } /** *

The custom name of only those resources that you want Config to list in the * response. If you do not specify this parameter, Config lists all resources of * the specified type that it has discovered.

*/ inline ListDiscoveredResourcesRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;} /** *

The custom name of only those resources that you want Config to list in the * response. If you do not specify this parameter, Config lists all resources of * the specified type that it has discovered.

*/ inline ListDiscoveredResourcesRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;} /** *

The custom name of only those resources that you want Config to list in the * response. If you do not specify this parameter, Config lists all resources of * the specified type that it has discovered.

*/ inline ListDiscoveredResourcesRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;} /** *

The maximum number of resource identifiers returned on each page. The default * is 100. You cannot specify a number greater than 100. If you specify 0, Config * uses the default.

*/ inline int GetLimit() const{ return m_limit; } /** *

The maximum number of resource identifiers returned on each page. The default * is 100. You cannot specify a number greater than 100. If you specify 0, Config * uses the default.

*/ inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; } /** *

The maximum number of resource identifiers returned on each page. The default * is 100. You cannot specify a number greater than 100. If you specify 0, Config * uses the default.

*/ inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; } /** *

The maximum number of resource identifiers returned on each page. The default * is 100. You cannot specify a number greater than 100. If you specify 0, Config * uses the default.

*/ inline ListDiscoveredResourcesRequest& WithLimit(int value) { SetLimit(value); return *this;} /** *

Specifies whether Config includes deleted resources in the results. By * default, deleted resources are not included.

*/ inline bool GetIncludeDeletedResources() const{ return m_includeDeletedResources; } /** *

Specifies whether Config includes deleted resources in the results. By * default, deleted resources are not included.

*/ inline bool IncludeDeletedResourcesHasBeenSet() const { return m_includeDeletedResourcesHasBeenSet; } /** *

Specifies whether Config includes deleted resources in the results. By * default, deleted resources are not included.

*/ inline void SetIncludeDeletedResources(bool value) { m_includeDeletedResourcesHasBeenSet = true; m_includeDeletedResources = value; } /** *

Specifies whether Config includes deleted resources in the results. By * default, deleted resources are not included.

*/ inline ListDiscoveredResourcesRequest& WithIncludeDeletedResources(bool value) { SetIncludeDeletedResources(value); return *this;} /** *

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

*/ inline ListDiscoveredResourcesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::Vector m_resourceIds; bool m_resourceIdsHasBeenSet = false; Aws::String m_resourceName; bool m_resourceNameHasBeenSet = false; int m_limit; bool m_limitHasBeenSet = false; bool m_includeDeletedResources; bool m_includeDeletedResourcesHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws