AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RequestCertificateRequest.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/acm/ACMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/acm/model/ValidationMethod.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/acm/model/CertificateOptions.h>
13#include <aws/acm/model/KeyAlgorithm.h>
14#include <aws/acm/model/DomainValidationOption.h>
15#include <aws/acm/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace ACM
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "RequestCertificate"; }
37
38 AWS_ACM_API Aws::String SerializePayload() const override;
39
41
42
44
56 inline const Aws::String& GetDomainName() const{ return m_domainName; }
57 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
58 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
59 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
60 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
61 inline RequestCertificateRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
62 inline RequestCertificateRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
63 inline RequestCertificateRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
65
67
75 inline const ValidationMethod& GetValidationMethod() const{ return m_validationMethod; }
76 inline bool ValidationMethodHasBeenSet() const { return m_validationMethodHasBeenSet; }
77 inline void SetValidationMethod(const ValidationMethod& value) { m_validationMethodHasBeenSet = true; m_validationMethod = value; }
78 inline void SetValidationMethod(ValidationMethod&& value) { m_validationMethodHasBeenSet = true; m_validationMethod = std::move(value); }
80 inline RequestCertificateRequest& WithValidationMethod(ValidationMethod&& value) { SetValidationMethod(std::move(value)); return *this;}
82
84
104 inline const Aws::Vector<Aws::String>& GetSubjectAlternativeNames() const{ return m_subjectAlternativeNames; }
105 inline bool SubjectAlternativeNamesHasBeenSet() const { return m_subjectAlternativeNamesHasBeenSet; }
106 inline void SetSubjectAlternativeNames(const Aws::Vector<Aws::String>& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames = value; }
107 inline void SetSubjectAlternativeNames(Aws::Vector<Aws::String>&& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames = std::move(value); }
110 inline RequestCertificateRequest& AddSubjectAlternativeNames(const Aws::String& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.push_back(value); return *this; }
111 inline RequestCertificateRequest& AddSubjectAlternativeNames(Aws::String&& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.push_back(std::move(value)); return *this; }
112 inline RequestCertificateRequest& AddSubjectAlternativeNames(const char* value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.push_back(value); return *this; }
114
116
125 inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
126 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
127 inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
128 inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
129 inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
131 inline RequestCertificateRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
132 inline RequestCertificateRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
134
136
140 inline const Aws::Vector<DomainValidationOption>& GetDomainValidationOptions() const{ return m_domainValidationOptions; }
141 inline bool DomainValidationOptionsHasBeenSet() const { return m_domainValidationOptionsHasBeenSet; }
142 inline void SetDomainValidationOptions(const Aws::Vector<DomainValidationOption>& value) { m_domainValidationOptionsHasBeenSet = true; m_domainValidationOptions = value; }
143 inline void SetDomainValidationOptions(Aws::Vector<DomainValidationOption>&& value) { m_domainValidationOptionsHasBeenSet = true; m_domainValidationOptions = std::move(value); }
146 inline RequestCertificateRequest& AddDomainValidationOptions(const DomainValidationOption& value) { m_domainValidationOptionsHasBeenSet = true; m_domainValidationOptions.push_back(value); return *this; }
147 inline RequestCertificateRequest& AddDomainValidationOptions(DomainValidationOption&& value) { m_domainValidationOptionsHasBeenSet = true; m_domainValidationOptions.push_back(std::move(value)); return *this; }
149
151
160 inline const CertificateOptions& GetOptions() const{ return m_options; }
161 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
162 inline void SetOptions(const CertificateOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
163 inline void SetOptions(CertificateOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
164 inline RequestCertificateRequest& WithOptions(const CertificateOptions& value) { SetOptions(value); return *this;}
165 inline RequestCertificateRequest& WithOptions(CertificateOptions&& value) { SetOptions(std::move(value)); return *this;}
167
169
180 inline const Aws::String& GetCertificateAuthorityArn() const{ return m_certificateAuthorityArn; }
181 inline bool CertificateAuthorityArnHasBeenSet() const { return m_certificateAuthorityArnHasBeenSet; }
182 inline void SetCertificateAuthorityArn(const Aws::String& value) { m_certificateAuthorityArnHasBeenSet = true; m_certificateAuthorityArn = value; }
183 inline void SetCertificateAuthorityArn(Aws::String&& value) { m_certificateAuthorityArnHasBeenSet = true; m_certificateAuthorityArn = std::move(value); }
184 inline void SetCertificateAuthorityArn(const char* value) { m_certificateAuthorityArnHasBeenSet = true; m_certificateAuthorityArn.assign(value); }
187 inline RequestCertificateRequest& WithCertificateAuthorityArn(const char* value) { SetCertificateAuthorityArn(value); return *this;}
189
191
194 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
195 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
196 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
197 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
198 inline RequestCertificateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
199 inline RequestCertificateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
200 inline RequestCertificateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
201 inline RequestCertificateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
203
205
226 inline const KeyAlgorithm& GetKeyAlgorithm() const{ return m_keyAlgorithm; }
227 inline bool KeyAlgorithmHasBeenSet() const { return m_keyAlgorithmHasBeenSet; }
228 inline void SetKeyAlgorithm(const KeyAlgorithm& value) { m_keyAlgorithmHasBeenSet = true; m_keyAlgorithm = value; }
229 inline void SetKeyAlgorithm(KeyAlgorithm&& value) { m_keyAlgorithmHasBeenSet = true; m_keyAlgorithm = std::move(value); }
230 inline RequestCertificateRequest& WithKeyAlgorithm(const KeyAlgorithm& value) { SetKeyAlgorithm(value); return *this;}
231 inline RequestCertificateRequest& WithKeyAlgorithm(KeyAlgorithm&& value) { SetKeyAlgorithm(std::move(value)); return *this;}
233 private:
234
235 Aws::String m_domainName;
236 bool m_domainNameHasBeenSet = false;
237
238 ValidationMethod m_validationMethod;
239 bool m_validationMethodHasBeenSet = false;
240
241 Aws::Vector<Aws::String> m_subjectAlternativeNames;
242 bool m_subjectAlternativeNamesHasBeenSet = false;
243
244 Aws::String m_idempotencyToken;
245 bool m_idempotencyTokenHasBeenSet = false;
246
247 Aws::Vector<DomainValidationOption> m_domainValidationOptions;
248 bool m_domainValidationOptionsHasBeenSet = false;
249
250 CertificateOptions m_options;
251 bool m_optionsHasBeenSet = false;
252
253 Aws::String m_certificateAuthorityArn;
254 bool m_certificateAuthorityArnHasBeenSet = false;
255
256 Aws::Vector<Tag> m_tags;
257 bool m_tagsHasBeenSet = false;
258
259 KeyAlgorithm m_keyAlgorithm;
260 bool m_keyAlgorithmHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace ACM
265} // namespace Aws
void SetTags(const Aws::Vector< Tag > &value)
RequestCertificateRequest & AddTags(Tag &&value)
RequestCertificateRequest & WithCertificateAuthorityArn(const Aws::String &value)
RequestCertificateRequest & WithSubjectAlternativeNames(const Aws::Vector< Aws::String > &value)
RequestCertificateRequest & AddDomainValidationOptions(const DomainValidationOption &value)
void SetDomainValidationOptions(const Aws::Vector< DomainValidationOption > &value)
void SetSubjectAlternativeNames(const Aws::Vector< Aws::String > &value)
RequestCertificateRequest & AddSubjectAlternativeNames(const char *value)
AWS_ACM_API Aws::String SerializePayload() const override
RequestCertificateRequest & WithIdempotencyToken(const Aws::String &value)
RequestCertificateRequest & WithValidationMethod(const ValidationMethod &value)
RequestCertificateRequest & WithKeyAlgorithm(const KeyAlgorithm &value)
RequestCertificateRequest & AddSubjectAlternativeNames(const Aws::String &value)
RequestCertificateRequest & WithDomainValidationOptions(const Aws::Vector< DomainValidationOption > &value)
void SetOptions(const CertificateOptions &value)
RequestCertificateRequest & AddSubjectAlternativeNames(Aws::String &&value)
void SetValidationMethod(const ValidationMethod &value)
RequestCertificateRequest & WithTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Aws::String > & GetSubjectAlternativeNames() const
RequestCertificateRequest & AddTags(const Tag &value)
RequestCertificateRequest & AddDomainValidationOptions(DomainValidationOption &&value)
RequestCertificateRequest & WithDomainName(const char *value)
AWS_ACM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RequestCertificateRequest & WithValidationMethod(ValidationMethod &&value)
RequestCertificateRequest & WithCertificateAuthorityArn(const char *value)
RequestCertificateRequest & WithSubjectAlternativeNames(Aws::Vector< Aws::String > &&value)
RequestCertificateRequest & WithOptions(CertificateOptions &&value)
RequestCertificateRequest & WithTags(Aws::Vector< Tag > &&value)
RequestCertificateRequest & WithIdempotencyToken(Aws::String &&value)
RequestCertificateRequest & WithDomainValidationOptions(Aws::Vector< DomainValidationOption > &&value)
RequestCertificateRequest & WithDomainName(const Aws::String &value)
RequestCertificateRequest & WithIdempotencyToken(const char *value)
const ValidationMethod & GetValidationMethod() const
RequestCertificateRequest & WithOptions(const CertificateOptions &value)
RequestCertificateRequest & WithCertificateAuthorityArn(Aws::String &&value)
void SetSubjectAlternativeNames(Aws::Vector< Aws::String > &&value)
RequestCertificateRequest & WithDomainName(Aws::String &&value)
void SetCertificateAuthorityArn(const Aws::String &value)
RequestCertificateRequest & WithKeyAlgorithm(KeyAlgorithm &&value)
void SetDomainValidationOptions(Aws::Vector< DomainValidationOption > &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< DomainValidationOption > & GetDomainValidationOptions() 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