AWS SDK for C++  1.9.45
AWS SDK for C++
RequestCertificateRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/acm/ACM_EXPORTS.h>
8 #include <aws/acm/ACMRequest.h>
14 #include <aws/acm/model/Tag.h>
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace ACM
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "RequestCertificate"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
51  inline const Aws::String& GetDomainName() const{ return m_domainName; }
52 
62  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
63 
73  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
74 
84  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
85 
95  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
96 
106  inline RequestCertificateRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
107 
117  inline RequestCertificateRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
118 
128  inline RequestCertificateRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
129 
130 
139  inline const ValidationMethod& GetValidationMethod() const{ return m_validationMethod; }
140 
149  inline bool ValidationMethodHasBeenSet() const { return m_validationMethodHasBeenSet; }
150 
159  inline void SetValidationMethod(const ValidationMethod& value) { m_validationMethodHasBeenSet = true; m_validationMethod = value; }
160 
169  inline void SetValidationMethod(ValidationMethod&& value) { m_validationMethodHasBeenSet = true; m_validationMethod = std::move(value); }
170 
179  inline RequestCertificateRequest& WithValidationMethod(const ValidationMethod& value) { SetValidationMethod(value); return *this;}
180 
189  inline RequestCertificateRequest& WithValidationMethod(ValidationMethod&& value) { SetValidationMethod(std::move(value)); return *this;}
190 
191 
212  inline const Aws::Vector<Aws::String>& GetSubjectAlternativeNames() const{ return m_subjectAlternativeNames; }
213 
234  inline bool SubjectAlternativeNamesHasBeenSet() const { return m_subjectAlternativeNamesHasBeenSet; }
235 
256  inline void SetSubjectAlternativeNames(const Aws::Vector<Aws::String>& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames = value; }
257 
278  inline void SetSubjectAlternativeNames(Aws::Vector<Aws::String>&& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames = std::move(value); }
279 
300  inline RequestCertificateRequest& WithSubjectAlternativeNames(const Aws::Vector<Aws::String>& value) { SetSubjectAlternativeNames(value); return *this;}
301 
322  inline RequestCertificateRequest& WithSubjectAlternativeNames(Aws::Vector<Aws::String>&& value) { SetSubjectAlternativeNames(std::move(value)); return *this;}
323 
344  inline RequestCertificateRequest& AddSubjectAlternativeNames(const Aws::String& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.push_back(value); return *this; }
345 
366  inline RequestCertificateRequest& AddSubjectAlternativeNames(Aws::String&& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.push_back(std::move(value)); return *this; }
367 
388  inline RequestCertificateRequest& AddSubjectAlternativeNames(const char* value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.push_back(value); return *this; }
389 
390 
400  inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
401 
411  inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
412 
422  inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
423 
433  inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
434 
444  inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
445 
455  inline RequestCertificateRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;}
456 
466  inline RequestCertificateRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
467 
477  inline RequestCertificateRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
478 
479 
484  inline const Aws::Vector<DomainValidationOption>& GetDomainValidationOptions() const{ return m_domainValidationOptions; }
485 
490  inline bool DomainValidationOptionsHasBeenSet() const { return m_domainValidationOptionsHasBeenSet; }
491 
496  inline void SetDomainValidationOptions(const Aws::Vector<DomainValidationOption>& value) { m_domainValidationOptionsHasBeenSet = true; m_domainValidationOptions = value; }
497 
502  inline void SetDomainValidationOptions(Aws::Vector<DomainValidationOption>&& value) { m_domainValidationOptionsHasBeenSet = true; m_domainValidationOptions = std::move(value); }
503 
508  inline RequestCertificateRequest& WithDomainValidationOptions(const Aws::Vector<DomainValidationOption>& value) { SetDomainValidationOptions(value); return *this;}
509 
514  inline RequestCertificateRequest& WithDomainValidationOptions(Aws::Vector<DomainValidationOption>&& value) { SetDomainValidationOptions(std::move(value)); return *this;}
515 
520  inline RequestCertificateRequest& AddDomainValidationOptions(const DomainValidationOption& value) { m_domainValidationOptionsHasBeenSet = true; m_domainValidationOptions.push_back(value); return *this; }
521 
526  inline RequestCertificateRequest& AddDomainValidationOptions(DomainValidationOption&& value) { m_domainValidationOptionsHasBeenSet = true; m_domainValidationOptions.push_back(std::move(value)); return *this; }
527 
528 
538  inline const CertificateOptions& GetOptions() const{ return m_options; }
539 
549  inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
550 
560  inline void SetOptions(const CertificateOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
561 
571  inline void SetOptions(CertificateOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
572 
582  inline RequestCertificateRequest& WithOptions(const CertificateOptions& value) { SetOptions(value); return *this;}
583 
593  inline RequestCertificateRequest& WithOptions(CertificateOptions&& value) { SetOptions(std::move(value)); return *this;}
594 
595 
607  inline const Aws::String& GetCertificateAuthorityArn() const{ return m_certificateAuthorityArn; }
608 
620  inline bool CertificateAuthorityArnHasBeenSet() const { return m_certificateAuthorityArnHasBeenSet; }
621 
633  inline void SetCertificateAuthorityArn(const Aws::String& value) { m_certificateAuthorityArnHasBeenSet = true; m_certificateAuthorityArn = value; }
634 
646  inline void SetCertificateAuthorityArn(Aws::String&& value) { m_certificateAuthorityArnHasBeenSet = true; m_certificateAuthorityArn = std::move(value); }
647 
659  inline void SetCertificateAuthorityArn(const char* value) { m_certificateAuthorityArnHasBeenSet = true; m_certificateAuthorityArn.assign(value); }
660 
672  inline RequestCertificateRequest& WithCertificateAuthorityArn(const Aws::String& value) { SetCertificateAuthorityArn(value); return *this;}
673 
685  inline RequestCertificateRequest& WithCertificateAuthorityArn(Aws::String&& value) { SetCertificateAuthorityArn(std::move(value)); return *this;}
686 
698  inline RequestCertificateRequest& WithCertificateAuthorityArn(const char* value) { SetCertificateAuthorityArn(value); return *this;}
699 
700 
704  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
705 
709  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
710 
714  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
715 
719  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
720 
724  inline RequestCertificateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
725 
729  inline RequestCertificateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
730 
734  inline RequestCertificateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
735 
739  inline RequestCertificateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
740 
741  private:
742 
743  Aws::String m_domainName;
744  bool m_domainNameHasBeenSet;
745 
746  ValidationMethod m_validationMethod;
747  bool m_validationMethodHasBeenSet;
748 
749  Aws::Vector<Aws::String> m_subjectAlternativeNames;
750  bool m_subjectAlternativeNamesHasBeenSet;
751 
752  Aws::String m_idempotencyToken;
753  bool m_idempotencyTokenHasBeenSet;
754 
755  Aws::Vector<DomainValidationOption> m_domainValidationOptions;
756  bool m_domainValidationOptionsHasBeenSet;
757 
758  CertificateOptions m_options;
759  bool m_optionsHasBeenSet;
760 
761  Aws::String m_certificateAuthorityArn;
762  bool m_certificateAuthorityArnHasBeenSet;
763 
764  Aws::Vector<Tag> m_tags;
765  bool m_tagsHasBeenSet;
766  };
767 
768 } // namespace Model
769 } // namespace ACM
770 } // namespace Aws
Aws::ACM::Model::RequestCertificateRequest::OptionsHasBeenSet
bool OptionsHasBeenSet() const
Definition: RequestCertificateRequest.h:549
Aws::ACM::Model::RequestCertificateRequest::WithTags
RequestCertificateRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: RequestCertificateRequest.h:724
Aws::ACM::Model::RequestCertificateRequest::SetCertificateAuthorityArn
void SetCertificateAuthorityArn(Aws::String &&value)
Definition: RequestCertificateRequest.h:646
Aws::ACM::Model::RequestCertificateRequest::GetCertificateAuthorityArn
const Aws::String & GetCertificateAuthorityArn() const
Definition: RequestCertificateRequest.h:607
Aws::ACM::Model::RequestCertificateRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: RequestCertificateRequest.h:714
Aws::ACM::Model::RequestCertificateRequest::WithDomainName
RequestCertificateRequest & WithDomainName(const char *value)
Definition: RequestCertificateRequest.h:128
Aws::ACM::Model::RequestCertificateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ACM::Model::RequestCertificateRequest::GetDomainName
const Aws::String & GetDomainName() const
Definition: RequestCertificateRequest.h:51
Aws::ACM::Model::RequestCertificateRequest::AddSubjectAlternativeNames
RequestCertificateRequest & AddSubjectAlternativeNames(const char *value)
Definition: RequestCertificateRequest.h:388
Aws::ACM::Model::RequestCertificateRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: RequestCertificateRequest.h:704
CertificateOptions.h
Aws::ACM::Model::CertificateOptions
Definition: CertificateOptions.h:40
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ACM::Model::RequestCertificateRequest::GetSubjectAlternativeNames
const Aws::Vector< Aws::String > & GetSubjectAlternativeNames() const
Definition: RequestCertificateRequest.h:212
Aws::ACM::Model::RequestCertificateRequest::WithCertificateAuthorityArn
RequestCertificateRequest & WithCertificateAuthorityArn(Aws::String &&value)
Definition: RequestCertificateRequest.h:685
Aws::ACM::Model::RequestCertificateRequest::SetSubjectAlternativeNames
void SetSubjectAlternativeNames(const Aws::Vector< Aws::String > &value)
Definition: RequestCertificateRequest.h:256
Aws::ACM::Model::RequestCertificateRequest::SetIdempotencyToken
void SetIdempotencyToken(const char *value)
Definition: RequestCertificateRequest.h:444
Aws::ACM::Model::RequestCertificateRequest::WithValidationMethod
RequestCertificateRequest & WithValidationMethod(ValidationMethod &&value)
Definition: RequestCertificateRequest.h:189
Aws::ACM::Model::RequestCertificateRequest::SetCertificateAuthorityArn
void SetCertificateAuthorityArn(const char *value)
Definition: RequestCertificateRequest.h:659
Aws::ACM::Model::RequestCertificateRequest::WithSubjectAlternativeNames
RequestCertificateRequest & WithSubjectAlternativeNames(Aws::Vector< Aws::String > &&value)
Definition: RequestCertificateRequest.h:322
Aws::ACM::Model::RequestCertificateRequest::WithIdempotencyToken
RequestCertificateRequest & WithIdempotencyToken(const char *value)
Definition: RequestCertificateRequest.h:477
Aws::ACM::Model::RequestCertificateRequest
Definition: RequestCertificateRequest.h:27
Aws::ACM::ACMRequest
Definition: ACMRequest.h:17
Aws::ACM::Model::RequestCertificateRequest::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: RequestCertificateRequest.h:73
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ACM::Model::RequestCertificateRequest::GetDomainValidationOptions
const Aws::Vector< DomainValidationOption > & GetDomainValidationOptions() const
Definition: RequestCertificateRequest.h:484
DomainValidationOption.h
Aws::ACM::Model::RequestCertificateRequest::WithOptions
RequestCertificateRequest & WithOptions(const CertificateOptions &value)
Definition: RequestCertificateRequest.h:582
AWSVector.h
Aws::ACM::Model::RequestCertificateRequest::DomainValidationOptionsHasBeenSet
bool DomainValidationOptionsHasBeenSet() const
Definition: RequestCertificateRequest.h:490
Aws::ACM::Model::RequestCertificateRequest::AddTags
RequestCertificateRequest & AddTags(const Tag &value)
Definition: RequestCertificateRequest.h:734
Aws::ACM::Model::RequestCertificateRequest::WithTags
RequestCertificateRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: RequestCertificateRequest.h:729
Aws::ACM::Model::RequestCertificateRequest::SetDomainValidationOptions
void SetDomainValidationOptions(const Aws::Vector< DomainValidationOption > &value)
Definition: RequestCertificateRequest.h:496
Aws::ACM::Model::RequestCertificateRequest::SetSubjectAlternativeNames
void SetSubjectAlternativeNames(Aws::Vector< Aws::String > &&value)
Definition: RequestCertificateRequest.h:278
Aws::ACM::Model::RequestCertificateRequest::WithDomainValidationOptions
RequestCertificateRequest & WithDomainValidationOptions(Aws::Vector< DomainValidationOption > &&value)
Definition: RequestCertificateRequest.h:514
Aws::ACM::Model::RequestCertificateRequest::AddSubjectAlternativeNames
RequestCertificateRequest & AddSubjectAlternativeNames(const Aws::String &value)
Definition: RequestCertificateRequest.h:344
Aws::ACM::Model::Tag
Definition: Tag.h:33
Aws::ACM::Model::RequestCertificateRequest::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: RequestCertificateRequest.h:84
Aws::ACM::Model::RequestCertificateRequest::GetIdempotencyToken
const Aws::String & GetIdempotencyToken() const
Definition: RequestCertificateRequest.h:400
Tag.h
Aws::ACM::Model::RequestCertificateRequest::GetOptions
const CertificateOptions & GetOptions() const
Definition: RequestCertificateRequest.h:538
Aws::ACM::Model::RequestCertificateRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ACM::Model::ValidationMethod
ValidationMethod
Definition: ValidationMethod.h:17
ValidationMethod.h
Aws::ACM::Model::RequestCertificateRequest::WithSubjectAlternativeNames
RequestCertificateRequest & WithSubjectAlternativeNames(const Aws::Vector< Aws::String > &value)
Definition: RequestCertificateRequest.h:300
Aws::ACM::Model::RequestCertificateRequest::SetValidationMethod
void SetValidationMethod(const ValidationMethod &value)
Definition: RequestCertificateRequest.h:159
AWSString.h
Aws::ACM::Model::RequestCertificateRequest::SetOptions
void SetOptions(CertificateOptions &&value)
Definition: RequestCertificateRequest.h:571
ACMRequest.h
Aws::ACM::Model::RequestCertificateRequest::WithDomainName
RequestCertificateRequest & WithDomainName(const Aws::String &value)
Definition: RequestCertificateRequest.h:106
Aws::ACM::Model::RequestCertificateRequest::AddDomainValidationOptions
RequestCertificateRequest & AddDomainValidationOptions(const DomainValidationOption &value)
Definition: RequestCertificateRequest.h:520
Aws::ACM::Model::RequestCertificateRequest::AddTags
RequestCertificateRequest & AddTags(Tag &&value)
Definition: RequestCertificateRequest.h:739
Aws::ACM::Model::RequestCertificateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RequestCertificateRequest.h:35
Aws::ACM::Model::RequestCertificateRequest::AddDomainValidationOptions
RequestCertificateRequest & AddDomainValidationOptions(DomainValidationOption &&value)
Definition: RequestCertificateRequest.h:526
Aws::ACM::Model::RequestCertificateRequest::SetCertificateAuthorityArn
void SetCertificateAuthorityArn(const Aws::String &value)
Definition: RequestCertificateRequest.h:633
Aws::ACM::Model::RequestCertificateRequest::SetIdempotencyToken
void SetIdempotencyToken(const Aws::String &value)
Definition: RequestCertificateRequest.h:422
Aws::ACM::Model::RequestCertificateRequest::WithCertificateAuthorityArn
RequestCertificateRequest & WithCertificateAuthorityArn(const char *value)
Definition: RequestCertificateRequest.h:698
Aws::ACM::Model::RequestCertificateRequest::RequestCertificateRequest
RequestCertificateRequest()
ACM_EXPORTS.h
Aws::ACM::Model::RequestCertificateRequest::SetIdempotencyToken
void SetIdempotencyToken(Aws::String &&value)
Definition: RequestCertificateRequest.h:433
Aws
Definition: AccessManagementClient.h:15
Aws::ACM::Model::RequestCertificateRequest::WithDomainValidationOptions
RequestCertificateRequest & WithDomainValidationOptions(const Aws::Vector< DomainValidationOption > &value)
Definition: RequestCertificateRequest.h:508
Aws::ACM::Model::RequestCertificateRequest::SetDomainValidationOptions
void SetDomainValidationOptions(Aws::Vector< DomainValidationOption > &&value)
Definition: RequestCertificateRequest.h:502
Aws::ACM::Model::RequestCertificateRequest::WithIdempotencyToken
RequestCertificateRequest & WithIdempotencyToken(Aws::String &&value)
Definition: RequestCertificateRequest.h:466
Aws::ACM::Model::RequestCertificateRequest::GetValidationMethod
const ValidationMethod & GetValidationMethod() const
Definition: RequestCertificateRequest.h:139
Aws::ACM::Model::RequestCertificateRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: RequestCertificateRequest.h:719
Aws::ACM::Model::RequestCertificateRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: RequestCertificateRequest.h:709
AWS_ACM_API
#define AWS_ACM_API
Definition: ACM_EXPORTS.h:28
Aws::ACM::Model::RequestCertificateRequest::SetOptions
void SetOptions(const CertificateOptions &value)
Definition: RequestCertificateRequest.h:560
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ACM::Model::RequestCertificateRequest::SetValidationMethod
void SetValidationMethod(ValidationMethod &&value)
Definition: RequestCertificateRequest.h:169
Aws::ACM::Model::RequestCertificateRequest::ValidationMethodHasBeenSet
bool ValidationMethodHasBeenSet() const
Definition: RequestCertificateRequest.h:149
Aws::ACM::Model::RequestCertificateRequest::SubjectAlternativeNamesHasBeenSet
bool SubjectAlternativeNamesHasBeenSet() const
Definition: RequestCertificateRequest.h:234
Aws::ACM::Model::RequestCertificateRequest::WithCertificateAuthorityArn
RequestCertificateRequest & WithCertificateAuthorityArn(const Aws::String &value)
Definition: RequestCertificateRequest.h:672
Aws::ACM::Model::RequestCertificateRequest::WithIdempotencyToken
RequestCertificateRequest & WithIdempotencyToken(const Aws::String &value)
Definition: RequestCertificateRequest.h:455
Aws::ACM::Model::RequestCertificateRequest::WithOptions
RequestCertificateRequest & WithOptions(CertificateOptions &&value)
Definition: RequestCertificateRequest.h:593
Aws::ACM::Model::RequestCertificateRequest::AddSubjectAlternativeNames
RequestCertificateRequest & AddSubjectAlternativeNames(Aws::String &&value)
Definition: RequestCertificateRequest.h:366
Aws::ACM::Model::RequestCertificateRequest::SetDomainName
void SetDomainName(const char *value)
Definition: RequestCertificateRequest.h:95
Aws::ACM::Model::RequestCertificateRequest::WithValidationMethod
RequestCertificateRequest & WithValidationMethod(const ValidationMethod &value)
Definition: RequestCertificateRequest.h:179
Aws::ACM::Model::RequestCertificateRequest::CertificateAuthorityArnHasBeenSet
bool CertificateAuthorityArnHasBeenSet() const
Definition: RequestCertificateRequest.h:620
Aws::ACM::Model::DomainValidationOption
Definition: DomainValidationOption.h:34
Aws::ACM::Model::RequestCertificateRequest::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: RequestCertificateRequest.h:62
Aws::ACM::Model::RequestCertificateRequest::IdempotencyTokenHasBeenSet
bool IdempotencyTokenHasBeenSet() const
Definition: RequestCertificateRequest.h:411
Aws::ACM::Model::RequestCertificateRequest::WithDomainName
RequestCertificateRequest & WithDomainName(Aws::String &&value)
Definition: RequestCertificateRequest.h:117