AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/mailmanager/model/RelayAuthentication.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace MailManager
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MAILMANAGER_API UpdateRelayRequest();
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
43 inline const RelayAuthentication& GetAuthentication() const{ return m_authentication; }
44 inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; }
45 inline void SetAuthentication(const RelayAuthentication& value) { m_authenticationHasBeenSet = true; m_authentication = value; }
46 inline void SetAuthentication(RelayAuthentication&& value) { m_authenticationHasBeenSet = true; m_authentication = std::move(value); }
47 inline UpdateRelayRequest& WithAuthentication(const RelayAuthentication& value) { SetAuthentication(value); return *this;}
48 inline UpdateRelayRequest& WithAuthentication(RelayAuthentication&& value) { SetAuthentication(std::move(value)); return *this;}
50
52
55 inline const Aws::String& GetRelayId() const{ return m_relayId; }
56 inline bool RelayIdHasBeenSet() const { return m_relayIdHasBeenSet; }
57 inline void SetRelayId(const Aws::String& value) { m_relayIdHasBeenSet = true; m_relayId = value; }
58 inline void SetRelayId(Aws::String&& value) { m_relayIdHasBeenSet = true; m_relayId = std::move(value); }
59 inline void SetRelayId(const char* value) { m_relayIdHasBeenSet = true; m_relayId.assign(value); }
60 inline UpdateRelayRequest& WithRelayId(const Aws::String& value) { SetRelayId(value); return *this;}
61 inline UpdateRelayRequest& WithRelayId(Aws::String&& value) { SetRelayId(std::move(value)); return *this;}
62 inline UpdateRelayRequest& WithRelayId(const char* value) { SetRelayId(value); return *this;}
64
66
69 inline const Aws::String& GetRelayName() const{ return m_relayName; }
70 inline bool RelayNameHasBeenSet() const { return m_relayNameHasBeenSet; }
71 inline void SetRelayName(const Aws::String& value) { m_relayNameHasBeenSet = true; m_relayName = value; }
72 inline void SetRelayName(Aws::String&& value) { m_relayNameHasBeenSet = true; m_relayName = std::move(value); }
73 inline void SetRelayName(const char* value) { m_relayNameHasBeenSet = true; m_relayName.assign(value); }
74 inline UpdateRelayRequest& WithRelayName(const Aws::String& value) { SetRelayName(value); return *this;}
75 inline UpdateRelayRequest& WithRelayName(Aws::String&& value) { SetRelayName(std::move(value)); return *this;}
76 inline UpdateRelayRequest& WithRelayName(const char* value) { SetRelayName(value); return *this;}
78
80
83 inline const Aws::String& GetServerName() const{ return m_serverName; }
84 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
85 inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
86 inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
87 inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
88 inline UpdateRelayRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
89 inline UpdateRelayRequest& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
90 inline UpdateRelayRequest& WithServerName(const char* value) { SetServerName(value); return *this;}
92
94
97 inline int GetServerPort() const{ return m_serverPort; }
98 inline bool ServerPortHasBeenSet() const { return m_serverPortHasBeenSet; }
99 inline void SetServerPort(int value) { m_serverPortHasBeenSet = true; m_serverPort = value; }
100 inline UpdateRelayRequest& WithServerPort(int value) { SetServerPort(value); return *this;}
102 private:
103
104 RelayAuthentication m_authentication;
105 bool m_authenticationHasBeenSet = false;
106
107 Aws::String m_relayId;
108 bool m_relayIdHasBeenSet = false;
109
110 Aws::String m_relayName;
111 bool m_relayNameHasBeenSet = false;
112
113 Aws::String m_serverName;
114 bool m_serverNameHasBeenSet = false;
115
116 int m_serverPort;
117 bool m_serverPortHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace MailManager
122} // namespace Aws
UpdateRelayRequest & WithServerPort(int value)
UpdateRelayRequest & WithServerName(Aws::String &&value)
UpdateRelayRequest & WithServerName(const Aws::String &value)
const RelayAuthentication & GetAuthentication() const
void SetAuthentication(const RelayAuthentication &value)
UpdateRelayRequest & WithRelayId(const char *value)
UpdateRelayRequest & WithRelayName(const Aws::String &value)
UpdateRelayRequest & WithRelayId(const Aws::String &value)
UpdateRelayRequest & WithServerName(const char *value)
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateRelayRequest & WithRelayName(const char *value)
virtual const char * GetServiceRequestName() const override
void SetRelayName(const Aws::String &value)
void SetAuthentication(RelayAuthentication &&value)
UpdateRelayRequest & WithAuthentication(const RelayAuthentication &value)
void SetServerName(const Aws::String &value)
UpdateRelayRequest & WithAuthentication(RelayAuthentication &&value)
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
UpdateRelayRequest & WithRelayName(Aws::String &&value)
void SetRelayId(const Aws::String &value)
UpdateRelayRequest & WithRelayId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String