AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCertificateName(const Aws::String& value) { m_certificateNameHasBeenSet = true; m_certificateName = value; }
46 inline void SetCertificateName(Aws::String&& value) { m_certificateNameHasBeenSet = true; m_certificateName = std::move(value); }
47 inline void SetCertificateName(const char* value) { m_certificateNameHasBeenSet = true; m_certificateName.assign(value); }
48 inline CreateCertificateRequest& WithCertificateName(const Aws::String& value) { SetCertificateName(value); return *this;}
49 inline CreateCertificateRequest& WithCertificateName(Aws::String&& value) { SetCertificateName(std::move(value)); return *this;}
50 inline CreateCertificateRequest& WithCertificateName(const char* value) { SetCertificateName(value); return *this;}
52
54
57 inline const Aws::String& GetDomainName() const{ return m_domainName; }
58 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
59 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
60 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
61 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
62 inline CreateCertificateRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
63 inline CreateCertificateRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
64 inline CreateCertificateRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
66
68
75 inline const Aws::Vector<Aws::String>& GetSubjectAlternativeNames() const{ return m_subjectAlternativeNames; }
76 inline bool SubjectAlternativeNamesHasBeenSet() const { return m_subjectAlternativeNamesHasBeenSet; }
77 inline void SetSubjectAlternativeNames(const Aws::Vector<Aws::String>& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames = value; }
78 inline void SetSubjectAlternativeNames(Aws::Vector<Aws::String>&& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames = std::move(value); }
81 inline CreateCertificateRequest& AddSubjectAlternativeNames(const Aws::String& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.push_back(value); return *this; }
82 inline CreateCertificateRequest& AddSubjectAlternativeNames(Aws::String&& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.push_back(std::move(value)); return *this; }
83 inline CreateCertificateRequest& AddSubjectAlternativeNames(const char* value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.push_back(value); return *this; }
85
87
92 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
95 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
96 inline CreateCertificateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
97 inline CreateCertificateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
98 inline CreateCertificateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
99 inline CreateCertificateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
101 private:
102
103 Aws::String m_certificateName;
104 bool m_certificateNameHasBeenSet = false;
105
106 Aws::String m_domainName;
107 bool m_domainNameHasBeenSet = false;
108
109 Aws::Vector<Aws::String> m_subjectAlternativeNames;
110 bool m_subjectAlternativeNamesHasBeenSet = false;
111
112 Aws::Vector<Tag> m_tags;
113 bool m_tagsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace Lightsail
118} // namespace Aws
CreateCertificateRequest & AddTags(Tag &&value)
CreateCertificateRequest & WithCertificateName(const char *value)
CreateCertificateRequest & WithSubjectAlternativeNames(const Aws::Vector< Aws::String > &value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCertificateRequest & AddSubjectAlternativeNames(const char *value)
CreateCertificateRequest & WithDomainName(const char *value)
CreateCertificateRequest & WithCertificateName(const Aws::String &value)
CreateCertificateRequest & WithTags(Aws::Vector< Tag > &&value)
CreateCertificateRequest & WithSubjectAlternativeNames(Aws::Vector< Aws::String > &&value)
CreateCertificateRequest & WithDomainName(const Aws::String &value)
CreateCertificateRequest & AddTags(const Tag &value)
CreateCertificateRequest & AddSubjectAlternativeNames(Aws::String &&value)
CreateCertificateRequest & WithDomainName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateCertificateRequest & WithCertificateName(Aws::String &&value)
const Aws::Vector< Aws::String > & GetSubjectAlternativeNames() const
void SetSubjectAlternativeNames(Aws::Vector< Aws::String > &&value)
CreateCertificateRequest & AddSubjectAlternativeNames(const Aws::String &value)
void SetSubjectAlternativeNames(const Aws::Vector< Aws::String > &value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
CreateCertificateRequest & WithTags(const Aws::Vector< Tag > &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