AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
GetRelayResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mailmanager/MailManager_EXPORTS.h>
10#include <aws/mailmanager/model/RelayAuthentication.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace MailManager {
24namespace Model {
26 public:
27 AWS_MAILMANAGER_API GetRelayResult() = default;
30
32
35 inline const Aws::String& GetRelayId() const { return m_relayId; }
36 template <typename RelayIdT = Aws::String>
37 void SetRelayId(RelayIdT&& value) {
38 m_relayIdHasBeenSet = true;
39 m_relayId = std::forward<RelayIdT>(value);
40 }
41 template <typename RelayIdT = Aws::String>
42 GetRelayResult& WithRelayId(RelayIdT&& value) {
43 SetRelayId(std::forward<RelayIdT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetRelayArn() const { return m_relayArn; }
53 template <typename RelayArnT = Aws::String>
54 void SetRelayArn(RelayArnT&& value) {
55 m_relayArnHasBeenSet = true;
56 m_relayArn = std::forward<RelayArnT>(value);
57 }
58 template <typename RelayArnT = Aws::String>
59 GetRelayResult& WithRelayArn(RelayArnT&& value) {
60 SetRelayArn(std::forward<RelayArnT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetRelayName() const { return m_relayName; }
70 template <typename RelayNameT = Aws::String>
71 void SetRelayName(RelayNameT&& value) {
72 m_relayNameHasBeenSet = true;
73 m_relayName = std::forward<RelayNameT>(value);
74 }
75 template <typename RelayNameT = Aws::String>
76 GetRelayResult& WithRelayName(RelayNameT&& value) {
77 SetRelayName(std::forward<RelayNameT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetServerName() const { return m_serverName; }
87 template <typename ServerNameT = Aws::String>
88 void SetServerName(ServerNameT&& value) {
89 m_serverNameHasBeenSet = true;
90 m_serverName = std::forward<ServerNameT>(value);
91 }
92 template <typename ServerNameT = Aws::String>
93 GetRelayResult& WithServerName(ServerNameT&& value) {
94 SetServerName(std::forward<ServerNameT>(value));
95 return *this;
96 }
98
100
103 inline int GetServerPort() const { return m_serverPort; }
104 inline void SetServerPort(int value) {
105 m_serverPortHasBeenSet = true;
106 m_serverPort = value;
107 }
108 inline GetRelayResult& WithServerPort(int value) {
109 SetServerPort(value);
110 return *this;
111 }
113
115
119 inline const RelayAuthentication& GetAuthentication() const { return m_authentication; }
120 template <typename AuthenticationT = RelayAuthentication>
121 void SetAuthentication(AuthenticationT&& value) {
122 m_authenticationHasBeenSet = true;
123 m_authentication = std::forward<AuthenticationT>(value);
124 }
125 template <typename AuthenticationT = RelayAuthentication>
126 GetRelayResult& WithAuthentication(AuthenticationT&& value) {
127 SetAuthentication(std::forward<AuthenticationT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
137 template <typename CreatedTimestampT = Aws::Utils::DateTime>
138 void SetCreatedTimestamp(CreatedTimestampT&& value) {
139 m_createdTimestampHasBeenSet = true;
140 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
141 }
142 template <typename CreatedTimestampT = Aws::Utils::DateTime>
143 GetRelayResult& WithCreatedTimestamp(CreatedTimestampT&& value) {
144 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const { return m_lastModifiedTimestamp; }
154 template <typename LastModifiedTimestampT = Aws::Utils::DateTime>
155 void SetLastModifiedTimestamp(LastModifiedTimestampT&& value) {
156 m_lastModifiedTimestampHasBeenSet = true;
157 m_lastModifiedTimestamp = std::forward<LastModifiedTimestampT>(value);
158 }
159 template <typename LastModifiedTimestampT = Aws::Utils::DateTime>
160 GetRelayResult& WithLastModifiedTimestamp(LastModifiedTimestampT&& value) {
161 SetLastModifiedTimestamp(std::forward<LastModifiedTimestampT>(value));
162 return *this;
163 }
165
167
168 inline const Aws::String& GetRequestId() const { return m_requestId; }
169 template <typename RequestIdT = Aws::String>
170 void SetRequestId(RequestIdT&& value) {
171 m_requestIdHasBeenSet = true;
172 m_requestId = std::forward<RequestIdT>(value);
173 }
174 template <typename RequestIdT = Aws::String>
175 GetRelayResult& WithRequestId(RequestIdT&& value) {
176 SetRequestId(std::forward<RequestIdT>(value));
177 return *this;
178 }
180 private:
181 Aws::String m_relayId;
182
183 Aws::String m_relayArn;
184
185 Aws::String m_relayName;
186
187 Aws::String m_serverName;
188
189 int m_serverPort{0};
190
191 RelayAuthentication m_authentication;
192
193 Aws::Utils::DateTime m_createdTimestamp{};
194
195 Aws::Utils::DateTime m_lastModifiedTimestamp{};
196
197 Aws::String m_requestId;
198 bool m_relayIdHasBeenSet = false;
199 bool m_relayArnHasBeenSet = false;
200 bool m_relayNameHasBeenSet = false;
201 bool m_serverNameHasBeenSet = false;
202 bool m_serverPortHasBeenSet = false;
203 bool m_authenticationHasBeenSet = false;
204 bool m_createdTimestampHasBeenSet = false;
205 bool m_lastModifiedTimestampHasBeenSet = false;
206 bool m_requestIdHasBeenSet = false;
207};
208
209} // namespace Model
210} // namespace MailManager
211} // 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)
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