AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateRelayRequest.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/MailManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mailmanager/model/RelayAuthentication.h>
11#include <utility>
12
13namespace Aws
14{
15namespace MailManager
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MAILMANAGER_API UpdateRelayRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateRelay"; }
32
33 AWS_MAILMANAGER_API Aws::String SerializePayload() const override;
34
35 AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetRelayId() const { return m_relayId; }
43 inline bool RelayIdHasBeenSet() const { return m_relayIdHasBeenSet; }
44 template<typename RelayIdT = Aws::String>
45 void SetRelayId(RelayIdT&& value) { m_relayIdHasBeenSet = true; m_relayId = std::forward<RelayIdT>(value); }
46 template<typename RelayIdT = Aws::String>
47 UpdateRelayRequest& WithRelayId(RelayIdT&& value) { SetRelayId(std::forward<RelayIdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetRelayName() const { return m_relayName; }
55 inline bool RelayNameHasBeenSet() const { return m_relayNameHasBeenSet; }
56 template<typename RelayNameT = Aws::String>
57 void SetRelayName(RelayNameT&& value) { m_relayNameHasBeenSet = true; m_relayName = std::forward<RelayNameT>(value); }
58 template<typename RelayNameT = Aws::String>
59 UpdateRelayRequest& WithRelayName(RelayNameT&& value) { SetRelayName(std::forward<RelayNameT>(value)); return *this;}
61
63
66 inline const Aws::String& GetServerName() const { return m_serverName; }
67 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
68 template<typename ServerNameT = Aws::String>
69 void SetServerName(ServerNameT&& value) { m_serverNameHasBeenSet = true; m_serverName = std::forward<ServerNameT>(value); }
70 template<typename ServerNameT = Aws::String>
71 UpdateRelayRequest& WithServerName(ServerNameT&& value) { SetServerName(std::forward<ServerNameT>(value)); return *this;}
73
75
78 inline int GetServerPort() const { return m_serverPort; }
79 inline bool ServerPortHasBeenSet() const { return m_serverPortHasBeenSet; }
80 inline void SetServerPort(int value) { m_serverPortHasBeenSet = true; m_serverPort = value; }
81 inline UpdateRelayRequest& WithServerPort(int value) { SetServerPort(value); return *this;}
83
85
89 inline const RelayAuthentication& GetAuthentication() const { return m_authentication; }
90 inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; }
91 template<typename AuthenticationT = RelayAuthentication>
92 void SetAuthentication(AuthenticationT&& value) { m_authenticationHasBeenSet = true; m_authentication = std::forward<AuthenticationT>(value); }
93 template<typename AuthenticationT = RelayAuthentication>
94 UpdateRelayRequest& WithAuthentication(AuthenticationT&& value) { SetAuthentication(std::forward<AuthenticationT>(value)); return *this;}
96 private:
97
98 Aws::String m_relayId;
99 bool m_relayIdHasBeenSet = false;
100
101 Aws::String m_relayName;
102 bool m_relayNameHasBeenSet = false;
103
104 Aws::String m_serverName;
105 bool m_serverNameHasBeenSet = false;
106
107 int m_serverPort{0};
108 bool m_serverPortHasBeenSet = false;
109
110 RelayAuthentication m_authentication;
111 bool m_authenticationHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace MailManager
116} // 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