AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
CreateCertificateRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lightsail/LightsailRequest.h>
10#include <aws/lightsail/Lightsail_EXPORTS.h>
11#include <aws/lightsail/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Lightsail {
17namespace Model {
18
22 public:
23 AWS_LIGHTSAIL_API CreateCertificateRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateCertificate"; }
30
31 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetCertificateName() const { return m_certificateName; }
40 inline bool CertificateNameHasBeenSet() const { return m_certificateNameHasBeenSet; }
41 template <typename CertificateNameT = Aws::String>
42 void SetCertificateName(CertificateNameT&& value) {
43 m_certificateNameHasBeenSet = true;
44 m_certificateName = std::forward<CertificateNameT>(value);
45 }
46 template <typename CertificateNameT = Aws::String>
47 CreateCertificateRequest& WithCertificateName(CertificateNameT&& value) {
48 SetCertificateName(std::forward<CertificateNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDomainName() const { return m_domainName; }
58 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
59 template <typename DomainNameT = Aws::String>
60 void SetDomainName(DomainNameT&& value) {
61 m_domainNameHasBeenSet = true;
62 m_domainName = std::forward<DomainNameT>(value);
63 }
64 template <typename DomainNameT = Aws::String>
66 SetDomainName(std::forward<DomainNameT>(value));
67 return *this;
68 }
70
72
79 inline const Aws::Vector<Aws::String>& GetSubjectAlternativeNames() const { return m_subjectAlternativeNames; }
80 inline bool SubjectAlternativeNamesHasBeenSet() const { return m_subjectAlternativeNamesHasBeenSet; }
81 template <typename SubjectAlternativeNamesT = Aws::Vector<Aws::String>>
82 void SetSubjectAlternativeNames(SubjectAlternativeNamesT&& value) {
83 m_subjectAlternativeNamesHasBeenSet = true;
84 m_subjectAlternativeNames = std::forward<SubjectAlternativeNamesT>(value);
85 }
86 template <typename SubjectAlternativeNamesT = Aws::Vector<Aws::String>>
87 CreateCertificateRequest& WithSubjectAlternativeNames(SubjectAlternativeNamesT&& value) {
88 SetSubjectAlternativeNames(std::forward<SubjectAlternativeNamesT>(value));
89 return *this;
90 }
91 template <typename SubjectAlternativeNamesT = Aws::String>
92 CreateCertificateRequest& AddSubjectAlternativeNames(SubjectAlternativeNamesT&& value) {
93 m_subjectAlternativeNamesHasBeenSet = true;
94 m_subjectAlternativeNames.emplace_back(std::forward<SubjectAlternativeNamesT>(value));
95 return *this;
96 }
98
100
105 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 template <typename TagsT = Aws::Vector<Tag>>
108 void SetTags(TagsT&& value) {
109 m_tagsHasBeenSet = true;
110 m_tags = std::forward<TagsT>(value);
111 }
112 template <typename TagsT = Aws::Vector<Tag>>
114 SetTags(std::forward<TagsT>(value));
115 return *this;
116 }
117 template <typename TagsT = Tag>
119 m_tagsHasBeenSet = true;
120 m_tags.emplace_back(std::forward<TagsT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_certificateName;
126 bool m_certificateNameHasBeenSet = false;
127
128 Aws::String m_domainName;
129 bool m_domainNameHasBeenSet = false;
130
131 Aws::Vector<Aws::String> m_subjectAlternativeNames;
132 bool m_subjectAlternativeNamesHasBeenSet = false;
133
134 Aws::Vector<Tag> m_tags;
135 bool m_tagsHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace Lightsail
140} // namespace Aws
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCertificateRequest & AddSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
CreateCertificateRequest & WithCertificateName(CertificateNameT &&value)
AWS_LIGHTSAIL_API CreateCertificateRequest()=default
CreateCertificateRequest & AddTags(TagsT &&value)
CreateCertificateRequest & WithSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetSubjectAlternativeNames() const
CreateCertificateRequest & WithDomainName(DomainNameT &&value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
CreateCertificateRequest & WithTags(TagsT &&value)
void SetSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
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