AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListDiscoveredResourcesRequest.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/ConfigServiceRequest.h>
9#include <aws/config/model/ResourceType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ConfigService
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_CONFIGSERVICE_API ListDiscoveredResourcesRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ListDiscoveredResources"; }
36
37 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
38
39 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
46 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
47 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
48 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
49 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
50 inline ListDiscoveredResourcesRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
51 inline ListDiscoveredResourcesRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
53
55
61 inline const Aws::Vector<Aws::String>& GetResourceIds() const{ return m_resourceIds; }
62 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
63 inline void SetResourceIds(const Aws::Vector<Aws::String>& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = value; }
64 inline void SetResourceIds(Aws::Vector<Aws::String>&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = std::move(value); }
67 inline ListDiscoveredResourcesRequest& AddResourceIds(const Aws::String& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; }
68 inline ListDiscoveredResourcesRequest& AddResourceIds(Aws::String&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(std::move(value)); return *this; }
69 inline ListDiscoveredResourcesRequest& AddResourceIds(const char* value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; }
71
73
78 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
79 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
80 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
81 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
82 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
83 inline ListDiscoveredResourcesRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
84 inline ListDiscoveredResourcesRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
85 inline ListDiscoveredResourcesRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
87
89
94 inline int GetLimit() const{ return m_limit; }
95 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
96 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
97 inline ListDiscoveredResourcesRequest& WithLimit(int value) { SetLimit(value); return *this;}
99
101
105 inline bool GetIncludeDeletedResources() const{ return m_includeDeletedResources; }
106 inline bool IncludeDeletedResourcesHasBeenSet() const { return m_includeDeletedResourcesHasBeenSet; }
107 inline void SetIncludeDeletedResources(bool value) { m_includeDeletedResourcesHasBeenSet = true; m_includeDeletedResources = value; }
110
112
116 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
117 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
118 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
119 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
120 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
121 inline ListDiscoveredResourcesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
122 inline ListDiscoveredResourcesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
123 inline ListDiscoveredResourcesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
125 private:
126
127 ResourceType m_resourceType;
128 bool m_resourceTypeHasBeenSet = false;
129
130 Aws::Vector<Aws::String> m_resourceIds;
131 bool m_resourceIdsHasBeenSet = false;
132
133 Aws::String m_resourceName;
134 bool m_resourceNameHasBeenSet = false;
135
136 int m_limit;
137 bool m_limitHasBeenSet = false;
138
139 bool m_includeDeletedResources;
140 bool m_includeDeletedResourcesHasBeenSet = false;
141
142 Aws::String m_nextToken;
143 bool m_nextTokenHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace ConfigService
148} // namespace Aws
ListDiscoveredResourcesRequest & WithNextToken(Aws::String &&value)
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
ListDiscoveredResourcesRequest & AddResourceIds(const char *value)
ListDiscoveredResourcesRequest & WithResourceType(ResourceType &&value)
ListDiscoveredResourcesRequest & WithResourceIds(Aws::Vector< Aws::String > &&value)
ListDiscoveredResourcesRequest & WithResourceName(const char *value)
ListDiscoveredResourcesRequest & WithNextToken(const char *value)
ListDiscoveredResourcesRequest & AddResourceIds(const Aws::String &value)
ListDiscoveredResourcesRequest & WithResourceType(const ResourceType &value)
ListDiscoveredResourcesRequest & WithResourceIds(const Aws::Vector< Aws::String > &value)
ListDiscoveredResourcesRequest & WithNextToken(const Aws::String &value)
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListDiscoveredResourcesRequest & WithResourceName(const Aws::String &value)
ListDiscoveredResourcesRequest & WithIncludeDeletedResources(bool value)
ListDiscoveredResourcesRequest & AddResourceIds(Aws::String &&value)
ListDiscoveredResourcesRequest & WithResourceName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector