AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
RequestCertificateRequest.h
1
6#pragma once
7#include <aws/acm/ACMRequest.h>
8#include <aws/acm/ACM_EXPORTS.h>
9#include <aws/acm/model/CertificateManagedBy.h>
10#include <aws/acm/model/CertificateOptions.h>
11#include <aws/acm/model/CertificateUsage.h>
12#include <aws/acm/model/DomainValidationOption.h>
13#include <aws/acm/model/KeyAlgorithm.h>
14#include <aws/acm/model/RootHierarchyType.h>
15#include <aws/acm/model/Tag.h>
16#include <aws/acm/model/ValidationMethod.h>
17#include <aws/core/utils/memory/stl/AWSString.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19
20#include <utility>
21
22namespace Aws {
23namespace ACM {
24namespace Model {
25
29 public:
30 AWS_ACM_API RequestCertificateRequest() = default;
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
45 AWS_ACM_API EndpointParameters GetEndpointContextParams() const override;
46
48
60 inline const Aws::String& GetDomainName() const { return m_domainName; }
61 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
62 template <typename DomainNameT = Aws::String>
63 void SetDomainName(DomainNameT&& value) {
64 m_domainNameHasBeenSet = true;
65 m_domainName = std::forward<DomainNameT>(value);
66 }
67 template <typename DomainNameT = Aws::String>
69 SetDomainName(std::forward<DomainNameT>(value));
70 return *this;
71 }
73
75
83 inline ValidationMethod GetValidationMethod() const { return m_validationMethod; }
84 inline bool ValidationMethodHasBeenSet() const { return m_validationMethodHasBeenSet; }
86 m_validationMethodHasBeenSet = true;
87 m_validationMethod = value;
88 }
94
96
116 inline const Aws::Vector<Aws::String>& GetSubjectAlternativeNames() const { return m_subjectAlternativeNames; }
117 inline bool SubjectAlternativeNamesHasBeenSet() const { return m_subjectAlternativeNamesHasBeenSet; }
118 template <typename SubjectAlternativeNamesT = Aws::Vector<Aws::String>>
119 void SetSubjectAlternativeNames(SubjectAlternativeNamesT&& value) {
120 m_subjectAlternativeNamesHasBeenSet = true;
121 m_subjectAlternativeNames = std::forward<SubjectAlternativeNamesT>(value);
122 }
123 template <typename SubjectAlternativeNamesT = Aws::Vector<Aws::String>>
124 RequestCertificateRequest& WithSubjectAlternativeNames(SubjectAlternativeNamesT&& value) {
125 SetSubjectAlternativeNames(std::forward<SubjectAlternativeNamesT>(value));
126 return *this;
127 }
128 template <typename SubjectAlternativeNamesT = Aws::String>
129 RequestCertificateRequest& AddSubjectAlternativeNames(SubjectAlternativeNamesT&& value) {
130 m_subjectAlternativeNamesHasBeenSet = true;
131 m_subjectAlternativeNames.emplace_back(std::forward<SubjectAlternativeNamesT>(value));
132 return *this;
133 }
135
137
146 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
147 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
148 template <typename IdempotencyTokenT = Aws::String>
149 void SetIdempotencyToken(IdempotencyTokenT&& value) {
150 m_idempotencyTokenHasBeenSet = true;
151 m_idempotencyToken = std::forward<IdempotencyTokenT>(value);
152 }
153 template <typename IdempotencyTokenT = Aws::String>
155 SetIdempotencyToken(std::forward<IdempotencyTokenT>(value));
156 return *this;
157 }
159
161
165 inline const Aws::Vector<DomainValidationOption>& GetDomainValidationOptions() const { return m_domainValidationOptions; }
166 inline bool DomainValidationOptionsHasBeenSet() const { return m_domainValidationOptionsHasBeenSet; }
167 template <typename DomainValidationOptionsT = Aws::Vector<DomainValidationOption>>
168 void SetDomainValidationOptions(DomainValidationOptionsT&& value) {
169 m_domainValidationOptionsHasBeenSet = true;
170 m_domainValidationOptions = std::forward<DomainValidationOptionsT>(value);
171 }
172 template <typename DomainValidationOptionsT = Aws::Vector<DomainValidationOption>>
173 RequestCertificateRequest& WithDomainValidationOptions(DomainValidationOptionsT&& value) {
174 SetDomainValidationOptions(std::forward<DomainValidationOptionsT>(value));
175 return *this;
176 }
177 template <typename DomainValidationOptionsT = DomainValidationOption>
178 RequestCertificateRequest& AddDomainValidationOptions(DomainValidationOptionsT&& value) {
179 m_domainValidationOptionsHasBeenSet = true;
180 m_domainValidationOptions.emplace_back(std::forward<DomainValidationOptionsT>(value));
181 return *this;
182 }
184
186
198 inline const CertificateOptions& GetOptions() const { return m_options; }
199 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
200 template <typename OptionsT = CertificateOptions>
201 void SetOptions(OptionsT&& value) {
202 m_optionsHasBeenSet = true;
203 m_options = std::forward<OptionsT>(value);
204 }
205 template <typename OptionsT = CertificateOptions>
207 SetOptions(std::forward<OptionsT>(value));
208 return *this;
209 }
211
213
224 inline const Aws::String& GetCertificateAuthorityArn() const { return m_certificateAuthorityArn; }
225 inline bool CertificateAuthorityArnHasBeenSet() const { return m_certificateAuthorityArnHasBeenSet; }
226 template <typename CertificateAuthorityArnT = Aws::String>
227 void SetCertificateAuthorityArn(CertificateAuthorityArnT&& value) {
228 m_certificateAuthorityArnHasBeenSet = true;
229 m_certificateAuthorityArn = std::forward<CertificateAuthorityArnT>(value);
230 }
231 template <typename CertificateAuthorityArnT = Aws::String>
232 RequestCertificateRequest& WithCertificateAuthorityArn(CertificateAuthorityArnT&& value) {
233 SetCertificateAuthorityArn(std::forward<CertificateAuthorityArnT>(value));
234 return *this;
235 }
237
239
242 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
243 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
244 template <typename TagsT = Aws::Vector<Tag>>
245 void SetTags(TagsT&& value) {
246 m_tagsHasBeenSet = true;
247 m_tags = std::forward<TagsT>(value);
248 }
249 template <typename TagsT = Aws::Vector<Tag>>
251 SetTags(std::forward<TagsT>(value));
252 return *this;
253 }
254 template <typename TagsT = Tag>
256 m_tagsHasBeenSet = true;
257 m_tags.emplace_back(std::forward<TagsT>(value));
258 return *this;
259 }
261
263
284 inline KeyAlgorithm GetKeyAlgorithm() const { return m_keyAlgorithm; }
285 inline bool KeyAlgorithmHasBeenSet() const { return m_keyAlgorithmHasBeenSet; }
286 inline void SetKeyAlgorithm(KeyAlgorithm value) {
287 m_keyAlgorithmHasBeenSet = true;
288 m_keyAlgorithm = value;
289 }
291 SetKeyAlgorithm(value);
292 return *this;
293 }
295
297
301 inline CertificateManagedBy GetManagedBy() const { return m_managedBy; }
302 inline bool ManagedByHasBeenSet() const { return m_managedByHasBeenSet; }
304 m_managedByHasBeenSet = true;
305 m_managedBy = value;
306 }
308 SetManagedBy(value);
309 return *this;
310 }
312
314
327 inline CertificateUsage GetCertificateUsage() const { return m_certificateUsage; }
328 inline bool CertificateUsageHasBeenSet() const { return m_certificateUsageHasBeenSet; }
330 m_certificateUsageHasBeenSet = true;
331 m_certificateUsage = value;
332 }
334 SetCertificateUsage(value);
335 return *this;
336 }
338
340
361 inline RootHierarchyType GetRootHierarchyType() const { return m_rootHierarchyType; }
362 inline bool RootHierarchyTypeHasBeenSet() const { return m_rootHierarchyTypeHasBeenSet; }
364 m_rootHierarchyTypeHasBeenSet = true;
365 m_rootHierarchyType = value;
366 }
369 return *this;
370 }
372 private:
373 Aws::String m_domainName;
374
376
377 Aws::Vector<Aws::String> m_subjectAlternativeNames;
378
379 Aws::String m_idempotencyToken;
380
381 Aws::Vector<DomainValidationOption> m_domainValidationOptions;
382
383 CertificateOptions m_options;
384
385 Aws::String m_certificateAuthorityArn;
386
387 Aws::Vector<Tag> m_tags;
388
389 KeyAlgorithm m_keyAlgorithm{KeyAlgorithm::NOT_SET};
390
392
394
396 bool m_domainNameHasBeenSet = false;
397 bool m_validationMethodHasBeenSet = false;
398 bool m_subjectAlternativeNamesHasBeenSet = false;
399 bool m_idempotencyTokenHasBeenSet = false;
400 bool m_domainValidationOptionsHasBeenSet = false;
401 bool m_optionsHasBeenSet = false;
402 bool m_certificateAuthorityArnHasBeenSet = false;
403 bool m_tagsHasBeenSet = false;
404 bool m_keyAlgorithmHasBeenSet = false;
405 bool m_managedByHasBeenSet = false;
406 bool m_certificateUsageHasBeenSet = false;
407 bool m_rootHierarchyTypeHasBeenSet = false;
408};
409
410} // namespace Model
411} // namespace ACM
412} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
Definition ACMRequest.h:18
RequestCertificateRequest & AddSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
RequestCertificateRequest & WithRootHierarchyType(RootHierarchyType value)
RequestCertificateRequest & WithKeyAlgorithm(KeyAlgorithm value)
AWS_ACM_API Aws::String SerializePayload() const override
RequestCertificateRequest & WithManagedBy(CertificateManagedBy value)
RequestCertificateRequest & WithTags(TagsT &&value)
void SetCertificateAuthorityArn(CertificateAuthorityArnT &&value)
const Aws::Vector< Aws::String > & GetSubjectAlternativeNames() const
AWS_ACM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetDomainValidationOptions(DomainValidationOptionsT &&value)
RequestCertificateRequest & WithCertificateUsage(CertificateUsage value)
RequestCertificateRequest & WithSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
RequestCertificateRequest & AddDomainValidationOptions(DomainValidationOptionsT &&value)
RequestCertificateRequest & WithDomainName(DomainNameT &&value)
RequestCertificateRequest & WithDomainValidationOptions(DomainValidationOptionsT &&value)
RequestCertificateRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
RequestCertificateRequest & WithOptions(OptionsT &&value)
void SetSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
AWS_ACM_API RequestCertificateRequest()=default
virtual const char * GetServiceRequestName() const override
RequestCertificateRequest & AddTags(TagsT &&value)
RequestCertificateRequest & WithValidationMethod(ValidationMethod value)
RequestCertificateRequest & WithCertificateAuthorityArn(CertificateAuthorityArnT &&value)
const Aws::Vector< DomainValidationOption > & GetDomainValidationOptions() const
AWS_ACM_API EndpointParameters GetEndpointContextParams() const override
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