AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetRelayResult.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mailmanager/model/RelayAuthentication.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace MailManager
26{
27namespace Model
28{
30 {
31 public:
32 AWS_MAILMANAGER_API GetRelayResult() = default;
35
36
38
41 inline const Aws::String& GetRelayId() const { return m_relayId; }
42 template<typename RelayIdT = Aws::String>
43 void SetRelayId(RelayIdT&& value) { m_relayIdHasBeenSet = true; m_relayId = std::forward<RelayIdT>(value); }
44 template<typename RelayIdT = Aws::String>
45 GetRelayResult& WithRelayId(RelayIdT&& value) { SetRelayId(std::forward<RelayIdT>(value)); return *this;}
47
49
52 inline const Aws::String& GetRelayArn() const { return m_relayArn; }
53 template<typename RelayArnT = Aws::String>
54 void SetRelayArn(RelayArnT&& value) { m_relayArnHasBeenSet = true; m_relayArn = std::forward<RelayArnT>(value); }
55 template<typename RelayArnT = Aws::String>
56 GetRelayResult& WithRelayArn(RelayArnT&& value) { SetRelayArn(std::forward<RelayArnT>(value)); return *this;}
58
60
63 inline const Aws::String& GetRelayName() const { return m_relayName; }
64 template<typename RelayNameT = Aws::String>
65 void SetRelayName(RelayNameT&& value) { m_relayNameHasBeenSet = true; m_relayName = std::forward<RelayNameT>(value); }
66 template<typename RelayNameT = Aws::String>
67 GetRelayResult& WithRelayName(RelayNameT&& value) { SetRelayName(std::forward<RelayNameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetServerName() const { return m_serverName; }
75 template<typename ServerNameT = Aws::String>
76 void SetServerName(ServerNameT&& value) { m_serverNameHasBeenSet = true; m_serverName = std::forward<ServerNameT>(value); }
77 template<typename ServerNameT = Aws::String>
78 GetRelayResult& WithServerName(ServerNameT&& value) { SetServerName(std::forward<ServerNameT>(value)); return *this;}
80
82
85 inline int GetServerPort() const { return m_serverPort; }
86 inline void SetServerPort(int value) { m_serverPortHasBeenSet = true; m_serverPort = value; }
87 inline GetRelayResult& WithServerPort(int value) { SetServerPort(value); return *this;}
89
91
95 inline const RelayAuthentication& GetAuthentication() const { return m_authentication; }
96 template<typename AuthenticationT = RelayAuthentication>
97 void SetAuthentication(AuthenticationT&& value) { m_authenticationHasBeenSet = true; m_authentication = std::forward<AuthenticationT>(value); }
98 template<typename AuthenticationT = RelayAuthentication>
99 GetRelayResult& WithAuthentication(AuthenticationT&& value) { SetAuthentication(std::forward<AuthenticationT>(value)); return *this;}
101
103
106 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
107 template<typename CreatedTimestampT = Aws::Utils::DateTime>
108 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
109 template<typename CreatedTimestampT = Aws::Utils::DateTime>
110 GetRelayResult& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const { return m_lastModifiedTimestamp; }
118 template<typename LastModifiedTimestampT = Aws::Utils::DateTime>
119 void SetLastModifiedTimestamp(LastModifiedTimestampT&& value) { m_lastModifiedTimestampHasBeenSet = true; m_lastModifiedTimestamp = std::forward<LastModifiedTimestampT>(value); }
120 template<typename LastModifiedTimestampT = Aws::Utils::DateTime>
121 GetRelayResult& WithLastModifiedTimestamp(LastModifiedTimestampT&& value) { SetLastModifiedTimestamp(std::forward<LastModifiedTimestampT>(value)); return *this;}
123
125
126 inline const Aws::String& GetRequestId() const { return m_requestId; }
127 template<typename RequestIdT = Aws::String>
128 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
129 template<typename RequestIdT = Aws::String>
130 GetRelayResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
132 private:
133
134 Aws::String m_relayId;
135 bool m_relayIdHasBeenSet = false;
136
137 Aws::String m_relayArn;
138 bool m_relayArnHasBeenSet = false;
139
140 Aws::String m_relayName;
141 bool m_relayNameHasBeenSet = false;
142
143 Aws::String m_serverName;
144 bool m_serverNameHasBeenSet = false;
145
146 int m_serverPort{0};
147 bool m_serverPortHasBeenSet = false;
148
149 RelayAuthentication m_authentication;
150 bool m_authenticationHasBeenSet = false;
151
152 Aws::Utils::DateTime m_createdTimestamp{};
153 bool m_createdTimestampHasBeenSet = false;
154
155 Aws::Utils::DateTime m_lastModifiedTimestamp{};
156 bool m_lastModifiedTimestampHasBeenSet = false;
157
158 Aws::String m_requestId;
159 bool m_requestIdHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace MailManager
164} // 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