AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRelayRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/mailmanager/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace MailManager
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_MAILMANAGER_API CreateRelayRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateRelay"; }
35
36 AWS_MAILMANAGER_API Aws::String SerializePayload() const override;
37
38 AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
46 inline const RelayAuthentication& GetAuthentication() const{ return m_authentication; }
47 inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; }
48 inline void SetAuthentication(const RelayAuthentication& value) { m_authenticationHasBeenSet = true; m_authentication = value; }
49 inline void SetAuthentication(RelayAuthentication&& value) { m_authenticationHasBeenSet = true; m_authentication = std::move(value); }
50 inline CreateRelayRequest& WithAuthentication(const RelayAuthentication& value) { SetAuthentication(value); return *this;}
51 inline CreateRelayRequest& WithAuthentication(RelayAuthentication&& value) { SetAuthentication(std::move(value)); return *this;}
53
55
59 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
60 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
61 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
62 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
63 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
64 inline CreateRelayRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
65 inline CreateRelayRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
66 inline CreateRelayRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
68
70
73 inline const Aws::String& GetRelayName() const{ return m_relayName; }
74 inline bool RelayNameHasBeenSet() const { return m_relayNameHasBeenSet; }
75 inline void SetRelayName(const Aws::String& value) { m_relayNameHasBeenSet = true; m_relayName = value; }
76 inline void SetRelayName(Aws::String&& value) { m_relayNameHasBeenSet = true; m_relayName = std::move(value); }
77 inline void SetRelayName(const char* value) { m_relayNameHasBeenSet = true; m_relayName.assign(value); }
78 inline CreateRelayRequest& WithRelayName(const Aws::String& value) { SetRelayName(value); return *this;}
79 inline CreateRelayRequest& WithRelayName(Aws::String&& value) { SetRelayName(std::move(value)); return *this;}
80 inline CreateRelayRequest& WithRelayName(const char* value) { SetRelayName(value); return *this;}
82
84
87 inline const Aws::String& GetServerName() const{ return m_serverName; }
88 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
89 inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
90 inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
91 inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
92 inline CreateRelayRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
93 inline CreateRelayRequest& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
94 inline CreateRelayRequest& WithServerName(const char* value) { SetServerName(value); return *this;}
96
98
101 inline int GetServerPort() const{ return m_serverPort; }
102 inline bool ServerPortHasBeenSet() const { return m_serverPortHasBeenSet; }
103 inline void SetServerPort(int value) { m_serverPortHasBeenSet = true; m_serverPort = value; }
104 inline CreateRelayRequest& WithServerPort(int value) { SetServerPort(value); return *this;}
106
108
112 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
115 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
116 inline CreateRelayRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
117 inline CreateRelayRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
118 inline CreateRelayRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
119 inline CreateRelayRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
121 private:
122
123 RelayAuthentication m_authentication;
124 bool m_authenticationHasBeenSet = false;
125
126 Aws::String m_clientToken;
127 bool m_clientTokenHasBeenSet = false;
128
129 Aws::String m_relayName;
130 bool m_relayNameHasBeenSet = false;
131
132 Aws::String m_serverName;
133 bool m_serverNameHasBeenSet = false;
134
135 int m_serverPort;
136 bool m_serverPortHasBeenSet = false;
137
138 Aws::Vector<Tag> m_tags;
139 bool m_tagsHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace MailManager
144} // namespace Aws
CreateRelayRequest & WithTags(Aws::Vector< Tag > &&value)
CreateRelayRequest & WithRelayName(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
const RelayAuthentication & GetAuthentication() const
virtual const char * GetServiceRequestName() const override
CreateRelayRequest & WithAuthentication(const RelayAuthentication &value)
void SetClientToken(const Aws::String &value)
CreateRelayRequest & WithServerName(Aws::String &&value)
CreateRelayRequest & WithAuthentication(RelayAuthentication &&value)
void SetAuthentication(const RelayAuthentication &value)
CreateRelayRequest & WithClientToken(const char *value)
CreateRelayRequest & WithRelayName(Aws::String &&value)
CreateRelayRequest & WithClientToken(const Aws::String &value)
CreateRelayRequest & AddTags(const Tag &value)
CreateRelayRequest & WithClientToken(Aws::String &&value)
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetAuthentication(RelayAuthentication &&value)
void SetTags(Aws::Vector< Tag > &&value)
CreateRelayRequest & WithServerName(const Aws::String &value)
CreateRelayRequest & WithServerPort(int value)
void SetTags(const Aws::Vector< Tag > &value)
CreateRelayRequest & WithTags(const Aws::Vector< Tag > &value)
void SetServerName(const Aws::String &value)
CreateRelayRequest & WithRelayName(const char *value)
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
CreateRelayRequest & WithServerName(const char *value)
CreateRelayRequest & AddTags(Tag &&value)
void SetRelayName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector