AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
DescribeAgentResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datasync/DataSync_EXPORTS.h>
10#include <aws/datasync/model/AgentStatus.h>
11#include <aws/datasync/model/EndpointType.h>
12#include <aws/datasync/model/Platform.h>
13#include <aws/datasync/model/PrivateLinkConfig.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace DataSync {
27namespace Model {
34 public:
35 AWS_DATASYNC_API DescribeAgentResult() = default;
38
40
43 inline const Aws::String& GetAgentArn() const { return m_agentArn; }
44 template <typename AgentArnT = Aws::String>
45 void SetAgentArn(AgentArnT&& value) {
46 m_agentArnHasBeenSet = true;
47 m_agentArn = std::forward<AgentArnT>(value);
48 }
49 template <typename AgentArnT = Aws::String>
50 DescribeAgentResult& WithAgentArn(AgentArnT&& value) {
51 SetAgentArn(std::forward<AgentArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 DescribeAgentResult& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
83 inline AgentStatus GetStatus() const { return m_status; }
84 inline void SetStatus(AgentStatus value) {
85 m_statusHasBeenSet = true;
86 m_status = value;
87 }
89 SetStatus(value);
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetLastConnectionTime() const { return m_lastConnectionTime; }
99 template <typename LastConnectionTimeT = Aws::Utils::DateTime>
100 void SetLastConnectionTime(LastConnectionTimeT&& value) {
101 m_lastConnectionTimeHasBeenSet = true;
102 m_lastConnectionTime = std::forward<LastConnectionTimeT>(value);
103 }
104 template <typename LastConnectionTimeT = Aws::Utils::DateTime>
105 DescribeAgentResult& WithLastConnectionTime(LastConnectionTimeT&& value) {
106 SetLastConnectionTime(std::forward<LastConnectionTimeT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
117 template <typename CreationTimeT = Aws::Utils::DateTime>
118 void SetCreationTime(CreationTimeT&& value) {
119 m_creationTimeHasBeenSet = true;
120 m_creationTime = std::forward<CreationTimeT>(value);
121 }
122 template <typename CreationTimeT = Aws::Utils::DateTime>
123 DescribeAgentResult& WithCreationTime(CreationTimeT&& value) {
124 SetCreationTime(std::forward<CreationTimeT>(value));
125 return *this;
126 }
128
130
135 inline EndpointType GetEndpointType() const { return m_endpointType; }
136 inline void SetEndpointType(EndpointType value) {
137 m_endpointTypeHasBeenSet = true;
138 m_endpointType = value;
139 }
141 SetEndpointType(value);
142 return *this;
143 }
145
147
152 inline const PrivateLinkConfig& GetPrivateLinkConfig() const { return m_privateLinkConfig; }
153 template <typename PrivateLinkConfigT = PrivateLinkConfig>
154 void SetPrivateLinkConfig(PrivateLinkConfigT&& value) {
155 m_privateLinkConfigHasBeenSet = true;
156 m_privateLinkConfig = std::forward<PrivateLinkConfigT>(value);
157 }
158 template <typename PrivateLinkConfigT = PrivateLinkConfig>
159 DescribeAgentResult& WithPrivateLinkConfig(PrivateLinkConfigT&& value) {
160 SetPrivateLinkConfig(std::forward<PrivateLinkConfigT>(value));
161 return *this;
162 }
164
166
169 inline const Platform& GetPlatform() const { return m_platform; }
170 template <typename PlatformT = Platform>
171 void SetPlatform(PlatformT&& value) {
172 m_platformHasBeenSet = true;
173 m_platform = std::forward<PlatformT>(value);
174 }
175 template <typename PlatformT = Platform>
176 DescribeAgentResult& WithPlatform(PlatformT&& value) {
177 SetPlatform(std::forward<PlatformT>(value));
178 return *this;
179 }
181
183
184 inline const Aws::String& GetRequestId() const { return m_requestId; }
185 template <typename RequestIdT = Aws::String>
186 void SetRequestId(RequestIdT&& value) {
187 m_requestIdHasBeenSet = true;
188 m_requestId = std::forward<RequestIdT>(value);
189 }
190 template <typename RequestIdT = Aws::String>
191 DescribeAgentResult& WithRequestId(RequestIdT&& value) {
192 SetRequestId(std::forward<RequestIdT>(value));
193 return *this;
194 }
196 private:
197 Aws::String m_agentArn;
198
199 Aws::String m_name;
200
202
203 Aws::Utils::DateTime m_lastConnectionTime{};
204
205 Aws::Utils::DateTime m_creationTime{};
206
207 EndpointType m_endpointType{EndpointType::NOT_SET};
208
209 PrivateLinkConfig m_privateLinkConfig;
210
211 Platform m_platform;
212
213 Aws::String m_requestId;
214 bool m_agentArnHasBeenSet = false;
215 bool m_nameHasBeenSet = false;
216 bool m_statusHasBeenSet = false;
217 bool m_lastConnectionTimeHasBeenSet = false;
218 bool m_creationTimeHasBeenSet = false;
219 bool m_endpointTypeHasBeenSet = false;
220 bool m_privateLinkConfigHasBeenSet = false;
221 bool m_platformHasBeenSet = false;
222 bool m_requestIdHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace DataSync
227} // 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)
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