AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateConnectorRequest.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/TransferRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/awstransfer/model/As2ConnectorConfig.h>
11#include <aws/awstransfer/model/SftpConnectorConfig.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Transfer
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_TRANSFER_API UpdateConnectorRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateConnector"; }
33
34 AWS_TRANSFER_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetConnectorId() const{ return m_connectorId; }
44 inline bool ConnectorIdHasBeenSet() const { return m_connectorIdHasBeenSet; }
45 inline void SetConnectorId(const Aws::String& value) { m_connectorIdHasBeenSet = true; m_connectorId = value; }
46 inline void SetConnectorId(Aws::String&& value) { m_connectorIdHasBeenSet = true; m_connectorId = std::move(value); }
47 inline void SetConnectorId(const char* value) { m_connectorIdHasBeenSet = true; m_connectorId.assign(value); }
48 inline UpdateConnectorRequest& WithConnectorId(const Aws::String& value) { SetConnectorId(value); return *this;}
49 inline UpdateConnectorRequest& WithConnectorId(Aws::String&& value) { SetConnectorId(std::move(value)); return *this;}
50 inline UpdateConnectorRequest& WithConnectorId(const char* value) { SetConnectorId(value); return *this;}
52
54
57 inline const Aws::String& GetUrl() const{ return m_url; }
58 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
59 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
60 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
61 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
62 inline UpdateConnectorRequest& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
63 inline UpdateConnectorRequest& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
64 inline UpdateConnectorRequest& WithUrl(const char* value) { SetUrl(value); return *this;}
66
68
71 inline const As2ConnectorConfig& GetAs2Config() const{ return m_as2Config; }
72 inline bool As2ConfigHasBeenSet() const { return m_as2ConfigHasBeenSet; }
73 inline void SetAs2Config(const As2ConnectorConfig& value) { m_as2ConfigHasBeenSet = true; m_as2Config = value; }
74 inline void SetAs2Config(As2ConnectorConfig&& value) { m_as2ConfigHasBeenSet = true; m_as2Config = std::move(value); }
75 inline UpdateConnectorRequest& WithAs2Config(const As2ConnectorConfig& value) { SetAs2Config(value); return *this;}
76 inline UpdateConnectorRequest& WithAs2Config(As2ConnectorConfig&& value) { SetAs2Config(std::move(value)); return *this;}
78
80
106 inline const Aws::String& GetAccessRole() const{ return m_accessRole; }
107 inline bool AccessRoleHasBeenSet() const { return m_accessRoleHasBeenSet; }
108 inline void SetAccessRole(const Aws::String& value) { m_accessRoleHasBeenSet = true; m_accessRole = value; }
109 inline void SetAccessRole(Aws::String&& value) { m_accessRoleHasBeenSet = true; m_accessRole = std::move(value); }
110 inline void SetAccessRole(const char* value) { m_accessRoleHasBeenSet = true; m_accessRole.assign(value); }
111 inline UpdateConnectorRequest& WithAccessRole(const Aws::String& value) { SetAccessRole(value); return *this;}
112 inline UpdateConnectorRequest& WithAccessRole(Aws::String&& value) { SetAccessRole(std::move(value)); return *this;}
113 inline UpdateConnectorRequest& WithAccessRole(const char* value) { SetAccessRole(value); return *this;}
115
117
122 inline const Aws::String& GetLoggingRole() const{ return m_loggingRole; }
123 inline bool LoggingRoleHasBeenSet() const { return m_loggingRoleHasBeenSet; }
124 inline void SetLoggingRole(const Aws::String& value) { m_loggingRoleHasBeenSet = true; m_loggingRole = value; }
125 inline void SetLoggingRole(Aws::String&& value) { m_loggingRoleHasBeenSet = true; m_loggingRole = std::move(value); }
126 inline void SetLoggingRole(const char* value) { m_loggingRoleHasBeenSet = true; m_loggingRole.assign(value); }
127 inline UpdateConnectorRequest& WithLoggingRole(const Aws::String& value) { SetLoggingRole(value); return *this;}
128 inline UpdateConnectorRequest& WithLoggingRole(Aws::String&& value) { SetLoggingRole(std::move(value)); return *this;}
129 inline UpdateConnectorRequest& WithLoggingRole(const char* value) { SetLoggingRole(value); return *this;}
131
133
136 inline const SftpConnectorConfig& GetSftpConfig() const{ return m_sftpConfig; }
137 inline bool SftpConfigHasBeenSet() const { return m_sftpConfigHasBeenSet; }
138 inline void SetSftpConfig(const SftpConnectorConfig& value) { m_sftpConfigHasBeenSet = true; m_sftpConfig = value; }
139 inline void SetSftpConfig(SftpConnectorConfig&& value) { m_sftpConfigHasBeenSet = true; m_sftpConfig = std::move(value); }
140 inline UpdateConnectorRequest& WithSftpConfig(const SftpConnectorConfig& value) { SetSftpConfig(value); return *this;}
141 inline UpdateConnectorRequest& WithSftpConfig(SftpConnectorConfig&& value) { SetSftpConfig(std::move(value)); return *this;}
143
145
148 inline const Aws::String& GetSecurityPolicyName() const{ return m_securityPolicyName; }
149 inline bool SecurityPolicyNameHasBeenSet() const { return m_securityPolicyNameHasBeenSet; }
150 inline void SetSecurityPolicyName(const Aws::String& value) { m_securityPolicyNameHasBeenSet = true; m_securityPolicyName = value; }
151 inline void SetSecurityPolicyName(Aws::String&& value) { m_securityPolicyNameHasBeenSet = true; m_securityPolicyName = std::move(value); }
152 inline void SetSecurityPolicyName(const char* value) { m_securityPolicyNameHasBeenSet = true; m_securityPolicyName.assign(value); }
154 inline UpdateConnectorRequest& WithSecurityPolicyName(Aws::String&& value) { SetSecurityPolicyName(std::move(value)); return *this;}
155 inline UpdateConnectorRequest& WithSecurityPolicyName(const char* value) { SetSecurityPolicyName(value); return *this;}
157 private:
158
159 Aws::String m_connectorId;
160 bool m_connectorIdHasBeenSet = false;
161
162 Aws::String m_url;
163 bool m_urlHasBeenSet = false;
164
165 As2ConnectorConfig m_as2Config;
166 bool m_as2ConfigHasBeenSet = false;
167
168 Aws::String m_accessRole;
169 bool m_accessRoleHasBeenSet = false;
170
171 Aws::String m_loggingRole;
172 bool m_loggingRoleHasBeenSet = false;
173
174 SftpConnectorConfig m_sftpConfig;
175 bool m_sftpConfigHasBeenSet = false;
176
177 Aws::String m_securityPolicyName;
178 bool m_securityPolicyNameHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace Transfer
183} // namespace Aws
UpdateConnectorRequest & WithConnectorId(Aws::String &&value)
UpdateConnectorRequest & WithAs2Config(const As2ConnectorConfig &value)
UpdateConnectorRequest & WithUrl(const char *value)
UpdateConnectorRequest & WithSftpConfig(SftpConnectorConfig &&value)
const As2ConnectorConfig & GetAs2Config() const
UpdateConnectorRequest & WithSftpConfig(const SftpConnectorConfig &value)
UpdateConnectorRequest & WithLoggingRole(Aws::String &&value)
UpdateConnectorRequest & WithAs2Config(As2ConnectorConfig &&value)
UpdateConnectorRequest & WithLoggingRole(const Aws::String &value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
UpdateConnectorRequest & WithSecurityPolicyName(const char *value)
UpdateConnectorRequest & WithUrl(const Aws::String &value)
void SetSftpConfig(const SftpConnectorConfig &value)
UpdateConnectorRequest & WithSecurityPolicyName(Aws::String &&value)
UpdateConnectorRequest & WithConnectorId(const Aws::String &value)
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateConnectorRequest & WithAccessRole(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateConnectorRequest & WithUrl(Aws::String &&value)
UpdateConnectorRequest & WithConnectorId(const char *value)
UpdateConnectorRequest & WithLoggingRole(const char *value)
UpdateConnectorRequest & WithSecurityPolicyName(const Aws::String &value)
void SetAs2Config(const As2ConnectorConfig &value)
const SftpConnectorConfig & GetSftpConfig() const
UpdateConnectorRequest & WithAccessRole(const char *value)
UpdateConnectorRequest & WithAccessRole(const Aws::String &value)
void SetSftpConfig(SftpConnectorConfig &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String