AWS SDK for C++  1.9.108
AWS SDK for C++
CreateCertificateRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Lightsail
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateCertificate"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetCertificateName() const{ return m_certificateName; }
43 
47  inline bool CertificateNameHasBeenSet() const { return m_certificateNameHasBeenSet; }
48 
52  inline void SetCertificateName(const Aws::String& value) { m_certificateNameHasBeenSet = true; m_certificateName = value; }
53 
57  inline void SetCertificateName(Aws::String&& value) { m_certificateNameHasBeenSet = true; m_certificateName = std::move(value); }
58 
62  inline void SetCertificateName(const char* value) { m_certificateNameHasBeenSet = true; m_certificateName.assign(value); }
63 
67  inline CreateCertificateRequest& WithCertificateName(const Aws::String& value) { SetCertificateName(value); return *this;}
68 
72  inline CreateCertificateRequest& WithCertificateName(Aws::String&& value) { SetCertificateName(std::move(value)); return *this;}
73 
77  inline CreateCertificateRequest& WithCertificateName(const char* value) { SetCertificateName(value); return *this;}
78 
79 
83  inline const Aws::String& GetDomainName() const{ return m_domainName; }
84 
88  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
89 
93  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
94 
98  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
99 
103  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
104 
108  inline CreateCertificateRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
109 
113  inline CreateCertificateRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
114 
118  inline CreateCertificateRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
119 
120 
128  inline const Aws::Vector<Aws::String>& GetSubjectAlternativeNames() const{ return m_subjectAlternativeNames; }
129 
137  inline bool SubjectAlternativeNamesHasBeenSet() const { return m_subjectAlternativeNamesHasBeenSet; }
138 
146  inline void SetSubjectAlternativeNames(const Aws::Vector<Aws::String>& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames = value; }
147 
155  inline void SetSubjectAlternativeNames(Aws::Vector<Aws::String>&& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames = std::move(value); }
156 
164  inline CreateCertificateRequest& WithSubjectAlternativeNames(const Aws::Vector<Aws::String>& value) { SetSubjectAlternativeNames(value); return *this;}
165 
173  inline CreateCertificateRequest& WithSubjectAlternativeNames(Aws::Vector<Aws::String>&& value) { SetSubjectAlternativeNames(std::move(value)); return *this;}
174 
182  inline CreateCertificateRequest& AddSubjectAlternativeNames(const Aws::String& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.push_back(value); return *this; }
183 
191  inline CreateCertificateRequest& AddSubjectAlternativeNames(Aws::String&& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.push_back(std::move(value)); return *this; }
192 
200  inline CreateCertificateRequest& AddSubjectAlternativeNames(const char* value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.push_back(value); return *this; }
201 
202 
208  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
209 
215  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
216 
222  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
223 
229  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
230 
236  inline CreateCertificateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
237 
243  inline CreateCertificateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
244 
250  inline CreateCertificateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
251 
257  inline CreateCertificateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
258 
259  private:
260 
261  Aws::String m_certificateName;
262  bool m_certificateNameHasBeenSet;
263 
264  Aws::String m_domainName;
265  bool m_domainNameHasBeenSet;
266 
267  Aws::Vector<Aws::String> m_subjectAlternativeNames;
268  bool m_subjectAlternativeNamesHasBeenSet;
269 
270  Aws::Vector<Tag> m_tags;
271  bool m_tagsHasBeenSet;
272  };
273 
274 } // namespace Model
275 } // namespace Lightsail
276 } // namespace Aws
Aws::Lightsail::Model::CreateCertificateRequest::WithCertificateName
CreateCertificateRequest & WithCertificateName(const char *value)
Definition: CreateCertificateRequest.h:77
Aws::Lightsail::Model::CreateCertificateRequest
Definition: CreateCertificateRequest.h:24
Aws::Lightsail::Model::CreateCertificateRequest::WithDomainName
CreateCertificateRequest & WithDomainName(const char *value)
Definition: CreateCertificateRequest.h:118
Aws::Lightsail::Model::CreateCertificateRequest::SetSubjectAlternativeNames
void SetSubjectAlternativeNames(const Aws::Vector< Aws::String > &value)
Definition: CreateCertificateRequest.h:146
Aws::Lightsail::Model::CreateCertificateRequest::WithSubjectAlternativeNames
CreateCertificateRequest & WithSubjectAlternativeNames(const Aws::Vector< Aws::String > &value)
Definition: CreateCertificateRequest.h:164
Aws::Lightsail::Model::CreateCertificateRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateCertificateRequest.h:222
Aws::Lightsail::Model::CreateCertificateRequest::SetDomainName
void SetDomainName(const char *value)
Definition: CreateCertificateRequest.h:103
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::CreateCertificateRequest::SetCertificateName
void SetCertificateName(Aws::String &&value)
Definition: CreateCertificateRequest.h:57
Aws::Lightsail::Model::CreateCertificateRequest::SetCertificateName
void SetCertificateName(const char *value)
Definition: CreateCertificateRequest.h:62
Aws::Lightsail::Model::CreateCertificateRequest::SubjectAlternativeNamesHasBeenSet
bool SubjectAlternativeNamesHasBeenSet() const
Definition: CreateCertificateRequest.h:137
Aws::Lightsail::Model::CreateCertificateRequest::WithDomainName
CreateCertificateRequest & WithDomainName(const Aws::String &value)
Definition: CreateCertificateRequest.h:108
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::CreateCertificateRequest::AddSubjectAlternativeNames
CreateCertificateRequest & AddSubjectAlternativeNames(Aws::String &&value)
Definition: CreateCertificateRequest.h:191
Aws::Lightsail::Model::CreateCertificateRequest::WithCertificateName
CreateCertificateRequest & WithCertificateName(Aws::String &&value)
Definition: CreateCertificateRequest.h:72
Aws::Lightsail::Model::CreateCertificateRequest::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: CreateCertificateRequest.h:93
AWSVector.h
Aws::Lightsail::Model::CreateCertificateRequest::WithTags
CreateCertificateRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateCertificateRequest.h:243
Aws::Lightsail::Model::CreateCertificateRequest::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: CreateCertificateRequest.h:98
LightsailRequest.h
Aws::Lightsail::Model::CreateCertificateRequest::SetSubjectAlternativeNames
void SetSubjectAlternativeNames(Aws::Vector< Aws::String > &&value)
Definition: CreateCertificateRequest.h:155
Aws::Lightsail::Model::CreateCertificateRequest::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: CreateCertificateRequest.h:88
Tag.h
Aws::Lightsail::Model::CreateCertificateRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateCertificateRequest.h:208
Aws::Lightsail::Model::CreateCertificateRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateCertificateRequest.h:229
Aws::Lightsail::Model::CreateCertificateRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateCertificateRequest.h:215
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::Tag
Definition: Tag.h:35
AWSString.h
Aws::Lightsail::Model::CreateCertificateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::CreateCertificateRequest::AddTags
CreateCertificateRequest & AddTags(const Tag &value)
Definition: CreateCertificateRequest.h:250
Aws::Lightsail::Model::CreateCertificateRequest::GetSubjectAlternativeNames
const Aws::Vector< Aws::String > & GetSubjectAlternativeNames() const
Definition: CreateCertificateRequest.h:128
Aws::Lightsail::Model::CreateCertificateRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Lightsail_EXPORTS.h
Aws::Lightsail::Model::CreateCertificateRequest::WithDomainName
CreateCertificateRequest & WithDomainName(Aws::String &&value)
Definition: CreateCertificateRequest.h:113
Aws::Lightsail::Model::CreateCertificateRequest::SetCertificateName
void SetCertificateName(const Aws::String &value)
Definition: CreateCertificateRequest.h:52
Aws::Lightsail::Model::CreateCertificateRequest::AddSubjectAlternativeNames
CreateCertificateRequest & AddSubjectAlternativeNames(const char *value)
Definition: CreateCertificateRequest.h:200
Aws::Lightsail::Model::CreateCertificateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateCertificateRequest.h:32
Aws::Lightsail::Model::CreateCertificateRequest::CreateCertificateRequest
CreateCertificateRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::CreateCertificateRequest::AddTags
CreateCertificateRequest & AddTags(Tag &&value)
Definition: CreateCertificateRequest.h:257
Aws::Lightsail::Model::CreateCertificateRequest::WithSubjectAlternativeNames
CreateCertificateRequest & WithSubjectAlternativeNames(Aws::Vector< Aws::String > &&value)
Definition: CreateCertificateRequest.h:173
Aws::Lightsail::Model::CreateCertificateRequest::WithCertificateName
CreateCertificateRequest & WithCertificateName(const Aws::String &value)
Definition: CreateCertificateRequest.h:67
Aws::Lightsail::Model::CreateCertificateRequest::CertificateNameHasBeenSet
bool CertificateNameHasBeenSet() const
Definition: CreateCertificateRequest.h:47
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::CreateCertificateRequest::WithTags
CreateCertificateRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateCertificateRequest.h:236
Aws::Lightsail::Model::CreateCertificateRequest::AddSubjectAlternativeNames
CreateCertificateRequest & AddSubjectAlternativeNames(const Aws::String &value)
Definition: CreateCertificateRequest.h:182
Aws::Lightsail::Model::CreateCertificateRequest::GetDomainName
const Aws::String & GetDomainName() const
Definition: CreateCertificateRequest.h:83
Aws::Lightsail::Model::CreateCertificateRequest::GetCertificateName
const Aws::String & GetCertificateName() const
Definition: CreateCertificateRequest.h:42