AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
CertificateSummary.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/Lightsail_EXPORTS.h>
10#include <aws/lightsail/model/Certificate.h>
11#include <aws/lightsail/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail {
23namespace Model {
24
32 public:
33 AWS_LIGHTSAIL_API CertificateSummary() = default;
34 AWS_LIGHTSAIL_API CertificateSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
43 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
44 template <typename CertificateArnT = Aws::String>
45 void SetCertificateArn(CertificateArnT&& value) {
46 m_certificateArnHasBeenSet = true;
47 m_certificateArn = std::forward<CertificateArnT>(value);
48 }
49 template <typename CertificateArnT = Aws::String>
50 CertificateSummary& WithCertificateArn(CertificateArnT&& value) {
51 SetCertificateArn(std::forward<CertificateArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetCertificateName() const { return m_certificateName; }
61 inline bool CertificateNameHasBeenSet() const { return m_certificateNameHasBeenSet; }
62 template <typename CertificateNameT = Aws::String>
63 void SetCertificateName(CertificateNameT&& value) {
64 m_certificateNameHasBeenSet = true;
65 m_certificateName = std::forward<CertificateNameT>(value);
66 }
67 template <typename CertificateNameT = Aws::String>
68 CertificateSummary& WithCertificateName(CertificateNameT&& value) {
69 SetCertificateName(std::forward<CertificateNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDomainName() const { return m_domainName; }
79 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
80 template <typename DomainNameT = Aws::String>
81 void SetDomainName(DomainNameT&& value) {
82 m_domainNameHasBeenSet = true;
83 m_domainName = std::forward<DomainNameT>(value);
84 }
85 template <typename DomainNameT = Aws::String>
86 CertificateSummary& WithDomainName(DomainNameT&& value) {
87 SetDomainName(std::forward<DomainNameT>(value));
88 return *this;
89 }
91
93
96 inline const Certificate& GetCertificateDetail() const { return m_certificateDetail; }
97 inline bool CertificateDetailHasBeenSet() const { return m_certificateDetailHasBeenSet; }
98 template <typename CertificateDetailT = Certificate>
99 void SetCertificateDetail(CertificateDetailT&& value) {
100 m_certificateDetailHasBeenSet = true;
101 m_certificateDetail = std::forward<CertificateDetailT>(value);
102 }
103 template <typename CertificateDetailT = Certificate>
104 CertificateSummary& WithCertificateDetail(CertificateDetailT&& value) {
105 SetCertificateDetail(std::forward<CertificateDetailT>(value));
106 return *this;
107 }
109
111
117 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
118 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
119 template <typename TagsT = Aws::Vector<Tag>>
120 void SetTags(TagsT&& value) {
121 m_tagsHasBeenSet = true;
122 m_tags = std::forward<TagsT>(value);
123 }
124 template <typename TagsT = Aws::Vector<Tag>>
125 CertificateSummary& WithTags(TagsT&& value) {
126 SetTags(std::forward<TagsT>(value));
127 return *this;
128 }
129 template <typename TagsT = Tag>
130 CertificateSummary& AddTags(TagsT&& value) {
131 m_tagsHasBeenSet = true;
132 m_tags.emplace_back(std::forward<TagsT>(value));
133 return *this;
134 }
136 private:
137 Aws::String m_certificateArn;
138 bool m_certificateArnHasBeenSet = false;
139
140 Aws::String m_certificateName;
141 bool m_certificateNameHasBeenSet = false;
142
143 Aws::String m_domainName;
144 bool m_domainNameHasBeenSet = false;
145
146 Certificate m_certificateDetail;
147 bool m_certificateDetailHasBeenSet = false;
148
149 Aws::Vector<Tag> m_tags;
150 bool m_tagsHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace Lightsail
155} // namespace Aws
void SetCertificateDetail(CertificateDetailT &&value)
CertificateSummary & WithDomainName(DomainNameT &&value)
AWS_LIGHTSAIL_API CertificateSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
CertificateSummary & WithCertificateName(CertificateNameT &&value)
void SetCertificateArn(CertificateArnT &&value)
CertificateSummary & WithCertificateArn(CertificateArnT &&value)
const Certificate & GetCertificateDetail() const
void SetCertificateName(CertificateNameT &&value)
const Aws::String & GetCertificateName() const
const Aws::String & GetCertificateArn() const
AWS_LIGHTSAIL_API CertificateSummary(Aws::Utils::Json::JsonView jsonValue)
CertificateSummary & WithTags(TagsT &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API CertificateSummary()=default
const Aws::Vector< Tag > & GetTags() const
CertificateSummary & WithCertificateDetail(CertificateDetailT &&value)
CertificateSummary & AddTags(TagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue