AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateCertificateRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lightsail/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Lightsail
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LIGHTSAIL_API CreateCertificateRequest() = default;
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_LIGHTSAIL_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetCertificateName() const { return m_certificateName; }
44 inline bool CertificateNameHasBeenSet() const { return m_certificateNameHasBeenSet; }
45 template<typename CertificateNameT = Aws::String>
46 void SetCertificateName(CertificateNameT&& value) { m_certificateNameHasBeenSet = true; m_certificateName = std::forward<CertificateNameT>(value); }
47 template<typename CertificateNameT = Aws::String>
48 CreateCertificateRequest& WithCertificateName(CertificateNameT&& value) { SetCertificateName(std::forward<CertificateNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetDomainName() const { return m_domainName; }
56 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
57 template<typename DomainNameT = Aws::String>
58 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
59 template<typename DomainNameT = Aws::String>
60 CreateCertificateRequest& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
62
64
71 inline const Aws::Vector<Aws::String>& GetSubjectAlternativeNames() const { return m_subjectAlternativeNames; }
72 inline bool SubjectAlternativeNamesHasBeenSet() const { return m_subjectAlternativeNamesHasBeenSet; }
73 template<typename SubjectAlternativeNamesT = Aws::Vector<Aws::String>>
74 void SetSubjectAlternativeNames(SubjectAlternativeNamesT&& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames = std::forward<SubjectAlternativeNamesT>(value); }
75 template<typename SubjectAlternativeNamesT = Aws::Vector<Aws::String>>
76 CreateCertificateRequest& WithSubjectAlternativeNames(SubjectAlternativeNamesT&& value) { SetSubjectAlternativeNames(std::forward<SubjectAlternativeNamesT>(value)); return *this;}
77 template<typename SubjectAlternativeNamesT = Aws::String>
78 CreateCertificateRequest& AddSubjectAlternativeNames(SubjectAlternativeNamesT&& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.emplace_back(std::forward<SubjectAlternativeNamesT>(value)); return *this; }
80
82
87 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 template<typename TagsT = Aws::Vector<Tag>>
90 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
91 template<typename TagsT = Aws::Vector<Tag>>
92 CreateCertificateRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
93 template<typename TagsT = Tag>
94 CreateCertificateRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
96 private:
97
98 Aws::String m_certificateName;
99 bool m_certificateNameHasBeenSet = false;
100
101 Aws::String m_domainName;
102 bool m_domainNameHasBeenSet = false;
103
104 Aws::Vector<Aws::String> m_subjectAlternativeNames;
105 bool m_subjectAlternativeNamesHasBeenSet = false;
106
107 Aws::Vector<Tag> m_tags;
108 bool m_tagsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Lightsail
113} // 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