AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeAgentsRequest.h
1
6#pragma once
7#include <aws/discovery/ApplicationDiscoveryService_EXPORTS.h>
8#include <aws/discovery/ApplicationDiscoveryServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/discovery/model/Filter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ApplicationDiscoveryService
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_APPLICATIONDISCOVERYSERVICE_API DescribeAgentsRequest() = default;
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_APPLICATIONDISCOVERYSERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
45 inline const Aws::Vector<Aws::String>& GetAgentIds() const { return m_agentIds; }
46 inline bool AgentIdsHasBeenSet() const { return m_agentIdsHasBeenSet; }
47 template<typename AgentIdsT = Aws::Vector<Aws::String>>
48 void SetAgentIds(AgentIdsT&& value) { m_agentIdsHasBeenSet = true; m_agentIds = std::forward<AgentIdsT>(value); }
49 template<typename AgentIdsT = Aws::Vector<Aws::String>>
50 DescribeAgentsRequest& WithAgentIds(AgentIdsT&& value) { SetAgentIds(std::forward<AgentIdsT>(value)); return *this;}
51 template<typename AgentIdsT = Aws::String>
52 DescribeAgentsRequest& AddAgentIds(AgentIdsT&& value) { m_agentIdsHasBeenSet = true; m_agentIds.emplace_back(std::forward<AgentIdsT>(value)); return *this; }
54
56
61 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
62 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
63 template<typename FiltersT = Aws::Vector<Filter>>
64 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
65 template<typename FiltersT = Aws::Vector<Filter>>
66 DescribeAgentsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
67 template<typename FiltersT = Filter>
68 DescribeAgentsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
70
72
76 inline int GetMaxResults() const { return m_maxResults; }
77 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
78 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
79 inline DescribeAgentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
81
83
90 inline const Aws::String& GetNextToken() const { return m_nextToken; }
91 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
92 template<typename NextTokenT = Aws::String>
93 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
94 template<typename NextTokenT = Aws::String>
95 DescribeAgentsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
97 private:
98
99 Aws::Vector<Aws::String> m_agentIds;
100 bool m_agentIdsHasBeenSet = false;
101
102 Aws::Vector<Filter> m_filters;
103 bool m_filtersHasBeenSet = false;
104
105 int m_maxResults{0};
106 bool m_maxResultsHasBeenSet = false;
107
108 Aws::String m_nextToken;
109 bool m_nextTokenHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace ApplicationDiscoveryService
114} // namespace Aws
AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_APPLICATIONDISCOVERYSERVICE_API DescribeAgentsRequest()=default
AWS_APPLICATIONDISCOVERYSERVICE_API Aws::String SerializePayload() const override
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