AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/Protocol.h>
20#include <aws/awstransfer/model/Tag.h>
21#include <utility>
22
23namespace Aws
24{
25namespace Transfer
26{
27namespace Model
28{
29
33 {
34 public:
35 AWS_TRANSFER_API CreateServerRequest();
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "CreateServer"; }
42
43 AWS_TRANSFER_API Aws::String SerializePayload() const override;
44
46
47
49
71 inline const Aws::String& GetCertificate() const{ return m_certificate; }
72 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
73 inline void SetCertificate(const Aws::String& value) { m_certificateHasBeenSet = true; m_certificate = value; }
74 inline void SetCertificate(Aws::String&& value) { m_certificateHasBeenSet = true; m_certificate = std::move(value); }
75 inline void SetCertificate(const char* value) { m_certificateHasBeenSet = true; m_certificate.assign(value); }
76 inline CreateServerRequest& WithCertificate(const Aws::String& value) { SetCertificate(value); return *this;}
77 inline CreateServerRequest& WithCertificate(Aws::String&& value) { SetCertificate(std::move(value)); return *this;}
78 inline CreateServerRequest& WithCertificate(const char* value) { SetCertificate(value); return *this;}
80
82
88 inline const Domain& GetDomain() const{ return m_domain; }
89 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
90 inline void SetDomain(const Domain& value) { m_domainHasBeenSet = true; m_domain = value; }
91 inline void SetDomain(Domain&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
92 inline CreateServerRequest& WithDomain(const Domain& value) { SetDomain(value); return *this;}
93 inline CreateServerRequest& WithDomain(Domain&& value) { SetDomain(std::move(value)); return *this;}
95
97
105 inline const EndpointDetails& GetEndpointDetails() const{ return m_endpointDetails; }
106 inline bool EndpointDetailsHasBeenSet() const { return m_endpointDetailsHasBeenSet; }
107 inline void SetEndpointDetails(const EndpointDetails& value) { m_endpointDetailsHasBeenSet = true; m_endpointDetails = value; }
108 inline void SetEndpointDetails(EndpointDetails&& value) { m_endpointDetailsHasBeenSet = true; m_endpointDetails = std::move(value); }
109 inline CreateServerRequest& WithEndpointDetails(const EndpointDetails& value) { SetEndpointDetails(value); return *this;}
110 inline CreateServerRequest& WithEndpointDetails(EndpointDetails&& value) { SetEndpointDetails(std::move(value)); return *this;}
112
114
135 inline const EndpointType& GetEndpointType() const{ return m_endpointType; }
136 inline bool EndpointTypeHasBeenSet() const { return m_endpointTypeHasBeenSet; }
137 inline void SetEndpointType(const EndpointType& value) { m_endpointTypeHasBeenSet = true; m_endpointType = value; }
138 inline void SetEndpointType(EndpointType&& value) { m_endpointTypeHasBeenSet = true; m_endpointType = std::move(value); }
139 inline CreateServerRequest& WithEndpointType(const EndpointType& value) { SetEndpointType(value); return *this;}
140 inline CreateServerRequest& WithEndpointType(EndpointType&& value) { SetEndpointType(std::move(value)); return *this;}
142
144
165 inline const Aws::String& GetHostKey() const{ return m_hostKey; }
166 inline bool HostKeyHasBeenSet() const { return m_hostKeyHasBeenSet; }
167 inline void SetHostKey(const Aws::String& value) { m_hostKeyHasBeenSet = true; m_hostKey = value; }
168 inline void SetHostKey(Aws::String&& value) { m_hostKeyHasBeenSet = true; m_hostKey = std::move(value); }
169 inline void SetHostKey(const char* value) { m_hostKeyHasBeenSet = true; m_hostKey.assign(value); }
170 inline CreateServerRequest& WithHostKey(const Aws::String& value) { SetHostKey(value); return *this;}
171 inline CreateServerRequest& WithHostKey(Aws::String&& value) { SetHostKey(std::move(value)); return *this;}
172 inline CreateServerRequest& WithHostKey(const char* value) { SetHostKey(value); return *this;}
174
176
185 inline const IdentityProviderDetails& GetIdentityProviderDetails() const{ return m_identityProviderDetails; }
186 inline bool IdentityProviderDetailsHasBeenSet() const { return m_identityProviderDetailsHasBeenSet; }
187 inline void SetIdentityProviderDetails(const IdentityProviderDetails& value) { m_identityProviderDetailsHasBeenSet = true; m_identityProviderDetails = value; }
188 inline void SetIdentityProviderDetails(IdentityProviderDetails&& value) { m_identityProviderDetailsHasBeenSet = true; m_identityProviderDetails = std::move(value); }
192
194
212 inline const IdentityProviderType& GetIdentityProviderType() const{ return m_identityProviderType; }
213 inline bool IdentityProviderTypeHasBeenSet() const { return m_identityProviderTypeHasBeenSet; }
214 inline void SetIdentityProviderType(const IdentityProviderType& value) { m_identityProviderTypeHasBeenSet = true; m_identityProviderType = value; }
215 inline void SetIdentityProviderType(IdentityProviderType&& value) { m_identityProviderTypeHasBeenSet = true; m_identityProviderType = std::move(value); }
219
221
227 inline const Aws::String& GetLoggingRole() const{ return m_loggingRole; }
228 inline bool LoggingRoleHasBeenSet() const { return m_loggingRoleHasBeenSet; }
229 inline void SetLoggingRole(const Aws::String& value) { m_loggingRoleHasBeenSet = true; m_loggingRole = value; }
230 inline void SetLoggingRole(Aws::String&& value) { m_loggingRoleHasBeenSet = true; m_loggingRole = std::move(value); }
231 inline void SetLoggingRole(const char* value) { m_loggingRoleHasBeenSet = true; m_loggingRole.assign(value); }
232 inline CreateServerRequest& WithLoggingRole(const Aws::String& value) { SetLoggingRole(value); return *this;}
233 inline CreateServerRequest& WithLoggingRole(Aws::String&& value) { SetLoggingRole(std::move(value)); return *this;}
234 inline CreateServerRequest& WithLoggingRole(const char* value) { SetLoggingRole(value); return *this;}
236
238
243 inline const Aws::String& GetPostAuthenticationLoginBanner() const{ return m_postAuthenticationLoginBanner; }
244 inline bool PostAuthenticationLoginBannerHasBeenSet() const { return m_postAuthenticationLoginBannerHasBeenSet; }
245 inline void SetPostAuthenticationLoginBanner(const Aws::String& value) { m_postAuthenticationLoginBannerHasBeenSet = true; m_postAuthenticationLoginBanner = value; }
246 inline void SetPostAuthenticationLoginBanner(Aws::String&& value) { m_postAuthenticationLoginBannerHasBeenSet = true; m_postAuthenticationLoginBanner = std::move(value); }
247 inline void SetPostAuthenticationLoginBanner(const char* value) { m_postAuthenticationLoginBannerHasBeenSet = true; m_postAuthenticationLoginBanner.assign(value); }
252
254
263 inline const Aws::String& GetPreAuthenticationLoginBanner() const{ return m_preAuthenticationLoginBanner; }
264 inline bool PreAuthenticationLoginBannerHasBeenSet() const { return m_preAuthenticationLoginBannerHasBeenSet; }
265 inline void SetPreAuthenticationLoginBanner(const Aws::String& value) { m_preAuthenticationLoginBannerHasBeenSet = true; m_preAuthenticationLoginBanner = value; }
266 inline void SetPreAuthenticationLoginBanner(Aws::String&& value) { m_preAuthenticationLoginBannerHasBeenSet = true; m_preAuthenticationLoginBanner = std::move(value); }
267 inline void SetPreAuthenticationLoginBanner(const char* value) { m_preAuthenticationLoginBannerHasBeenSet = true; m_preAuthenticationLoginBanner.assign(value); }
272
274
301 inline const Aws::Vector<Protocol>& GetProtocols() const{ return m_protocols; }
302 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
303 inline void SetProtocols(const Aws::Vector<Protocol>& value) { m_protocolsHasBeenSet = true; m_protocols = value; }
304 inline void SetProtocols(Aws::Vector<Protocol>&& value) { m_protocolsHasBeenSet = true; m_protocols = std::move(value); }
305 inline CreateServerRequest& WithProtocols(const Aws::Vector<Protocol>& value) { SetProtocols(value); return *this;}
306 inline CreateServerRequest& WithProtocols(Aws::Vector<Protocol>&& value) { SetProtocols(std::move(value)); return *this;}
307 inline CreateServerRequest& AddProtocols(const Protocol& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
308 inline CreateServerRequest& AddProtocols(Protocol&& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(std::move(value)); return *this; }
310
312
331 inline const ProtocolDetails& GetProtocolDetails() const{ return m_protocolDetails; }
332 inline bool ProtocolDetailsHasBeenSet() const { return m_protocolDetailsHasBeenSet; }
333 inline void SetProtocolDetails(const ProtocolDetails& value) { m_protocolDetailsHasBeenSet = true; m_protocolDetails = value; }
334 inline void SetProtocolDetails(ProtocolDetails&& value) { m_protocolDetailsHasBeenSet = true; m_protocolDetails = std::move(value); }
335 inline CreateServerRequest& WithProtocolDetails(const ProtocolDetails& value) { SetProtocolDetails(value); return *this;}
336 inline CreateServerRequest& WithProtocolDetails(ProtocolDetails&& value) { SetProtocolDetails(std::move(value)); return *this;}
338
340
343 inline const Aws::String& GetSecurityPolicyName() const{ return m_securityPolicyName; }
344 inline bool SecurityPolicyNameHasBeenSet() const { return m_securityPolicyNameHasBeenSet; }
345 inline void SetSecurityPolicyName(const Aws::String& value) { m_securityPolicyNameHasBeenSet = true; m_securityPolicyName = value; }
346 inline void SetSecurityPolicyName(Aws::String&& value) { m_securityPolicyNameHasBeenSet = true; m_securityPolicyName = std::move(value); }
347 inline void SetSecurityPolicyName(const char* value) { m_securityPolicyNameHasBeenSet = true; m_securityPolicyName.assign(value); }
349 inline CreateServerRequest& WithSecurityPolicyName(Aws::String&& value) { SetSecurityPolicyName(std::move(value)); return *this;}
350 inline CreateServerRequest& WithSecurityPolicyName(const char* value) { SetSecurityPolicyName(value); return *this;}
352
354
357 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
358 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
359 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
360 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
361 inline CreateServerRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
362 inline CreateServerRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
363 inline CreateServerRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
364 inline CreateServerRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
366
368
376 inline const WorkflowDetails& GetWorkflowDetails() const{ return m_workflowDetails; }
377 inline bool WorkflowDetailsHasBeenSet() const { return m_workflowDetailsHasBeenSet; }
378 inline void SetWorkflowDetails(const WorkflowDetails& value) { m_workflowDetailsHasBeenSet = true; m_workflowDetails = value; }
379 inline void SetWorkflowDetails(WorkflowDetails&& value) { m_workflowDetailsHasBeenSet = true; m_workflowDetails = std::move(value); }
380 inline CreateServerRequest& WithWorkflowDetails(const WorkflowDetails& value) { SetWorkflowDetails(value); return *this;}
381 inline CreateServerRequest& WithWorkflowDetails(WorkflowDetails&& value) { SetWorkflowDetails(std::move(value)); return *this;}
383
385
398 inline const Aws::Vector<Aws::String>& GetStructuredLogDestinations() const{ return m_structuredLogDestinations; }
399 inline bool StructuredLogDestinationsHasBeenSet() const { return m_structuredLogDestinationsHasBeenSet; }
400 inline void SetStructuredLogDestinations(const Aws::Vector<Aws::String>& value) { m_structuredLogDestinationsHasBeenSet = true; m_structuredLogDestinations = value; }
401 inline void SetStructuredLogDestinations(Aws::Vector<Aws::String>&& value) { m_structuredLogDestinationsHasBeenSet = true; m_structuredLogDestinations = std::move(value); }
404 inline CreateServerRequest& AddStructuredLogDestinations(const Aws::String& value) { m_structuredLogDestinationsHasBeenSet = true; m_structuredLogDestinations.push_back(value); return *this; }
405 inline CreateServerRequest& AddStructuredLogDestinations(Aws::String&& value) { m_structuredLogDestinationsHasBeenSet = true; m_structuredLogDestinations.push_back(std::move(value)); return *this; }
406 inline CreateServerRequest& AddStructuredLogDestinations(const char* value) { m_structuredLogDestinationsHasBeenSet = true; m_structuredLogDestinations.push_back(value); return *this; }
408
410
418 inline const S3StorageOptions& GetS3StorageOptions() const{ return m_s3StorageOptions; }
419 inline bool S3StorageOptionsHasBeenSet() const { return m_s3StorageOptionsHasBeenSet; }
420 inline void SetS3StorageOptions(const S3StorageOptions& value) { m_s3StorageOptionsHasBeenSet = true; m_s3StorageOptions = value; }
421 inline void SetS3StorageOptions(S3StorageOptions&& value) { m_s3StorageOptionsHasBeenSet = true; m_s3StorageOptions = std::move(value); }
423 inline CreateServerRequest& WithS3StorageOptions(S3StorageOptions&& value) { SetS3StorageOptions(std::move(value)); return *this;}
425 private:
426
427 Aws::String m_certificate;
428 bool m_certificateHasBeenSet = false;
429
430 Domain m_domain;
431 bool m_domainHasBeenSet = false;
432
433 EndpointDetails m_endpointDetails;
434 bool m_endpointDetailsHasBeenSet = false;
435
436 EndpointType m_endpointType;
437 bool m_endpointTypeHasBeenSet = false;
438
439 Aws::String m_hostKey;
440 bool m_hostKeyHasBeenSet = false;
441
442 IdentityProviderDetails m_identityProviderDetails;
443 bool m_identityProviderDetailsHasBeenSet = false;
444
445 IdentityProviderType m_identityProviderType;
446 bool m_identityProviderTypeHasBeenSet = false;
447
448 Aws::String m_loggingRole;
449 bool m_loggingRoleHasBeenSet = false;
450
451 Aws::String m_postAuthenticationLoginBanner;
452 bool m_postAuthenticationLoginBannerHasBeenSet = false;
453
454 Aws::String m_preAuthenticationLoginBanner;
455 bool m_preAuthenticationLoginBannerHasBeenSet = false;
456
457 Aws::Vector<Protocol> m_protocols;
458 bool m_protocolsHasBeenSet = false;
459
460 ProtocolDetails m_protocolDetails;
461 bool m_protocolDetailsHasBeenSet = false;
462
463 Aws::String m_securityPolicyName;
464 bool m_securityPolicyNameHasBeenSet = false;
465
466 Aws::Vector<Tag> m_tags;
467 bool m_tagsHasBeenSet = false;
468
469 WorkflowDetails m_workflowDetails;
470 bool m_workflowDetailsHasBeenSet = false;
471
472 Aws::Vector<Aws::String> m_structuredLogDestinations;
473 bool m_structuredLogDestinationsHasBeenSet = false;
474
475 S3StorageOptions m_s3StorageOptions;
476 bool m_s3StorageOptionsHasBeenSet = false;
477 };
478
479} // namespace Model
480} // namespace Transfer
481} // namespace Aws
CreateServerRequest & WithHostKey(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
CreateServerRequest & WithPostAuthenticationLoginBanner(const Aws::String &value)
CreateServerRequest & WithStructuredLogDestinations(const Aws::Vector< Aws::String > &value)
CreateServerRequest & WithDomain(const Domain &value)
CreateServerRequest & WithEndpointDetails(EndpointDetails &&value)
CreateServerRequest & WithS3StorageOptions(S3StorageOptions &&value)
CreateServerRequest & WithHostKey(const Aws::String &value)
CreateServerRequest & WithLoggingRole(Aws::String &&value)
const Aws::Vector< Aws::String > & GetStructuredLogDestinations() const
CreateServerRequest & WithIdentityProviderDetails(IdentityProviderDetails &&value)
CreateServerRequest & WithSecurityPolicyName(const char *value)
CreateServerRequest & WithTags(Aws::Vector< Tag > &&value)
CreateServerRequest & AddProtocols(Protocol &&value)
void SetProtocolDetails(const ProtocolDetails &value)
void SetEndpointDetails(const EndpointDetails &value)
CreateServerRequest & AddStructuredLogDestinations(const char *value)
void SetS3StorageOptions(S3StorageOptions &&value)
CreateServerRequest & WithTags(const Aws::Vector< Tag > &value)
const IdentityProviderDetails & GetIdentityProviderDetails() const
CreateServerRequest & WithEndpointType(EndpointType &&value)
CreateServerRequest & WithHostKey(Aws::String &&value)
CreateServerRequest & WithProtocols(Aws::Vector< Protocol > &&value)
virtual const char * GetServiceRequestName() const override
void SetIdentityProviderDetails(IdentityProviderDetails &&value)
CreateServerRequest & WithS3StorageOptions(const S3StorageOptions &value)
void SetProtocols(Aws::Vector< Protocol > &&value)
void SetPreAuthenticationLoginBanner(const Aws::String &value)
void SetEndpointDetails(EndpointDetails &&value)
CreateServerRequest & AddStructuredLogDestinations(Aws::String &&value)
CreateServerRequest & WithDomain(Domain &&value)
void SetWorkflowDetails(const WorkflowDetails &value)
void SetProtocols(const Aws::Vector< Protocol > &value)
const Aws::String & GetPreAuthenticationLoginBanner() const
CreateServerRequest & WithWorkflowDetails(WorkflowDetails &&value)
CreateServerRequest & WithSecurityPolicyName(const Aws::String &value)
CreateServerRequest & WithIdentityProviderDetails(const IdentityProviderDetails &value)
CreateServerRequest & WithEndpointType(const EndpointType &value)
const Aws::Vector< Protocol > & GetProtocols() const
void SetIdentityProviderDetails(const IdentityProviderDetails &value)
const IdentityProviderType & GetIdentityProviderType() const
CreateServerRequest & WithPreAuthenticationLoginBanner(const char *value)
CreateServerRequest & WithSecurityPolicyName(Aws::String &&value)
CreateServerRequest & WithEndpointDetails(const EndpointDetails &value)
void SetEndpointType(const EndpointType &value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
CreateServerRequest & WithLoggingRole(const Aws::String &value)
CreateServerRequest & AddProtocols(const Protocol &value)
void SetPostAuthenticationLoginBanner(Aws::String &&value)
void SetPreAuthenticationLoginBanner(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
CreateServerRequest & WithPreAuthenticationLoginBanner(Aws::String &&value)
CreateServerRequest & WithLoggingRole(const char *value)
void SetIdentityProviderType(IdentityProviderType &&value)
CreateServerRequest & AddStructuredLogDestinations(const Aws::String &value)
void SetSecurityPolicyName(const Aws::String &value)
const S3StorageOptions & GetS3StorageOptions() const
CreateServerRequest & WithProtocolDetails(const ProtocolDetails &value)
const EndpointDetails & GetEndpointDetails() const
CreateServerRequest & WithIdentityProviderType(const IdentityProviderType &value)
CreateServerRequest & WithStructuredLogDestinations(Aws::Vector< Aws::String > &&value)
CreateServerRequest & WithWorkflowDetails(const WorkflowDetails &value)
void SetStructuredLogDestinations(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Tag > & GetTags() const
void SetLoggingRole(const Aws::String &value)
CreateServerRequest & WithIdentityProviderType(IdentityProviderType &&value)
void SetPostAuthenticationLoginBanner(const char *value)
const ProtocolDetails & GetProtocolDetails() const
void SetHostKey(const Aws::String &value)
void SetS3StorageOptions(const S3StorageOptions &value)
void SetStructuredLogDestinations(const Aws::Vector< Aws::String > &value)
const Aws::String & GetSecurityPolicyName() const
CreateServerRequest & WithProtocolDetails(ProtocolDetails &&value)
void SetProtocolDetails(ProtocolDetails &&value)
CreateServerRequest & AddTags(Tag &&value)
void SetWorkflowDetails(WorkflowDetails &&value)
const Aws::String & GetPostAuthenticationLoginBanner() const
CreateServerRequest & AddTags(const Tag &value)
CreateServerRequest & WithPostAuthenticationLoginBanner(const char *value)
CreateServerRequest & WithCertificate(const Aws::String &value)
CreateServerRequest & WithCertificate(const char *value)
CreateServerRequest & WithPostAuthenticationLoginBanner(Aws::String &&value)
void SetPostAuthenticationLoginBanner(const Aws::String &value)
CreateServerRequest & WithCertificate(Aws::String &&value)
void SetIdentityProviderType(const IdentityProviderType &value)
void SetCertificate(const Aws::String &value)
void SetPreAuthenticationLoginBanner(Aws::String &&value)
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateServerRequest & WithProtocols(const Aws::Vector< Protocol > &value)
CreateServerRequest & WithPreAuthenticationLoginBanner(const Aws::String &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