AWS SDK for C++  1.9.129
AWS SDK for C++
DescribeAgentsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ApplicationDiscoveryService
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "DescribeAgents"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
44  inline const Aws::Vector<Aws::String>& GetAgentIds() const{ return m_agentIds; }
45 
51  inline bool AgentIdsHasBeenSet() const { return m_agentIdsHasBeenSet; }
52 
58  inline void SetAgentIds(const Aws::Vector<Aws::String>& value) { m_agentIdsHasBeenSet = true; m_agentIds = value; }
59 
65  inline void SetAgentIds(Aws::Vector<Aws::String>&& value) { m_agentIdsHasBeenSet = true; m_agentIds = std::move(value); }
66 
72  inline DescribeAgentsRequest& WithAgentIds(const Aws::Vector<Aws::String>& value) { SetAgentIds(value); return *this;}
73 
79  inline DescribeAgentsRequest& WithAgentIds(Aws::Vector<Aws::String>&& value) { SetAgentIds(std::move(value)); return *this;}
80 
86  inline DescribeAgentsRequest& AddAgentIds(const Aws::String& value) { m_agentIdsHasBeenSet = true; m_agentIds.push_back(value); return *this; }
87 
93  inline DescribeAgentsRequest& AddAgentIds(Aws::String&& value) { m_agentIdsHasBeenSet = true; m_agentIds.push_back(std::move(value)); return *this; }
94 
100  inline DescribeAgentsRequest& AddAgentIds(const char* value) { m_agentIdsHasBeenSet = true; m_agentIds.push_back(value); return *this; }
101 
102 
108  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
109 
115  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
116 
122  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
123 
129  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
130 
136  inline DescribeAgentsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
137 
143  inline DescribeAgentsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
144 
150  inline DescribeAgentsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
151 
157  inline DescribeAgentsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
158 
159 
164  inline int GetMaxResults() const{ return m_maxResults; }
165 
170  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
171 
176  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
177 
182  inline DescribeAgentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
183 
184 
192  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
193 
201  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
202 
210  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
211 
219  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
220 
228  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
229 
237  inline DescribeAgentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
238 
246  inline DescribeAgentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
247 
255  inline DescribeAgentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
256 
257  private:
258 
259  Aws::Vector<Aws::String> m_agentIds;
260  bool m_agentIdsHasBeenSet;
261 
262  Aws::Vector<Filter> m_filters;
263  bool m_filtersHasBeenSet;
264 
265  int m_maxResults;
266  bool m_maxResultsHasBeenSet;
267 
268  Aws::String m_nextToken;
269  bool m_nextTokenHasBeenSet;
270  };
271 
272 } // namespace Model
273 } // namespace ApplicationDiscoveryService
274 } // namespace Aws
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::AddAgentIds
DescribeAgentsRequest & AddAgentIds(const Aws::String &value)
Definition: DescribeAgentsRequest.h:86
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeAgentsRequest.h:122
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::SetAgentIds
void SetAgentIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeAgentsRequest.h:58
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::WithFilters
DescribeAgentsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeAgentsRequest.h:136
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::WithAgentIds
DescribeAgentsRequest & WithAgentIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeAgentsRequest.h:72
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeAgentsRequest.h:176
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeAgentsRequest.h:210
ApplicationDiscoveryService_EXPORTS.h
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeAgentsRequest.h:115
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::GetAgentIds
const Aws::Vector< Aws::String > & GetAgentIds() const
Definition: DescribeAgentsRequest.h:44
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeAgentsRequest.h:228
AWSVector.h
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::AddAgentIds
DescribeAgentsRequest & AddAgentIds(Aws::String &&value)
Definition: DescribeAgentsRequest.h:93
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeAgentsRequest.h:170
Aws::ApplicationDiscoveryService::Model::Filter
Definition: Filter.h:37
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::WithNextToken
DescribeAgentsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeAgentsRequest.h:237
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeAgentsRequest.h:32
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::SetAgentIds
void SetAgentIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeAgentsRequest.h:65
AWSString.h
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::WithNextToken
DescribeAgentsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeAgentsRequest.h:246
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeAgentsRequest.h:108
ApplicationDiscoveryServiceRequest.h
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ApplicationDiscoveryService::ApplicationDiscoveryServiceRequest
Definition: ApplicationDiscoveryServiceRequest.h:17
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::WithAgentIds
DescribeAgentsRequest & WithAgentIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeAgentsRequest.h:79
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest
Definition: DescribeAgentsRequest.h:24
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeAgentsRequest.h:164
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::WithNextToken
DescribeAgentsRequest & WithNextToken(const char *value)
Definition: DescribeAgentsRequest.h:255
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeAgentsRequest.h:201
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::WithMaxResults
DescribeAgentsRequest & WithMaxResults(int value)
Definition: DescribeAgentsRequest.h:182
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeAgentsRequest.h:192
Aws
Definition: AccessManagementClient.h:15
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeAgentsRequest.h:219
Filter.h
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::AddAgentIds
DescribeAgentsRequest & AddAgentIds(const char *value)
Definition: DescribeAgentsRequest.h:100
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::DescribeAgentsRequest
DescribeAgentsRequest()
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::AddFilters
DescribeAgentsRequest & AddFilters(const Filter &value)
Definition: DescribeAgentsRequest.h:150
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::WithFilters
DescribeAgentsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeAgentsRequest.h:143
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::AddFilters
DescribeAgentsRequest & AddFilters(Filter &&value)
Definition: DescribeAgentsRequest.h:157
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeAgentsRequest.h:129
Aws::ApplicationDiscoveryService::Model::DescribeAgentsRequest::AgentIdsHasBeenSet
bool AgentIdsHasBeenSet() const
Definition: DescribeAgentsRequest.h:51
AWS_APPLICATIONDISCOVERYSERVICE_API
#define AWS_APPLICATIONDISCOVERYSERVICE_API
Definition: ApplicationDiscoveryService_EXPORTS.h:28