AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeAgentResult.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datasync/model/AgentStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/datasync/model/EndpointType.h>
12#include <aws/datasync/model/PrivateLinkConfig.h>
13#include <aws/datasync/model/Platform.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace DataSync
29{
30namespace Model
31{
38 {
39 public:
40 AWS_DATASYNC_API DescribeAgentResult() = default;
43
44
46
49 inline const Aws::String& GetAgentArn() const { return m_agentArn; }
50 template<typename AgentArnT = Aws::String>
51 void SetAgentArn(AgentArnT&& value) { m_agentArnHasBeenSet = true; m_agentArn = std::forward<AgentArnT>(value); }
52 template<typename AgentArnT = Aws::String>
53 DescribeAgentResult& WithAgentArn(AgentArnT&& value) { SetAgentArn(std::forward<AgentArnT>(value)); return *this;}
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 DescribeAgentResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
77 inline AgentStatus GetStatus() const { return m_status; }
78 inline void SetStatus(AgentStatus value) { m_statusHasBeenSet = true; m_status = value; }
79 inline DescribeAgentResult& WithStatus(AgentStatus value) { SetStatus(value); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetLastConnectionTime() const { return m_lastConnectionTime; }
87 template<typename LastConnectionTimeT = Aws::Utils::DateTime>
88 void SetLastConnectionTime(LastConnectionTimeT&& value) { m_lastConnectionTimeHasBeenSet = true; m_lastConnectionTime = std::forward<LastConnectionTimeT>(value); }
89 template<typename LastConnectionTimeT = Aws::Utils::DateTime>
90 DescribeAgentResult& WithLastConnectionTime(LastConnectionTimeT&& value) { SetLastConnectionTime(std::forward<LastConnectionTimeT>(value)); return *this;}
92
94
98 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
99 template<typename CreationTimeT = Aws::Utils::DateTime>
100 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
101 template<typename CreationTimeT = Aws::Utils::DateTime>
102 DescribeAgentResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
104
106
111 inline EndpointType GetEndpointType() const { return m_endpointType; }
112 inline void SetEndpointType(EndpointType value) { m_endpointTypeHasBeenSet = true; m_endpointType = value; }
113 inline DescribeAgentResult& WithEndpointType(EndpointType value) { SetEndpointType(value); return *this;}
115
117
122 inline const PrivateLinkConfig& GetPrivateLinkConfig() const { return m_privateLinkConfig; }
123 template<typename PrivateLinkConfigT = PrivateLinkConfig>
124 void SetPrivateLinkConfig(PrivateLinkConfigT&& value) { m_privateLinkConfigHasBeenSet = true; m_privateLinkConfig = std::forward<PrivateLinkConfigT>(value); }
125 template<typename PrivateLinkConfigT = PrivateLinkConfig>
126 DescribeAgentResult& WithPrivateLinkConfig(PrivateLinkConfigT&& value) { SetPrivateLinkConfig(std::forward<PrivateLinkConfigT>(value)); return *this;}
128
130
133 inline const Platform& GetPlatform() const { return m_platform; }
134 template<typename PlatformT = Platform>
135 void SetPlatform(PlatformT&& value) { m_platformHasBeenSet = true; m_platform = std::forward<PlatformT>(value); }
136 template<typename PlatformT = Platform>
137 DescribeAgentResult& WithPlatform(PlatformT&& value) { SetPlatform(std::forward<PlatformT>(value)); return *this;}
139
141
142 inline const Aws::String& GetRequestId() const { return m_requestId; }
143 template<typename RequestIdT = Aws::String>
144 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
145 template<typename RequestIdT = Aws::String>
146 DescribeAgentResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
148 private:
149
150 Aws::String m_agentArn;
151 bool m_agentArnHasBeenSet = false;
152
153 Aws::String m_name;
154 bool m_nameHasBeenSet = false;
155
157 bool m_statusHasBeenSet = false;
158
159 Aws::Utils::DateTime m_lastConnectionTime{};
160 bool m_lastConnectionTimeHasBeenSet = false;
161
162 Aws::Utils::DateTime m_creationTime{};
163 bool m_creationTimeHasBeenSet = false;
164
165 EndpointType m_endpointType{EndpointType::NOT_SET};
166 bool m_endpointTypeHasBeenSet = false;
167
168 PrivateLinkConfig m_privateLinkConfig;
169 bool m_privateLinkConfigHasBeenSet = false;
170
171 Platform m_platform;
172 bool m_platformHasBeenSet = false;
173
174 Aws::String m_requestId;
175 bool m_requestIdHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace DataSync
180} // 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