AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeAgentsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/discovery/ApplicationDiscoveryServiceRequest.h>
10#include <aws/discovery/ApplicationDiscoveryService_EXPORTS.h>
11#include <aws/discovery/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ApplicationDiscoveryService {
17namespace Model {
18
22 public:
23 AWS_APPLICATIONDISCOVERYSERVICE_API DescribeAgentsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeAgents"; }
30
31 AWS_APPLICATIONDISCOVERYSERVICE_API Aws::String SerializePayload() const override;
32
33 AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
41 inline const Aws::Vector<Aws::String>& GetAgentIds() const { return m_agentIds; }
42 inline bool AgentIdsHasBeenSet() const { return m_agentIdsHasBeenSet; }
43 template <typename AgentIdsT = Aws::Vector<Aws::String>>
44 void SetAgentIds(AgentIdsT&& value) {
45 m_agentIdsHasBeenSet = true;
46 m_agentIds = std::forward<AgentIdsT>(value);
47 }
48 template <typename AgentIdsT = Aws::Vector<Aws::String>>
49 DescribeAgentsRequest& WithAgentIds(AgentIdsT&& value) {
50 SetAgentIds(std::forward<AgentIdsT>(value));
51 return *this;
52 }
53 template <typename AgentIdsT = Aws::String>
54 DescribeAgentsRequest& AddAgentIds(AgentIdsT&& value) {
55 m_agentIdsHasBeenSet = true;
56 m_agentIds.emplace_back(std::forward<AgentIdsT>(value));
57 return *this;
58 }
60
62
67 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
68 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
69 template <typename FiltersT = Aws::Vector<Filter>>
70 void SetFilters(FiltersT&& value) {
71 m_filtersHasBeenSet = true;
72 m_filters = std::forward<FiltersT>(value);
73 }
74 template <typename FiltersT = Aws::Vector<Filter>>
76 SetFilters(std::forward<FiltersT>(value));
77 return *this;
78 }
79 template <typename FiltersT = Filter>
80 DescribeAgentsRequest& AddFilters(FiltersT&& value) {
81 m_filtersHasBeenSet = true;
82 m_filters.emplace_back(std::forward<FiltersT>(value));
83 return *this;
84 }
86
88
92 inline int GetMaxResults() const { return m_maxResults; }
93 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
94 inline void SetMaxResults(int value) {
95 m_maxResultsHasBeenSet = true;
96 m_maxResults = value;
97 }
99 SetMaxResults(value);
100 return *this;
101 }
103
105
112 inline const Aws::String& GetNextToken() const { return m_nextToken; }
113 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
114 template <typename NextTokenT = Aws::String>
115 void SetNextToken(NextTokenT&& value) {
116 m_nextTokenHasBeenSet = true;
117 m_nextToken = std::forward<NextTokenT>(value);
118 }
119 template <typename NextTokenT = Aws::String>
121 SetNextToken(std::forward<NextTokenT>(value));
122 return *this;
123 }
125 private:
126 Aws::Vector<Aws::String> m_agentIds;
127
128 Aws::Vector<Filter> m_filters;
129
130 int m_maxResults{0};
131
132 Aws::String m_nextToken;
133 bool m_agentIdsHasBeenSet = false;
134 bool m_filtersHasBeenSet = false;
135 bool m_maxResultsHasBeenSet = false;
136 bool m_nextTokenHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace ApplicationDiscoveryService
141} // 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