AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DomainAssociation.h
1
6#pragma once
7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/amplify/model/DomainStatus.h>
11#include <aws/amplify/model/UpdateStatus.h>
12#include <aws/amplify/model/Certificate.h>
13#include <aws/amplify/model/SubDomain.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Amplify
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_AMPLIFY_API DomainAssociation();
43 AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetDomainAssociationArn() const{ return m_domainAssociationArn; }
51 inline bool DomainAssociationArnHasBeenSet() const { return m_domainAssociationArnHasBeenSet; }
52 inline void SetDomainAssociationArn(const Aws::String& value) { m_domainAssociationArnHasBeenSet = true; m_domainAssociationArn = value; }
53 inline void SetDomainAssociationArn(Aws::String&& value) { m_domainAssociationArnHasBeenSet = true; m_domainAssociationArn = std::move(value); }
54 inline void SetDomainAssociationArn(const char* value) { m_domainAssociationArnHasBeenSet = true; m_domainAssociationArn.assign(value); }
56 inline DomainAssociation& WithDomainAssociationArn(Aws::String&& value) { SetDomainAssociationArn(std::move(value)); return *this;}
57 inline DomainAssociation& WithDomainAssociationArn(const char* value) { SetDomainAssociationArn(value); return *this;}
59
61
64 inline const Aws::String& GetDomainName() const{ return m_domainName; }
65 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
66 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
67 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
68 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
69 inline DomainAssociation& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
70 inline DomainAssociation& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
71 inline DomainAssociation& WithDomainName(const char* value) { SetDomainName(value); return *this;}
73
75
78 inline bool GetEnableAutoSubDomain() const{ return m_enableAutoSubDomain; }
79 inline bool EnableAutoSubDomainHasBeenSet() const { return m_enableAutoSubDomainHasBeenSet; }
80 inline void SetEnableAutoSubDomain(bool value) { m_enableAutoSubDomainHasBeenSet = true; m_enableAutoSubDomain = value; }
81 inline DomainAssociation& WithEnableAutoSubDomain(bool value) { SetEnableAutoSubDomain(value); return *this;}
83
85
88 inline const Aws::Vector<Aws::String>& GetAutoSubDomainCreationPatterns() const{ return m_autoSubDomainCreationPatterns; }
89 inline bool AutoSubDomainCreationPatternsHasBeenSet() const { return m_autoSubDomainCreationPatternsHasBeenSet; }
90 inline void SetAutoSubDomainCreationPatterns(const Aws::Vector<Aws::String>& value) { m_autoSubDomainCreationPatternsHasBeenSet = true; m_autoSubDomainCreationPatterns = value; }
91 inline void SetAutoSubDomainCreationPatterns(Aws::Vector<Aws::String>&& value) { m_autoSubDomainCreationPatternsHasBeenSet = true; m_autoSubDomainCreationPatterns = std::move(value); }
94 inline DomainAssociation& AddAutoSubDomainCreationPatterns(const Aws::String& value) { m_autoSubDomainCreationPatternsHasBeenSet = true; m_autoSubDomainCreationPatterns.push_back(value); return *this; }
95 inline DomainAssociation& AddAutoSubDomainCreationPatterns(Aws::String&& value) { m_autoSubDomainCreationPatternsHasBeenSet = true; m_autoSubDomainCreationPatterns.push_back(std::move(value)); return *this; }
96 inline DomainAssociation& AddAutoSubDomainCreationPatterns(const char* value) { m_autoSubDomainCreationPatternsHasBeenSet = true; m_autoSubDomainCreationPatterns.push_back(value); return *this; }
98
100
104 inline const Aws::String& GetAutoSubDomainIAMRole() const{ return m_autoSubDomainIAMRole; }
105 inline bool AutoSubDomainIAMRoleHasBeenSet() const { return m_autoSubDomainIAMRoleHasBeenSet; }
106 inline void SetAutoSubDomainIAMRole(const Aws::String& value) { m_autoSubDomainIAMRoleHasBeenSet = true; m_autoSubDomainIAMRole = value; }
107 inline void SetAutoSubDomainIAMRole(Aws::String&& value) { m_autoSubDomainIAMRoleHasBeenSet = true; m_autoSubDomainIAMRole = std::move(value); }
108 inline void SetAutoSubDomainIAMRole(const char* value) { m_autoSubDomainIAMRoleHasBeenSet = true; m_autoSubDomainIAMRole.assign(value); }
110 inline DomainAssociation& WithAutoSubDomainIAMRole(Aws::String&& value) { SetAutoSubDomainIAMRole(std::move(value)); return *this;}
111 inline DomainAssociation& WithAutoSubDomainIAMRole(const char* value) { SetAutoSubDomainIAMRole(value); return *this;}
113
115
118 inline const DomainStatus& GetDomainStatus() const{ return m_domainStatus; }
119 inline bool DomainStatusHasBeenSet() const { return m_domainStatusHasBeenSet; }
120 inline void SetDomainStatus(const DomainStatus& value) { m_domainStatusHasBeenSet = true; m_domainStatus = value; }
121 inline void SetDomainStatus(DomainStatus&& value) { m_domainStatusHasBeenSet = true; m_domainStatus = std::move(value); }
122 inline DomainAssociation& WithDomainStatus(const DomainStatus& value) { SetDomainStatus(value); return *this;}
123 inline DomainAssociation& WithDomainStatus(DomainStatus&& value) { SetDomainStatus(std::move(value)); return *this;}
125
127
150 inline const UpdateStatus& GetUpdateStatus() const{ return m_updateStatus; }
151 inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; }
152 inline void SetUpdateStatus(const UpdateStatus& value) { m_updateStatusHasBeenSet = true; m_updateStatus = value; }
153 inline void SetUpdateStatus(UpdateStatus&& value) { m_updateStatusHasBeenSet = true; m_updateStatus = std::move(value); }
154 inline DomainAssociation& WithUpdateStatus(const UpdateStatus& value) { SetUpdateStatus(value); return *this;}
155 inline DomainAssociation& WithUpdateStatus(UpdateStatus&& value) { SetUpdateStatus(std::move(value)); return *this;}
157
159
163 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
164 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
165 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
166 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
167 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
168 inline DomainAssociation& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
169 inline DomainAssociation& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
170 inline DomainAssociation& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
172
174
177 inline const Aws::String& GetCertificateVerificationDNSRecord() const{ return m_certificateVerificationDNSRecord; }
178 inline bool CertificateVerificationDNSRecordHasBeenSet() const { return m_certificateVerificationDNSRecordHasBeenSet; }
179 inline void SetCertificateVerificationDNSRecord(const Aws::String& value) { m_certificateVerificationDNSRecordHasBeenSet = true; m_certificateVerificationDNSRecord = value; }
180 inline void SetCertificateVerificationDNSRecord(Aws::String&& value) { m_certificateVerificationDNSRecordHasBeenSet = true; m_certificateVerificationDNSRecord = std::move(value); }
181 inline void SetCertificateVerificationDNSRecord(const char* value) { m_certificateVerificationDNSRecordHasBeenSet = true; m_certificateVerificationDNSRecord.assign(value); }
186
188
191 inline const Aws::Vector<SubDomain>& GetSubDomains() const{ return m_subDomains; }
192 inline bool SubDomainsHasBeenSet() const { return m_subDomainsHasBeenSet; }
193 inline void SetSubDomains(const Aws::Vector<SubDomain>& value) { m_subDomainsHasBeenSet = true; m_subDomains = value; }
194 inline void SetSubDomains(Aws::Vector<SubDomain>&& value) { m_subDomainsHasBeenSet = true; m_subDomains = std::move(value); }
195 inline DomainAssociation& WithSubDomains(const Aws::Vector<SubDomain>& value) { SetSubDomains(value); return *this;}
196 inline DomainAssociation& WithSubDomains(Aws::Vector<SubDomain>&& value) { SetSubDomains(std::move(value)); return *this;}
197 inline DomainAssociation& AddSubDomains(const SubDomain& value) { m_subDomainsHasBeenSet = true; m_subDomains.push_back(value); return *this; }
198 inline DomainAssociation& AddSubDomains(SubDomain&& value) { m_subDomainsHasBeenSet = true; m_subDomains.push_back(std::move(value)); return *this; }
200
202
210 inline const Certificate& GetCertificate() const{ return m_certificate; }
211 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
212 inline void SetCertificate(const Certificate& value) { m_certificateHasBeenSet = true; m_certificate = value; }
213 inline void SetCertificate(Certificate&& value) { m_certificateHasBeenSet = true; m_certificate = std::move(value); }
214 inline DomainAssociation& WithCertificate(const Certificate& value) { SetCertificate(value); return *this;}
215 inline DomainAssociation& WithCertificate(Certificate&& value) { SetCertificate(std::move(value)); return *this;}
217 private:
218
219 Aws::String m_domainAssociationArn;
220 bool m_domainAssociationArnHasBeenSet = false;
221
222 Aws::String m_domainName;
223 bool m_domainNameHasBeenSet = false;
224
225 bool m_enableAutoSubDomain;
226 bool m_enableAutoSubDomainHasBeenSet = false;
227
228 Aws::Vector<Aws::String> m_autoSubDomainCreationPatterns;
229 bool m_autoSubDomainCreationPatternsHasBeenSet = false;
230
231 Aws::String m_autoSubDomainIAMRole;
232 bool m_autoSubDomainIAMRoleHasBeenSet = false;
233
234 DomainStatus m_domainStatus;
235 bool m_domainStatusHasBeenSet = false;
236
237 UpdateStatus m_updateStatus;
238 bool m_updateStatusHasBeenSet = false;
239
240 Aws::String m_statusReason;
241 bool m_statusReasonHasBeenSet = false;
242
243 Aws::String m_certificateVerificationDNSRecord;
244 bool m_certificateVerificationDNSRecordHasBeenSet = false;
245
246 Aws::Vector<SubDomain> m_subDomains;
247 bool m_subDomainsHasBeenSet = false;
248
249 Certificate m_certificate;
250 bool m_certificateHasBeenSet = false;
251 };
252
253} // namespace Model
254} // namespace Amplify
255} // namespace Aws
void SetDomainAssociationArn(const Aws::String &value)
DomainAssociation & WithDomainStatus(DomainStatus &&value)
DomainAssociation & AddAutoSubDomainCreationPatterns(const Aws::String &value)
const Certificate & GetCertificate() const
const Aws::Vector< Aws::String > & GetAutoSubDomainCreationPatterns() const
const Aws::Vector< SubDomain > & GetSubDomains() const
const Aws::String & GetCertificateVerificationDNSRecord() const
void SetAutoSubDomainIAMRole(const Aws::String &value)
const Aws::String & GetStatusReason() const
void SetDomainName(Aws::String &&value)
DomainAssociation & AddSubDomains(const SubDomain &value)
DomainAssociation & AddAutoSubDomainCreationPatterns(Aws::String &&value)
void SetCertificateVerificationDNSRecord(Aws::String &&value)
DomainAssociation & WithDomainName(const Aws::String &value)
DomainAssociation & WithCertificateVerificationDNSRecord(Aws::String &&value)
const Aws::String & GetDomainName() const
DomainAssociation & WithStatusReason(const Aws::String &value)
void SetDomainStatus(DomainStatus &&value)
AWS_AMPLIFY_API DomainAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatusReason(Aws::String &&value)
DomainAssociation & WithStatusReason(Aws::String &&value)
void SetCertificateVerificationDNSRecord(const char *value)
void SetDomainAssociationArn(const char *value)
void SetAutoSubDomainIAMRole(const char *value)
DomainAssociation & WithDomainAssociationArn(const char *value)
void SetDomainName(const Aws::String &value)
DomainAssociation & WithUpdateStatus(UpdateStatus &&value)
DomainAssociation & WithSubDomains(const Aws::Vector< SubDomain > &value)
DomainAssociation & WithAutoSubDomainIAMRole(const Aws::String &value)
const Aws::String & GetDomainAssociationArn() const
void SetAutoSubDomainCreationPatterns(const Aws::Vector< Aws::String > &value)
void SetAutoSubDomainIAMRole(Aws::String &&value)
const UpdateStatus & GetUpdateStatus() const
void SetSubDomains(Aws::Vector< SubDomain > &&value)
DomainAssociation & WithAutoSubDomainCreationPatterns(const Aws::Vector< Aws::String > &value)
DomainAssociation & AddSubDomains(SubDomain &&value)
void SetCertificate(const Certificate &value)
void SetUpdateStatus(UpdateStatus &&value)
DomainAssociation & WithDomainAssociationArn(Aws::String &&value)
DomainAssociation & WithDomainStatus(const DomainStatus &value)
DomainAssociation & AddAutoSubDomainCreationPatterns(const char *value)
void SetSubDomains(const Aws::Vector< SubDomain > &value)
DomainAssociation & WithEnableAutoSubDomain(bool value)
void SetCertificateVerificationDNSRecord(const Aws::String &value)
DomainAssociation & WithDomainAssociationArn(const Aws::String &value)
AWS_AMPLIFY_API DomainAssociation(Aws::Utils::Json::JsonView jsonValue)
DomainAssociation & WithDomainName(Aws::String &&value)
DomainAssociation & WithCertificateVerificationDNSRecord(const char *value)
AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const
DomainAssociation & WithAutoSubDomainCreationPatterns(Aws::Vector< Aws::String > &&value)
DomainAssociation & WithUpdateStatus(const UpdateStatus &value)
void SetDomainStatus(const DomainStatus &value)
const DomainStatus & GetDomainStatus() const
DomainAssociation & WithDomainName(const char *value)
const Aws::String & GetAutoSubDomainIAMRole() const
void SetAutoSubDomainCreationPatterns(Aws::Vector< Aws::String > &&value)
DomainAssociation & WithCertificateVerificationDNSRecord(const Aws::String &value)
void SetDomainAssociationArn(Aws::String &&value)
DomainAssociation & WithAutoSubDomainIAMRole(Aws::String &&value)
void SetUpdateStatus(const UpdateStatus &value)
DomainAssociation & WithCertificate(const Certificate &value)
void SetStatusReason(const Aws::String &value)
DomainAssociation & WithCertificate(Certificate &&value)
DomainAssociation & WithStatusReason(const char *value)
DomainAssociation & WithSubDomains(Aws::Vector< SubDomain > &&value)
DomainAssociation & WithAutoSubDomainIAMRole(const char *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