AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateRelayRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mailmanager/MailManagerRequest.h>
9#include <aws/mailmanager/MailManager_EXPORTS.h>
10#include <aws/mailmanager/model/RelayAuthentication.h>
11
12#include <utility>
13
14namespace Aws {
15namespace MailManager {
16namespace Model {
17
21 public:
22 AWS_MAILMANAGER_API UpdateRelayRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateRelay"; }
29
30 AWS_MAILMANAGER_API Aws::String SerializePayload() const override;
31
32 AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetRelayId() const { return m_relayId; }
39 inline bool RelayIdHasBeenSet() const { return m_relayIdHasBeenSet; }
40 template <typename RelayIdT = Aws::String>
41 void SetRelayId(RelayIdT&& value) {
42 m_relayIdHasBeenSet = true;
43 m_relayId = std::forward<RelayIdT>(value);
44 }
45 template <typename RelayIdT = Aws::String>
46 UpdateRelayRequest& WithRelayId(RelayIdT&& value) {
47 SetRelayId(std::forward<RelayIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetRelayName() const { return m_relayName; }
57 inline bool RelayNameHasBeenSet() const { return m_relayNameHasBeenSet; }
58 template <typename RelayNameT = Aws::String>
59 void SetRelayName(RelayNameT&& value) {
60 m_relayNameHasBeenSet = true;
61 m_relayName = std::forward<RelayNameT>(value);
62 }
63 template <typename RelayNameT = Aws::String>
64 UpdateRelayRequest& WithRelayName(RelayNameT&& value) {
65 SetRelayName(std::forward<RelayNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetServerName() const { return m_serverName; }
75 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
76 template <typename ServerNameT = Aws::String>
77 void SetServerName(ServerNameT&& value) {
78 m_serverNameHasBeenSet = true;
79 m_serverName = std::forward<ServerNameT>(value);
80 }
81 template <typename ServerNameT = Aws::String>
82 UpdateRelayRequest& WithServerName(ServerNameT&& value) {
83 SetServerName(std::forward<ServerNameT>(value));
84 return *this;
85 }
87
89
92 inline int GetServerPort() const { return m_serverPort; }
93 inline bool ServerPortHasBeenSet() const { return m_serverPortHasBeenSet; }
94 inline void SetServerPort(int value) {
95 m_serverPortHasBeenSet = true;
96 m_serverPort = value;
97 }
99 SetServerPort(value);
100 return *this;
101 }
103
105
109 inline const RelayAuthentication& GetAuthentication() const { return m_authentication; }
110 inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; }
111 template <typename AuthenticationT = RelayAuthentication>
112 void SetAuthentication(AuthenticationT&& value) {
113 m_authenticationHasBeenSet = true;
114 m_authentication = std::forward<AuthenticationT>(value);
115 }
116 template <typename AuthenticationT = RelayAuthentication>
117 UpdateRelayRequest& WithAuthentication(AuthenticationT&& value) {
118 SetAuthentication(std::forward<AuthenticationT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_relayId;
124
125 Aws::String m_relayName;
126
127 Aws::String m_serverName;
128
129 int m_serverPort{0};
130
131 RelayAuthentication m_authentication;
132 bool m_relayIdHasBeenSet = false;
133 bool m_relayNameHasBeenSet = false;
134 bool m_serverNameHasBeenSet = false;
135 bool m_serverPortHasBeenSet = false;
136 bool m_authenticationHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace MailManager
141} // namespace Aws
UpdateRelayRequest & WithServerPort(int value)
UpdateRelayRequest & WithRelayId(RelayIdT &&value)
const RelayAuthentication & GetAuthentication() const
AWS_MAILMANAGER_API UpdateRelayRequest()=default
UpdateRelayRequest & WithAuthentication(AuthenticationT &&value)
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
UpdateRelayRequest & WithRelayName(RelayNameT &&value)
UpdateRelayRequest & WithServerName(ServerNameT &&value)
void SetAuthentication(AuthenticationT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String