AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeAgentsResult.h
1
6#pragma once
7#include <aws/discovery/ApplicationDiscoveryService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/discovery/model/AgentInfo.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace ApplicationDiscoveryService
26{
27namespace Model
28{
30 {
31 public:
32 AWS_APPLICATIONDISCOVERYSERVICE_API DescribeAgentsResult() = default;
33 AWS_APPLICATIONDISCOVERYSERVICE_API DescribeAgentsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
35
36
38
45 inline const Aws::Vector<AgentInfo>& GetAgentsInfo() const { return m_agentsInfo; }
46 template<typename AgentsInfoT = Aws::Vector<AgentInfo>>
47 void SetAgentsInfo(AgentsInfoT&& value) { m_agentsInfoHasBeenSet = true; m_agentsInfo = std::forward<AgentsInfoT>(value); }
48 template<typename AgentsInfoT = Aws::Vector<AgentInfo>>
49 DescribeAgentsResult& WithAgentsInfo(AgentsInfoT&& value) { SetAgentsInfo(std::forward<AgentsInfoT>(value)); return *this;}
50 template<typename AgentsInfoT = AgentInfo>
51 DescribeAgentsResult& AddAgentsInfo(AgentsInfoT&& value) { m_agentsInfoHasBeenSet = true; m_agentsInfo.emplace_back(std::forward<AgentsInfoT>(value)); return *this; }
53
55
62 inline const Aws::String& GetNextToken() const { return m_nextToken; }
63 template<typename NextTokenT = Aws::String>
64 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
65 template<typename NextTokenT = Aws::String>
66 DescribeAgentsResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
68
70
71 inline const Aws::String& GetRequestId() const { return m_requestId; }
72 template<typename RequestIdT = Aws::String>
73 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
74 template<typename RequestIdT = Aws::String>
75 DescribeAgentsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
77 private:
78
79 Aws::Vector<AgentInfo> m_agentsInfo;
80 bool m_agentsInfoHasBeenSet = false;
81
82 Aws::String m_nextToken;
83 bool m_nextTokenHasBeenSet = false;
84
85 Aws::String m_requestId;
86 bool m_requestIdHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace ApplicationDiscoveryService
91} // 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