AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetRelayResult.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/mailmanager/MailManager_EXPORTS.h>
11#include <aws/mailmanager/model/RelayAuthentication.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace MailManager {
25namespace Model {
27 public:
28 AWS_MAILMANAGER_API GetRelayResult() = default;
31
33
36 inline const Aws::String& GetRelayId() const { return m_relayId; }
37 template <typename RelayIdT = Aws::String>
38 void SetRelayId(RelayIdT&& value) {
39 m_relayIdHasBeenSet = true;
40 m_relayId = std::forward<RelayIdT>(value);
41 }
42 template <typename RelayIdT = Aws::String>
43 GetRelayResult& WithRelayId(RelayIdT&& value) {
44 SetRelayId(std::forward<RelayIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetRelayArn() const { return m_relayArn; }
54 template <typename RelayArnT = Aws::String>
55 void SetRelayArn(RelayArnT&& value) {
56 m_relayArnHasBeenSet = true;
57 m_relayArn = std::forward<RelayArnT>(value);
58 }
59 template <typename RelayArnT = Aws::String>
60 GetRelayResult& WithRelayArn(RelayArnT&& value) {
61 SetRelayArn(std::forward<RelayArnT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetRelayName() const { return m_relayName; }
71 template <typename RelayNameT = Aws::String>
72 void SetRelayName(RelayNameT&& value) {
73 m_relayNameHasBeenSet = true;
74 m_relayName = std::forward<RelayNameT>(value);
75 }
76 template <typename RelayNameT = Aws::String>
77 GetRelayResult& WithRelayName(RelayNameT&& value) {
78 SetRelayName(std::forward<RelayNameT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetServerName() const { return m_serverName; }
88 template <typename ServerNameT = Aws::String>
89 void SetServerName(ServerNameT&& value) {
90 m_serverNameHasBeenSet = true;
91 m_serverName = std::forward<ServerNameT>(value);
92 }
93 template <typename ServerNameT = Aws::String>
94 GetRelayResult& WithServerName(ServerNameT&& value) {
95 SetServerName(std::forward<ServerNameT>(value));
96 return *this;
97 }
99
101
104 inline int GetServerPort() const { return m_serverPort; }
105 inline void SetServerPort(int value) {
106 m_serverPortHasBeenSet = true;
107 m_serverPort = value;
108 }
109 inline GetRelayResult& WithServerPort(int value) {
110 SetServerPort(value);
111 return *this;
112 }
114
116
120 inline const RelayAuthentication& GetAuthentication() const { return m_authentication; }
121 template <typename AuthenticationT = RelayAuthentication>
122 void SetAuthentication(AuthenticationT&& value) {
123 m_authenticationHasBeenSet = true;
124 m_authentication = std::forward<AuthenticationT>(value);
125 }
126 template <typename AuthenticationT = RelayAuthentication>
127 GetRelayResult& WithAuthentication(AuthenticationT&& value) {
128 SetAuthentication(std::forward<AuthenticationT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
138 template <typename CreatedTimestampT = Aws::Utils::DateTime>
139 void SetCreatedTimestamp(CreatedTimestampT&& value) {
140 m_createdTimestampHasBeenSet = true;
141 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
142 }
143 template <typename CreatedTimestampT = Aws::Utils::DateTime>
144 GetRelayResult& WithCreatedTimestamp(CreatedTimestampT&& value) {
145 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const { return m_lastModifiedTimestamp; }
155 template <typename LastModifiedTimestampT = Aws::Utils::DateTime>
156 void SetLastModifiedTimestamp(LastModifiedTimestampT&& value) {
157 m_lastModifiedTimestampHasBeenSet = true;
158 m_lastModifiedTimestamp = std::forward<LastModifiedTimestampT>(value);
159 }
160 template <typename LastModifiedTimestampT = Aws::Utils::DateTime>
161 GetRelayResult& WithLastModifiedTimestamp(LastModifiedTimestampT&& value) {
162 SetLastModifiedTimestamp(std::forward<LastModifiedTimestampT>(value));
163 return *this;
164 }
166
168
169 inline const Aws::String& GetRequestId() const { return m_requestId; }
170 template <typename RequestIdT = Aws::String>
171 void SetRequestId(RequestIdT&& value) {
172 m_requestIdHasBeenSet = true;
173 m_requestId = std::forward<RequestIdT>(value);
174 }
175 template <typename RequestIdT = Aws::String>
176 GetRelayResult& WithRequestId(RequestIdT&& value) {
177 SetRequestId(std::forward<RequestIdT>(value));
178 return *this;
179 }
181 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
182
183 private:
184 Aws::String m_relayId;
185
186 Aws::String m_relayArn;
187
188 Aws::String m_relayName;
189
190 Aws::String m_serverName;
191
192 int m_serverPort{0};
193
194 RelayAuthentication m_authentication;
195
196 Aws::Utils::DateTime m_createdTimestamp{};
197
198 Aws::Utils::DateTime m_lastModifiedTimestamp{};
199
200 Aws::String m_requestId;
201 Aws::Http::HttpResponseCode m_HttpResponseCode;
202 bool m_relayIdHasBeenSet = false;
203 bool m_relayArnHasBeenSet = false;
204 bool m_relayNameHasBeenSet = false;
205 bool m_serverNameHasBeenSet = false;
206 bool m_serverPortHasBeenSet = false;
207 bool m_authenticationHasBeenSet = false;
208 bool m_createdTimestampHasBeenSet = false;
209 bool m_lastModifiedTimestampHasBeenSet = false;
210 bool m_requestIdHasBeenSet = false;
211};
212
213} // namespace Model
214} // namespace MailManager
215} // namespace Aws
const Aws::String & GetRelayName() const
GetRelayResult & WithCreatedTimestamp(CreatedTimestampT &&value)
const Aws::Utils::DateTime & GetLastModifiedTimestamp() const
GetRelayResult & WithServerName(ServerNameT &&value)
GetRelayResult & WithLastModifiedTimestamp(LastModifiedTimestampT &&value)
void SetAuthentication(AuthenticationT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetCreatedTimestamp() const
GetRelayResult & WithAuthentication(AuthenticationT &&value)
const Aws::String & GetRelayArn() const
const Aws::String & GetServerName() const
void SetCreatedTimestamp(CreatedTimestampT &&value)
GetRelayResult & WithRelayId(RelayIdT &&value)
AWS_MAILMANAGER_API GetRelayResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
void SetServerName(ServerNameT &&value)
GetRelayResult & WithServerPort(int value)
GetRelayResult & WithRelayName(RelayNameT &&value)
void SetLastModifiedTimestamp(LastModifiedTimestampT &&value)
AWS_MAILMANAGER_API GetRelayResult()=default
GetRelayResult & WithRelayArn(RelayArnT &&value)
AWS_MAILMANAGER_API GetRelayResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRelayId() const
const RelayAuthentication & GetAuthentication() const
void SetRelayName(RelayNameT &&value)
GetRelayResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue