AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
DescribeAgentResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datasync/DataSync_EXPORTS.h>
11#include <aws/datasync/model/AgentStatus.h>
12#include <aws/datasync/model/EndpointType.h>
13#include <aws/datasync/model/Platform.h>
14#include <aws/datasync/model/PrivateLinkConfig.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace DataSync {
28namespace Model {
35 public:
36 AWS_DATASYNC_API DescribeAgentResult() = default;
39
41
44 inline const Aws::String& GetAgentArn() const { return m_agentArn; }
45 template <typename AgentArnT = Aws::String>
46 void SetAgentArn(AgentArnT&& value) {
47 m_agentArnHasBeenSet = true;
48 m_agentArn = std::forward<AgentArnT>(value);
49 }
50 template <typename AgentArnT = Aws::String>
51 DescribeAgentResult& WithAgentArn(AgentArnT&& value) {
52 SetAgentArn(std::forward<AgentArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
68 DescribeAgentResult& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
84 inline AgentStatus GetStatus() const { return m_status; }
85 inline void SetStatus(AgentStatus value) {
86 m_statusHasBeenSet = true;
87 m_status = value;
88 }
90 SetStatus(value);
91 return *this;
92 }
94
96
99 inline const Aws::Utils::DateTime& GetLastConnectionTime() const { return m_lastConnectionTime; }
100 template <typename LastConnectionTimeT = Aws::Utils::DateTime>
101 void SetLastConnectionTime(LastConnectionTimeT&& value) {
102 m_lastConnectionTimeHasBeenSet = true;
103 m_lastConnectionTime = std::forward<LastConnectionTimeT>(value);
104 }
105 template <typename LastConnectionTimeT = Aws::Utils::DateTime>
106 DescribeAgentResult& WithLastConnectionTime(LastConnectionTimeT&& value) {
107 SetLastConnectionTime(std::forward<LastConnectionTimeT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
118 template <typename CreationTimeT = Aws::Utils::DateTime>
119 void SetCreationTime(CreationTimeT&& value) {
120 m_creationTimeHasBeenSet = true;
121 m_creationTime = std::forward<CreationTimeT>(value);
122 }
123 template <typename CreationTimeT = Aws::Utils::DateTime>
124 DescribeAgentResult& WithCreationTime(CreationTimeT&& value) {
125 SetCreationTime(std::forward<CreationTimeT>(value));
126 return *this;
127 }
129
131
136 inline EndpointType GetEndpointType() const { return m_endpointType; }
137 inline void SetEndpointType(EndpointType value) {
138 m_endpointTypeHasBeenSet = true;
139 m_endpointType = value;
140 }
142 SetEndpointType(value);
143 return *this;
144 }
146
148
153 inline const PrivateLinkConfig& GetPrivateLinkConfig() const { return m_privateLinkConfig; }
154 template <typename PrivateLinkConfigT = PrivateLinkConfig>
155 void SetPrivateLinkConfig(PrivateLinkConfigT&& value) {
156 m_privateLinkConfigHasBeenSet = true;
157 m_privateLinkConfig = std::forward<PrivateLinkConfigT>(value);
158 }
159 template <typename PrivateLinkConfigT = PrivateLinkConfig>
160 DescribeAgentResult& WithPrivateLinkConfig(PrivateLinkConfigT&& value) {
161 SetPrivateLinkConfig(std::forward<PrivateLinkConfigT>(value));
162 return *this;
163 }
165
167
170 inline const Platform& GetPlatform() const { return m_platform; }
171 template <typename PlatformT = Platform>
172 void SetPlatform(PlatformT&& value) {
173 m_platformHasBeenSet = true;
174 m_platform = std::forward<PlatformT>(value);
175 }
176 template <typename PlatformT = Platform>
177 DescribeAgentResult& WithPlatform(PlatformT&& value) {
178 SetPlatform(std::forward<PlatformT>(value));
179 return *this;
180 }
182
184
185 inline const Aws::String& GetRequestId() const { return m_requestId; }
186 template <typename RequestIdT = Aws::String>
187 void SetRequestId(RequestIdT&& value) {
188 m_requestIdHasBeenSet = true;
189 m_requestId = std::forward<RequestIdT>(value);
190 }
191 template <typename RequestIdT = Aws::String>
192 DescribeAgentResult& WithRequestId(RequestIdT&& value) {
193 SetRequestId(std::forward<RequestIdT>(value));
194 return *this;
195 }
197 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
198
199 private:
200 Aws::String m_agentArn;
201
202 Aws::String m_name;
203
205
206 Aws::Utils::DateTime m_lastConnectionTime{};
207
208 Aws::Utils::DateTime m_creationTime{};
209
210 EndpointType m_endpointType{EndpointType::NOT_SET};
211
212 PrivateLinkConfig m_privateLinkConfig;
213
214 Platform m_platform;
215
216 Aws::String m_requestId;
217 Aws::Http::HttpResponseCode m_HttpResponseCode;
218 bool m_agentArnHasBeenSet = false;
219 bool m_nameHasBeenSet = false;
220 bool m_statusHasBeenSet = false;
221 bool m_lastConnectionTimeHasBeenSet = false;
222 bool m_creationTimeHasBeenSet = false;
223 bool m_endpointTypeHasBeenSet = false;
224 bool m_privateLinkConfigHasBeenSet = false;
225 bool m_platformHasBeenSet = false;
226 bool m_requestIdHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace DataSync
231} // namespace Aws
const PrivateLinkConfig & GetPrivateLinkConfig() const
DescribeAgentResult & WithPlatform(PlatformT &&value)
AWS_DATASYNC_API DescribeAgentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLastConnectionTime(LastConnectionTimeT &&value)
DescribeAgentResult & WithCreationTime(CreationTimeT &&value)
AWS_DATASYNC_API DescribeAgentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeAgentResult & WithAgentArn(AgentArnT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeAgentResult & WithEndpointType(EndpointType value)
DescribeAgentResult & WithRequestId(RequestIdT &&value)
DescribeAgentResult & WithName(NameT &&value)
const Aws::Utils::DateTime & GetLastConnectionTime() const
DescribeAgentResult & WithStatus(AgentStatus value)
const Aws::Utils::DateTime & GetCreationTime() const
AWS_DATASYNC_API DescribeAgentResult()=default
void SetPrivateLinkConfig(PrivateLinkConfigT &&value)
DescribeAgentResult & WithLastConnectionTime(LastConnectionTimeT &&value)
DescribeAgentResult & WithPrivateLinkConfig(PrivateLinkConfigT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue