AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeAgentsResult.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/ApplicationDiscoveryService_EXPORTS.h>
10#include <aws/discovery/model/AgentInfo.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace ApplicationDiscoveryService {
24namespace Model {
26 public:
27 AWS_APPLICATIONDISCOVERYSERVICE_API DescribeAgentsResult() = default;
28 AWS_APPLICATIONDISCOVERYSERVICE_API DescribeAgentsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
29 AWS_APPLICATIONDISCOVERYSERVICE_API DescribeAgentsResult& operator=(
31
33
40 inline const Aws::Vector<AgentInfo>& GetAgentsInfo() const { return m_agentsInfo; }
41 template <typename AgentsInfoT = Aws::Vector<AgentInfo>>
42 void SetAgentsInfo(AgentsInfoT&& value) {
43 m_agentsInfoHasBeenSet = true;
44 m_agentsInfo = std::forward<AgentsInfoT>(value);
45 }
46 template <typename AgentsInfoT = Aws::Vector<AgentInfo>>
47 DescribeAgentsResult& WithAgentsInfo(AgentsInfoT&& value) {
48 SetAgentsInfo(std::forward<AgentsInfoT>(value));
49 return *this;
50 }
51 template <typename AgentsInfoT = AgentInfo>
52 DescribeAgentsResult& AddAgentsInfo(AgentsInfoT&& value) {
53 m_agentsInfoHasBeenSet = true;
54 m_agentsInfo.emplace_back(std::forward<AgentsInfoT>(value));
55 return *this;
56 }
58
60
67 inline const Aws::String& GetNextToken() const { return m_nextToken; }
68 template <typename NextTokenT = Aws::String>
69 void SetNextToken(NextTokenT&& value) {
70 m_nextTokenHasBeenSet = true;
71 m_nextToken = std::forward<NextTokenT>(value);
72 }
73 template <typename NextTokenT = Aws::String>
74 DescribeAgentsResult& WithNextToken(NextTokenT&& value) {
75 SetNextToken(std::forward<NextTokenT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
89 DescribeAgentsResult& WithRequestId(RequestIdT&& value) {
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 private:
95 Aws::Vector<AgentInfo> m_agentsInfo;
96
97 Aws::String m_nextToken;
98
99 Aws::String m_requestId;
100 bool m_agentsInfoHasBeenSet = false;
101 bool m_nextTokenHasBeenSet = false;
102 bool m_requestIdHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace ApplicationDiscoveryService
107} // namespace Aws
AWS_APPLICATIONDISCOVERYSERVICE_API DescribeAgentsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APPLICATIONDISCOVERYSERVICE_API DescribeAgentsResult()=default
AWS_APPLICATIONDISCOVERYSERVICE_API DescribeAgentsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeAgentsResult & WithAgentsInfo(AgentsInfoT &&value)
DescribeAgentsResult & AddAgentsInfo(AgentsInfoT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue