AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateServerRequest.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/Domain.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/awstransfer/model/IdentityProviderType.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/awstransfer/model/ProtocolDetails.h>
17#include <aws/awstransfer/model/WorkflowDetails.h>
18#include <aws/awstransfer/model/S3StorageOptions.h>
19#include <aws/awstransfer/model/IpAddressType.h>
20#include <aws/awstransfer/model/Protocol.h>
21#include <aws/awstransfer/model/Tag.h>
22#include <utility>
23
24namespace Aws
25{
26namespace Transfer
27{
28namespace Model
29{
30
34 {
35 public:
36 AWS_TRANSFER_API CreateServerRequest() = default;
37
38 // Service request name is the Operation name which will send this request out,
39 // each operation should has unique request name, so that we can get operation's name from this request.
40 // Note: this is not true for response, multiple operations may have the same response name,
41 // so we can not get operation's name from response.
42 inline virtual const char* GetServiceRequestName() const override { return "CreateServer"; }
43
44 AWS_TRANSFER_API Aws::String SerializePayload() const override;
45
47
48
50
72 inline const Aws::String& GetCertificate() const { return m_certificate; }
73 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
74 template<typename CertificateT = Aws::String>
75 void SetCertificate(CertificateT&& value) { m_certificateHasBeenSet = true; m_certificate = std::forward<CertificateT>(value); }
76 template<typename CertificateT = Aws::String>
77 CreateServerRequest& WithCertificate(CertificateT&& value) { SetCertificate(std::forward<CertificateT>(value)); return *this;}
79
81
87 inline Domain GetDomain() const { return m_domain; }
88 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
89 inline void SetDomain(Domain value) { m_domainHasBeenSet = true; m_domain = value; }
90 inline CreateServerRequest& WithDomain(Domain value) { SetDomain(value); return *this;}
92
94
102 inline const EndpointDetails& GetEndpointDetails() const { return m_endpointDetails; }
103 inline bool EndpointDetailsHasBeenSet() const { return m_endpointDetailsHasBeenSet; }
104 template<typename EndpointDetailsT = EndpointDetails>
105 void SetEndpointDetails(EndpointDetailsT&& value) { m_endpointDetailsHasBeenSet = true; m_endpointDetails = std::forward<EndpointDetailsT>(value); }
106 template<typename EndpointDetailsT = EndpointDetails>
107 CreateServerRequest& WithEndpointDetails(EndpointDetailsT&& value) { SetEndpointDetails(std::forward<EndpointDetailsT>(value)); return *this;}
109
111
132 inline EndpointType GetEndpointType() const { return m_endpointType; }
133 inline bool EndpointTypeHasBeenSet() const { return m_endpointTypeHasBeenSet; }
134 inline void SetEndpointType(EndpointType value) { m_endpointTypeHasBeenSet = true; m_endpointType = value; }
135 inline CreateServerRequest& WithEndpointType(EndpointType value) { SetEndpointType(value); return *this;}
137
139
160 inline const Aws::String& GetHostKey() const { return m_hostKey; }
161 inline bool HostKeyHasBeenSet() const { return m_hostKeyHasBeenSet; }
162 template<typename HostKeyT = Aws::String>
163 void SetHostKey(HostKeyT&& value) { m_hostKeyHasBeenSet = true; m_hostKey = std::forward<HostKeyT>(value); }
164 template<typename HostKeyT = Aws::String>
165 CreateServerRequest& WithHostKey(HostKeyT&& value) { SetHostKey(std::forward<HostKeyT>(value)); return *this;}
167
169
178 inline const IdentityProviderDetails& GetIdentityProviderDetails() const { return m_identityProviderDetails; }
179 inline bool IdentityProviderDetailsHasBeenSet() const { return m_identityProviderDetailsHasBeenSet; }
180 template<typename IdentityProviderDetailsT = IdentityProviderDetails>
181 void SetIdentityProviderDetails(IdentityProviderDetailsT&& value) { m_identityProviderDetailsHasBeenSet = true; m_identityProviderDetails = std::forward<IdentityProviderDetailsT>(value); }
182 template<typename IdentityProviderDetailsT = IdentityProviderDetails>
183 CreateServerRequest& WithIdentityProviderDetails(IdentityProviderDetailsT&& value) { SetIdentityProviderDetails(std::forward<IdentityProviderDetailsT>(value)); return *this;}
185
187
205 inline IdentityProviderType GetIdentityProviderType() const { return m_identityProviderType; }
206 inline bool IdentityProviderTypeHasBeenSet() const { return m_identityProviderTypeHasBeenSet; }
207 inline void SetIdentityProviderType(IdentityProviderType value) { m_identityProviderTypeHasBeenSet = true; m_identityProviderType = value; }
210
212
218 inline const Aws::String& GetLoggingRole() const { return m_loggingRole; }
219 inline bool LoggingRoleHasBeenSet() const { return m_loggingRoleHasBeenSet; }
220 template<typename LoggingRoleT = Aws::String>
221 void SetLoggingRole(LoggingRoleT&& value) { m_loggingRoleHasBeenSet = true; m_loggingRole = std::forward<LoggingRoleT>(value); }
222 template<typename LoggingRoleT = Aws::String>
223 CreateServerRequest& WithLoggingRole(LoggingRoleT&& value) { SetLoggingRole(std::forward<LoggingRoleT>(value)); return *this;}
225
227
232 inline const Aws::String& GetPostAuthenticationLoginBanner() const { return m_postAuthenticationLoginBanner; }
233 inline bool PostAuthenticationLoginBannerHasBeenSet() const { return m_postAuthenticationLoginBannerHasBeenSet; }
234 template<typename PostAuthenticationLoginBannerT = Aws::String>
235 void SetPostAuthenticationLoginBanner(PostAuthenticationLoginBannerT&& value) { m_postAuthenticationLoginBannerHasBeenSet = true; m_postAuthenticationLoginBanner = std::forward<PostAuthenticationLoginBannerT>(value); }
236 template<typename PostAuthenticationLoginBannerT = Aws::String>
237 CreateServerRequest& WithPostAuthenticationLoginBanner(PostAuthenticationLoginBannerT&& value) { SetPostAuthenticationLoginBanner(std::forward<PostAuthenticationLoginBannerT>(value)); return *this;}
239
241
250 inline const Aws::String& GetPreAuthenticationLoginBanner() const { return m_preAuthenticationLoginBanner; }
251 inline bool PreAuthenticationLoginBannerHasBeenSet() const { return m_preAuthenticationLoginBannerHasBeenSet; }
252 template<typename PreAuthenticationLoginBannerT = Aws::String>
253 void SetPreAuthenticationLoginBanner(PreAuthenticationLoginBannerT&& value) { m_preAuthenticationLoginBannerHasBeenSet = true; m_preAuthenticationLoginBanner = std::forward<PreAuthenticationLoginBannerT>(value); }
254 template<typename PreAuthenticationLoginBannerT = Aws::String>
255 CreateServerRequest& WithPreAuthenticationLoginBanner(PreAuthenticationLoginBannerT&& value) { SetPreAuthenticationLoginBanner(std::forward<PreAuthenticationLoginBannerT>(value)); return *this;}
257
259
286 inline const Aws::Vector<Protocol>& GetProtocols() const { return m_protocols; }
287 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
288 template<typename ProtocolsT = Aws::Vector<Protocol>>
289 void SetProtocols(ProtocolsT&& value) { m_protocolsHasBeenSet = true; m_protocols = std::forward<ProtocolsT>(value); }
290 template<typename ProtocolsT = Aws::Vector<Protocol>>
291 CreateServerRequest& WithProtocols(ProtocolsT&& value) { SetProtocols(std::forward<ProtocolsT>(value)); return *this;}
292 inline CreateServerRequest& AddProtocols(Protocol value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
294
296
315 inline const ProtocolDetails& GetProtocolDetails() const { return m_protocolDetails; }
316 inline bool ProtocolDetailsHasBeenSet() const { return m_protocolDetailsHasBeenSet; }
317 template<typename ProtocolDetailsT = ProtocolDetails>
318 void SetProtocolDetails(ProtocolDetailsT&& value) { m_protocolDetailsHasBeenSet = true; m_protocolDetails = std::forward<ProtocolDetailsT>(value); }
319 template<typename ProtocolDetailsT = ProtocolDetails>
320 CreateServerRequest& WithProtocolDetails(ProtocolDetailsT&& value) { SetProtocolDetails(std::forward<ProtocolDetailsT>(value)); return *this;}
322
324
327 inline const Aws::String& GetSecurityPolicyName() const { return m_securityPolicyName; }
328 inline bool SecurityPolicyNameHasBeenSet() const { return m_securityPolicyNameHasBeenSet; }
329 template<typename SecurityPolicyNameT = Aws::String>
330 void SetSecurityPolicyName(SecurityPolicyNameT&& value) { m_securityPolicyNameHasBeenSet = true; m_securityPolicyName = std::forward<SecurityPolicyNameT>(value); }
331 template<typename SecurityPolicyNameT = Aws::String>
332 CreateServerRequest& WithSecurityPolicyName(SecurityPolicyNameT&& value) { SetSecurityPolicyName(std::forward<SecurityPolicyNameT>(value)); return *this;}
334
336
339 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
340 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
341 template<typename TagsT = Aws::Vector<Tag>>
342 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
343 template<typename TagsT = Aws::Vector<Tag>>
344 CreateServerRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
345 template<typename TagsT = Tag>
346 CreateServerRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
348
350
358 inline const WorkflowDetails& GetWorkflowDetails() const { return m_workflowDetails; }
359 inline bool WorkflowDetailsHasBeenSet() const { return m_workflowDetailsHasBeenSet; }
360 template<typename WorkflowDetailsT = WorkflowDetails>
361 void SetWorkflowDetails(WorkflowDetailsT&& value) { m_workflowDetailsHasBeenSet = true; m_workflowDetails = std::forward<WorkflowDetailsT>(value); }
362 template<typename WorkflowDetailsT = WorkflowDetails>
363 CreateServerRequest& WithWorkflowDetails(WorkflowDetailsT&& value) { SetWorkflowDetails(std::forward<WorkflowDetailsT>(value)); return *this;}
365
367
380 inline const Aws::Vector<Aws::String>& GetStructuredLogDestinations() const { return m_structuredLogDestinations; }
381 inline bool StructuredLogDestinationsHasBeenSet() const { return m_structuredLogDestinationsHasBeenSet; }
382 template<typename StructuredLogDestinationsT = Aws::Vector<Aws::String>>
383 void SetStructuredLogDestinations(StructuredLogDestinationsT&& value) { m_structuredLogDestinationsHasBeenSet = true; m_structuredLogDestinations = std::forward<StructuredLogDestinationsT>(value); }
384 template<typename StructuredLogDestinationsT = Aws::Vector<Aws::String>>
385 CreateServerRequest& WithStructuredLogDestinations(StructuredLogDestinationsT&& value) { SetStructuredLogDestinations(std::forward<StructuredLogDestinationsT>(value)); return *this;}
386 template<typename StructuredLogDestinationsT = Aws::String>
387 CreateServerRequest& AddStructuredLogDestinations(StructuredLogDestinationsT&& value) { m_structuredLogDestinationsHasBeenSet = true; m_structuredLogDestinations.emplace_back(std::forward<StructuredLogDestinationsT>(value)); return *this; }
389
391
399 inline const S3StorageOptions& GetS3StorageOptions() const { return m_s3StorageOptions; }
400 inline bool S3StorageOptionsHasBeenSet() const { return m_s3StorageOptionsHasBeenSet; }
401 template<typename S3StorageOptionsT = S3StorageOptions>
402 void SetS3StorageOptions(S3StorageOptionsT&& value) { m_s3StorageOptionsHasBeenSet = true; m_s3StorageOptions = std::forward<S3StorageOptionsT>(value); }
403 template<typename S3StorageOptionsT = S3StorageOptions>
404 CreateServerRequest& WithS3StorageOptions(S3StorageOptionsT&& value) { SetS3StorageOptions(std::forward<S3StorageOptionsT>(value)); return *this;}
406
408
421 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
422 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
423 inline void SetIpAddressType(IpAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
426 private:
427
428 Aws::String m_certificate;
429 bool m_certificateHasBeenSet = false;
430
431 Domain m_domain{Domain::NOT_SET};
432 bool m_domainHasBeenSet = false;
433
434 EndpointDetails m_endpointDetails;
435 bool m_endpointDetailsHasBeenSet = false;
436
437 EndpointType m_endpointType{EndpointType::NOT_SET};
438 bool m_endpointTypeHasBeenSet = false;
439
440 Aws::String m_hostKey;
441 bool m_hostKeyHasBeenSet = false;
442
443 IdentityProviderDetails m_identityProviderDetails;
444 bool m_identityProviderDetailsHasBeenSet = false;
445
447 bool m_identityProviderTypeHasBeenSet = false;
448
449 Aws::String m_loggingRole;
450 bool m_loggingRoleHasBeenSet = false;
451
452 Aws::String m_postAuthenticationLoginBanner;
453 bool m_postAuthenticationLoginBannerHasBeenSet = false;
454
455 Aws::String m_preAuthenticationLoginBanner;
456 bool m_preAuthenticationLoginBannerHasBeenSet = false;
457
458 Aws::Vector<Protocol> m_protocols;
459 bool m_protocolsHasBeenSet = false;
460
461 ProtocolDetails m_protocolDetails;
462 bool m_protocolDetailsHasBeenSet = false;
463
464 Aws::String m_securityPolicyName;
465 bool m_securityPolicyNameHasBeenSet = false;
466
467 Aws::Vector<Tag> m_tags;
468 bool m_tagsHasBeenSet = false;
469
470 WorkflowDetails m_workflowDetails;
471 bool m_workflowDetailsHasBeenSet = false;
472
473 Aws::Vector<Aws::String> m_structuredLogDestinations;
474 bool m_structuredLogDestinationsHasBeenSet = false;
475
476 S3StorageOptions m_s3StorageOptions;
477 bool m_s3StorageOptionsHasBeenSet = false;
478
479 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
480 bool m_ipAddressTypeHasBeenSet = false;
481 };
482
483} // namespace Model
484} // namespace Transfer
485} // namespace Aws
CreateServerRequest & WithProtocols(ProtocolsT &&value)
CreateServerRequest & WithPreAuthenticationLoginBanner(PreAuthenticationLoginBannerT &&value)
CreateServerRequest & WithLoggingRole(LoggingRoleT &&value)
const Aws::Vector< Aws::String > & GetStructuredLogDestinations() const
CreateServerRequest & AddTags(TagsT &&value)
CreateServerRequest & WithTags(TagsT &&value)
const IdentityProviderDetails & GetIdentityProviderDetails() const
virtual const char * GetServiceRequestName() const override
CreateServerRequest & WithCertificate(CertificateT &&value)
void SetEndpointDetails(EndpointDetailsT &&value)
CreateServerRequest & WithIdentityProviderType(IdentityProviderType value)
const Aws::String & GetPreAuthenticationLoginBanner() const
void SetProtocolDetails(ProtocolDetailsT &&value)
const Aws::Vector< Protocol > & GetProtocols() const
void SetWorkflowDetails(WorkflowDetailsT &&value)
CreateServerRequest & WithEndpointType(EndpointType value)
void SetIdentityProviderType(IdentityProviderType value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
void SetPostAuthenticationLoginBanner(PostAuthenticationLoginBannerT &&value)
IdentityProviderType GetIdentityProviderType() const
CreateServerRequest & WithDomain(Domain value)
const S3StorageOptions & GetS3StorageOptions() const
const EndpointDetails & GetEndpointDetails() const
void SetIdentityProviderDetails(IdentityProviderDetailsT &&value)
CreateServerRequest & WithHostKey(HostKeyT &&value)
CreateServerRequest & WithPostAuthenticationLoginBanner(PostAuthenticationLoginBannerT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateServerRequest & WithSecurityPolicyName(SecurityPolicyNameT &&value)
void SetStructuredLogDestinations(StructuredLogDestinationsT &&value)
CreateServerRequest & WithIpAddressType(IpAddressType value)
const ProtocolDetails & GetProtocolDetails() const
CreateServerRequest & WithWorkflowDetails(WorkflowDetailsT &&value)
const Aws::String & GetSecurityPolicyName() const
CreateServerRequest & WithEndpointDetails(EndpointDetailsT &&value)
CreateServerRequest & WithProtocolDetails(ProtocolDetailsT &&value)
CreateServerRequest & WithS3StorageOptions(S3StorageOptionsT &&value)
void SetPreAuthenticationLoginBanner(PreAuthenticationLoginBannerT &&value)
const Aws::String & GetPostAuthenticationLoginBanner() const
CreateServerRequest & AddProtocols(Protocol value)
AWS_TRANSFER_API CreateServerRequest()=default
void SetS3StorageOptions(S3StorageOptionsT &&value)
CreateServerRequest & WithIdentityProviderDetails(IdentityProviderDetailsT &&value)
CreateServerRequest & WithStructuredLogDestinations(StructuredLogDestinationsT &&value)
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateServerRequest & AddStructuredLogDestinations(StructuredLogDestinationsT &&value)
void SetSecurityPolicyName(SecurityPolicyNameT &&value)
const WorkflowDetails & GetWorkflowDetails() const
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