AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateServerRequest.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/ProtocolDetails.h>
11#include <aws/awstransfer/model/EndpointDetails.h>
12#include <aws/awstransfer/model/EndpointType.h>
13#include <aws/awstransfer/model/IdentityProviderDetails.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/awstransfer/model/WorkflowDetails.h>
16#include <aws/awstransfer/model/S3StorageOptions.h>
17#include <aws/awstransfer/model/IpAddressType.h>
18#include <aws/awstransfer/model/Protocol.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Transfer
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_TRANSFER_API UpdateServerRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "UpdateServer"; }
40
41 AWS_TRANSFER_API Aws::String SerializePayload() const override;
42
44
45
47
69 inline const Aws::String& GetCertificate() const { return m_certificate; }
70 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
71 template<typename CertificateT = Aws::String>
72 void SetCertificate(CertificateT&& value) { m_certificateHasBeenSet = true; m_certificate = std::forward<CertificateT>(value); }
73 template<typename CertificateT = Aws::String>
74 UpdateServerRequest& WithCertificate(CertificateT&& value) { SetCertificate(std::forward<CertificateT>(value)); return *this;}
76
78
97 inline const ProtocolDetails& GetProtocolDetails() const { return m_protocolDetails; }
98 inline bool ProtocolDetailsHasBeenSet() const { return m_protocolDetailsHasBeenSet; }
99 template<typename ProtocolDetailsT = ProtocolDetails>
100 void SetProtocolDetails(ProtocolDetailsT&& value) { m_protocolDetailsHasBeenSet = true; m_protocolDetails = std::forward<ProtocolDetailsT>(value); }
101 template<typename ProtocolDetailsT = ProtocolDetails>
102 UpdateServerRequest& WithProtocolDetails(ProtocolDetailsT&& value) { SetProtocolDetails(std::forward<ProtocolDetailsT>(value)); return *this;}
104
106
114 inline const EndpointDetails& GetEndpointDetails() const { return m_endpointDetails; }
115 inline bool EndpointDetailsHasBeenSet() const { return m_endpointDetailsHasBeenSet; }
116 template<typename EndpointDetailsT = EndpointDetails>
117 void SetEndpointDetails(EndpointDetailsT&& value) { m_endpointDetailsHasBeenSet = true; m_endpointDetails = std::forward<EndpointDetailsT>(value); }
118 template<typename EndpointDetailsT = EndpointDetails>
119 UpdateServerRequest& WithEndpointDetails(EndpointDetailsT&& value) { SetEndpointDetails(std::forward<EndpointDetailsT>(value)); return *this;}
121
123
144 inline EndpointType GetEndpointType() const { return m_endpointType; }
145 inline bool EndpointTypeHasBeenSet() const { return m_endpointTypeHasBeenSet; }
146 inline void SetEndpointType(EndpointType value) { m_endpointTypeHasBeenSet = true; m_endpointType = value; }
147 inline UpdateServerRequest& WithEndpointType(EndpointType value) { SetEndpointType(value); return *this;}
149
151
172 inline const Aws::String& GetHostKey() const { return m_hostKey; }
173 inline bool HostKeyHasBeenSet() const { return m_hostKeyHasBeenSet; }
174 template<typename HostKeyT = Aws::String>
175 void SetHostKey(HostKeyT&& value) { m_hostKeyHasBeenSet = true; m_hostKey = std::forward<HostKeyT>(value); }
176 template<typename HostKeyT = Aws::String>
177 UpdateServerRequest& WithHostKey(HostKeyT&& value) { SetHostKey(std::forward<HostKeyT>(value)); return *this;}
179
181
185 inline const IdentityProviderDetails& GetIdentityProviderDetails() const { return m_identityProviderDetails; }
186 inline bool IdentityProviderDetailsHasBeenSet() const { return m_identityProviderDetailsHasBeenSet; }
187 template<typename IdentityProviderDetailsT = IdentityProviderDetails>
188 void SetIdentityProviderDetails(IdentityProviderDetailsT&& value) { m_identityProviderDetailsHasBeenSet = true; m_identityProviderDetails = std::forward<IdentityProviderDetailsT>(value); }
189 template<typename IdentityProviderDetailsT = IdentityProviderDetails>
190 UpdateServerRequest& WithIdentityProviderDetails(IdentityProviderDetailsT&& value) { SetIdentityProviderDetails(std::forward<IdentityProviderDetailsT>(value)); return *this;}
192
194
200 inline const Aws::String& GetLoggingRole() const { return m_loggingRole; }
201 inline bool LoggingRoleHasBeenSet() const { return m_loggingRoleHasBeenSet; }
202 template<typename LoggingRoleT = Aws::String>
203 void SetLoggingRole(LoggingRoleT&& value) { m_loggingRoleHasBeenSet = true; m_loggingRole = std::forward<LoggingRoleT>(value); }
204 template<typename LoggingRoleT = Aws::String>
205 UpdateServerRequest& WithLoggingRole(LoggingRoleT&& value) { SetLoggingRole(std::forward<LoggingRoleT>(value)); return *this;}
207
209
214 inline const Aws::String& GetPostAuthenticationLoginBanner() const { return m_postAuthenticationLoginBanner; }
215 inline bool PostAuthenticationLoginBannerHasBeenSet() const { return m_postAuthenticationLoginBannerHasBeenSet; }
216 template<typename PostAuthenticationLoginBannerT = Aws::String>
217 void SetPostAuthenticationLoginBanner(PostAuthenticationLoginBannerT&& value) { m_postAuthenticationLoginBannerHasBeenSet = true; m_postAuthenticationLoginBanner = std::forward<PostAuthenticationLoginBannerT>(value); }
218 template<typename PostAuthenticationLoginBannerT = Aws::String>
219 UpdateServerRequest& WithPostAuthenticationLoginBanner(PostAuthenticationLoginBannerT&& value) { SetPostAuthenticationLoginBanner(std::forward<PostAuthenticationLoginBannerT>(value)); return *this;}
221
223
232 inline const Aws::String& GetPreAuthenticationLoginBanner() const { return m_preAuthenticationLoginBanner; }
233 inline bool PreAuthenticationLoginBannerHasBeenSet() const { return m_preAuthenticationLoginBannerHasBeenSet; }
234 template<typename PreAuthenticationLoginBannerT = Aws::String>
235 void SetPreAuthenticationLoginBanner(PreAuthenticationLoginBannerT&& value) { m_preAuthenticationLoginBannerHasBeenSet = true; m_preAuthenticationLoginBanner = std::forward<PreAuthenticationLoginBannerT>(value); }
236 template<typename PreAuthenticationLoginBannerT = Aws::String>
237 UpdateServerRequest& WithPreAuthenticationLoginBanner(PreAuthenticationLoginBannerT&& value) { SetPreAuthenticationLoginBanner(std::forward<PreAuthenticationLoginBannerT>(value)); return *this;}
239
241
268 inline const Aws::Vector<Protocol>& GetProtocols() const { return m_protocols; }
269 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
270 template<typename ProtocolsT = Aws::Vector<Protocol>>
271 void SetProtocols(ProtocolsT&& value) { m_protocolsHasBeenSet = true; m_protocols = std::forward<ProtocolsT>(value); }
272 template<typename ProtocolsT = Aws::Vector<Protocol>>
273 UpdateServerRequest& WithProtocols(ProtocolsT&& value) { SetProtocols(std::forward<ProtocolsT>(value)); return *this;}
274 inline UpdateServerRequest& AddProtocols(Protocol value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
276
278
281 inline const Aws::String& GetSecurityPolicyName() const { return m_securityPolicyName; }
282 inline bool SecurityPolicyNameHasBeenSet() const { return m_securityPolicyNameHasBeenSet; }
283 template<typename SecurityPolicyNameT = Aws::String>
284 void SetSecurityPolicyName(SecurityPolicyNameT&& value) { m_securityPolicyNameHasBeenSet = true; m_securityPolicyName = std::forward<SecurityPolicyNameT>(value); }
285 template<typename SecurityPolicyNameT = Aws::String>
286 UpdateServerRequest& WithSecurityPolicyName(SecurityPolicyNameT&& value) { SetSecurityPolicyName(std::forward<SecurityPolicyNameT>(value)); return *this;}
288
290
294 inline const Aws::String& GetServerId() const { return m_serverId; }
295 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
296 template<typename ServerIdT = Aws::String>
297 void SetServerId(ServerIdT&& value) { m_serverIdHasBeenSet = true; m_serverId = std::forward<ServerIdT>(value); }
298 template<typename ServerIdT = Aws::String>
299 UpdateServerRequest& WithServerId(ServerIdT&& value) { SetServerId(std::forward<ServerIdT>(value)); return *this;}
301
303
314 inline const WorkflowDetails& GetWorkflowDetails() const { return m_workflowDetails; }
315 inline bool WorkflowDetailsHasBeenSet() const { return m_workflowDetailsHasBeenSet; }
316 template<typename WorkflowDetailsT = WorkflowDetails>
317 void SetWorkflowDetails(WorkflowDetailsT&& value) { m_workflowDetailsHasBeenSet = true; m_workflowDetails = std::forward<WorkflowDetailsT>(value); }
318 template<typename WorkflowDetailsT = WorkflowDetails>
319 UpdateServerRequest& WithWorkflowDetails(WorkflowDetailsT&& value) { SetWorkflowDetails(std::forward<WorkflowDetailsT>(value)); return *this;}
321
323
336 inline const Aws::Vector<Aws::String>& GetStructuredLogDestinations() const { return m_structuredLogDestinations; }
337 inline bool StructuredLogDestinationsHasBeenSet() const { return m_structuredLogDestinationsHasBeenSet; }
338 template<typename StructuredLogDestinationsT = Aws::Vector<Aws::String>>
339 void SetStructuredLogDestinations(StructuredLogDestinationsT&& value) { m_structuredLogDestinationsHasBeenSet = true; m_structuredLogDestinations = std::forward<StructuredLogDestinationsT>(value); }
340 template<typename StructuredLogDestinationsT = Aws::Vector<Aws::String>>
341 UpdateServerRequest& WithStructuredLogDestinations(StructuredLogDestinationsT&& value) { SetStructuredLogDestinations(std::forward<StructuredLogDestinationsT>(value)); return *this;}
342 template<typename StructuredLogDestinationsT = Aws::String>
343 UpdateServerRequest& AddStructuredLogDestinations(StructuredLogDestinationsT&& value) { m_structuredLogDestinationsHasBeenSet = true; m_structuredLogDestinations.emplace_back(std::forward<StructuredLogDestinationsT>(value)); return *this; }
345
347
355 inline const S3StorageOptions& GetS3StorageOptions() const { return m_s3StorageOptions; }
356 inline bool S3StorageOptionsHasBeenSet() const { return m_s3StorageOptionsHasBeenSet; }
357 template<typename S3StorageOptionsT = S3StorageOptions>
358 void SetS3StorageOptions(S3StorageOptionsT&& value) { m_s3StorageOptionsHasBeenSet = true; m_s3StorageOptions = std::forward<S3StorageOptionsT>(value); }
359 template<typename S3StorageOptionsT = S3StorageOptions>
360 UpdateServerRequest& WithS3StorageOptions(S3StorageOptionsT&& value) { SetS3StorageOptions(std::forward<S3StorageOptionsT>(value)); return *this;}
362
364
377 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
378 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
379 inline void SetIpAddressType(IpAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
382 private:
383
384 Aws::String m_certificate;
385 bool m_certificateHasBeenSet = false;
386
387 ProtocolDetails m_protocolDetails;
388 bool m_protocolDetailsHasBeenSet = false;
389
390 EndpointDetails m_endpointDetails;
391 bool m_endpointDetailsHasBeenSet = false;
392
393 EndpointType m_endpointType{EndpointType::NOT_SET};
394 bool m_endpointTypeHasBeenSet = false;
395
396 Aws::String m_hostKey;
397 bool m_hostKeyHasBeenSet = false;
398
399 IdentityProviderDetails m_identityProviderDetails;
400 bool m_identityProviderDetailsHasBeenSet = false;
401
402 Aws::String m_loggingRole;
403 bool m_loggingRoleHasBeenSet = false;
404
405 Aws::String m_postAuthenticationLoginBanner;
406 bool m_postAuthenticationLoginBannerHasBeenSet = false;
407
408 Aws::String m_preAuthenticationLoginBanner;
409 bool m_preAuthenticationLoginBannerHasBeenSet = false;
410
411 Aws::Vector<Protocol> m_protocols;
412 bool m_protocolsHasBeenSet = false;
413
414 Aws::String m_securityPolicyName;
415 bool m_securityPolicyNameHasBeenSet = false;
416
417 Aws::String m_serverId;
418 bool m_serverIdHasBeenSet = false;
419
420 WorkflowDetails m_workflowDetails;
421 bool m_workflowDetailsHasBeenSet = false;
422
423 Aws::Vector<Aws::String> m_structuredLogDestinations;
424 bool m_structuredLogDestinationsHasBeenSet = false;
425
426 S3StorageOptions m_s3StorageOptions;
427 bool m_s3StorageOptionsHasBeenSet = false;
428
429 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
430 bool m_ipAddressTypeHasBeenSet = false;
431 };
432
433} // namespace Model
434} // namespace Transfer
435} // namespace Aws
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Protocol > & GetProtocols() const
void SetPostAuthenticationLoginBanner(PostAuthenticationLoginBannerT &&value)
UpdateServerRequest & WithProtocols(ProtocolsT &&value)
const Aws::Vector< Aws::String > & GetStructuredLogDestinations() const
UpdateServerRequest & AddProtocols(Protocol value)
const Aws::String & GetPreAuthenticationLoginBanner() const
UpdateServerRequest & WithServerId(ServerIdT &&value)
void SetEndpointDetails(EndpointDetailsT &&value)
void SetStructuredLogDestinations(StructuredLogDestinationsT &&value)
const ProtocolDetails & GetProtocolDetails() const
void SetPreAuthenticationLoginBanner(PreAuthenticationLoginBannerT &&value)
UpdateServerRequest & WithSecurityPolicyName(SecurityPolicyNameT &&value)
void SetS3StorageOptions(S3StorageOptionsT &&value)
UpdateServerRequest & AddStructuredLogDestinations(StructuredLogDestinationsT &&value)
const Aws::String & GetPostAuthenticationLoginBanner() const
UpdateServerRequest & WithIpAddressType(IpAddressType value)
void SetIdentityProviderDetails(IdentityProviderDetailsT &&value)
AWS_TRANSFER_API UpdateServerRequest()=default
UpdateServerRequest & WithS3StorageOptions(S3StorageOptionsT &&value)
const WorkflowDetails & GetWorkflowDetails() const
UpdateServerRequest & WithPostAuthenticationLoginBanner(PostAuthenticationLoginBannerT &&value)
const Aws::String & GetSecurityPolicyName() const
virtual const char * GetServiceRequestName() const override
const S3StorageOptions & GetS3StorageOptions() const
void SetSecurityPolicyName(SecurityPolicyNameT &&value)
UpdateServerRequest & WithCertificate(CertificateT &&value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
UpdateServerRequest & WithLoggingRole(LoggingRoleT &&value)
UpdateServerRequest & WithWorkflowDetails(WorkflowDetailsT &&value)
void SetProtocolDetails(ProtocolDetailsT &&value)
UpdateServerRequest & WithIdentityProviderDetails(IdentityProviderDetailsT &&value)
UpdateServerRequest & WithEndpointDetails(EndpointDetailsT &&value)
UpdateServerRequest & WithProtocolDetails(ProtocolDetailsT &&value)
UpdateServerRequest & WithHostKey(HostKeyT &&value)
UpdateServerRequest & WithEndpointType(EndpointType value)
const IdentityProviderDetails & GetIdentityProviderDetails() const
void SetWorkflowDetails(WorkflowDetailsT &&value)
UpdateServerRequest & WithPreAuthenticationLoginBanner(PreAuthenticationLoginBannerT &&value)
const EndpointDetails & GetEndpointDetails() const
UpdateServerRequest & WithStructuredLogDestinations(StructuredLogDestinationsT &&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