AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DistinguishedName.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/acm/model/CustomAttribute.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ACM {
22namespace Model {
23
30 public:
31 AWS_ACM_API DistinguishedName() = default;
35
37
40 inline const Aws::String& GetCommonName() const { return m_commonName; }
41 inline bool CommonNameHasBeenSet() const { return m_commonNameHasBeenSet; }
42 template <typename CommonNameT = Aws::String>
43 void SetCommonName(CommonNameT&& value) {
44 m_commonNameHasBeenSet = true;
45 m_commonName = std::forward<CommonNameT>(value);
46 }
47 template <typename CommonNameT = Aws::String>
48 DistinguishedName& WithCommonName(CommonNameT&& value) {
49 SetCommonName(std::forward<CommonNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetDomainComponents() const { return m_domainComponents; }
59 inline bool DomainComponentsHasBeenSet() const { return m_domainComponentsHasBeenSet; }
60 template <typename DomainComponentsT = Aws::Vector<Aws::String>>
61 void SetDomainComponents(DomainComponentsT&& value) {
62 m_domainComponentsHasBeenSet = true;
63 m_domainComponents = std::forward<DomainComponentsT>(value);
64 }
65 template <typename DomainComponentsT = Aws::Vector<Aws::String>>
66 DistinguishedName& WithDomainComponents(DomainComponentsT&& value) {
67 SetDomainComponents(std::forward<DomainComponentsT>(value));
68 return *this;
69 }
70 template <typename DomainComponentsT = Aws::String>
71 DistinguishedName& AddDomainComponents(DomainComponentsT&& value) {
72 m_domainComponentsHasBeenSet = true;
73 m_domainComponents.emplace_back(std::forward<DomainComponentsT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetCountry() const { return m_country; }
83 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
84 template <typename CountryT = Aws::String>
85 void SetCountry(CountryT&& value) {
86 m_countryHasBeenSet = true;
87 m_country = std::forward<CountryT>(value);
88 }
89 template <typename CountryT = Aws::String>
90 DistinguishedName& WithCountry(CountryT&& value) {
91 SetCountry(std::forward<CountryT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::Vector<CustomAttribute>& GetCustomAttributes() const { return m_customAttributes; }
102 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
103 template <typename CustomAttributesT = Aws::Vector<CustomAttribute>>
104 void SetCustomAttributes(CustomAttributesT&& value) {
105 m_customAttributesHasBeenSet = true;
106 m_customAttributes = std::forward<CustomAttributesT>(value);
107 }
108 template <typename CustomAttributesT = Aws::Vector<CustomAttribute>>
109 DistinguishedName& WithCustomAttributes(CustomAttributesT&& value) {
110 SetCustomAttributes(std::forward<CustomAttributesT>(value));
111 return *this;
112 }
113 template <typename CustomAttributesT = CustomAttribute>
114 DistinguishedName& AddCustomAttributes(CustomAttributesT&& value) {
115 m_customAttributesHasBeenSet = true;
116 m_customAttributes.emplace_back(std::forward<CustomAttributesT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetDistinguishedNameQualifier() const { return m_distinguishedNameQualifier; }
126 inline bool DistinguishedNameQualifierHasBeenSet() const { return m_distinguishedNameQualifierHasBeenSet; }
127 template <typename DistinguishedNameQualifierT = Aws::String>
128 void SetDistinguishedNameQualifier(DistinguishedNameQualifierT&& value) {
129 m_distinguishedNameQualifierHasBeenSet = true;
130 m_distinguishedNameQualifier = std::forward<DistinguishedNameQualifierT>(value);
131 }
132 template <typename DistinguishedNameQualifierT = Aws::String>
133 DistinguishedName& WithDistinguishedNameQualifier(DistinguishedNameQualifierT&& value) {
134 SetDistinguishedNameQualifier(std::forward<DistinguishedNameQualifierT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetGenerationQualifier() const { return m_generationQualifier; }
144 inline bool GenerationQualifierHasBeenSet() const { return m_generationQualifierHasBeenSet; }
145 template <typename GenerationQualifierT = Aws::String>
146 void SetGenerationQualifier(GenerationQualifierT&& value) {
147 m_generationQualifierHasBeenSet = true;
148 m_generationQualifier = std::forward<GenerationQualifierT>(value);
149 }
150 template <typename GenerationQualifierT = Aws::String>
151 DistinguishedName& WithGenerationQualifier(GenerationQualifierT&& value) {
152 SetGenerationQualifier(std::forward<GenerationQualifierT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::String& GetGivenName() const { return m_givenName; }
162 inline bool GivenNameHasBeenSet() const { return m_givenNameHasBeenSet; }
163 template <typename GivenNameT = Aws::String>
164 void SetGivenName(GivenNameT&& value) {
165 m_givenNameHasBeenSet = true;
166 m_givenName = std::forward<GivenNameT>(value);
167 }
168 template <typename GivenNameT = Aws::String>
169 DistinguishedName& WithGivenName(GivenNameT&& value) {
170 SetGivenName(std::forward<GivenNameT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::String& GetInitials() const { return m_initials; }
180 inline bool InitialsHasBeenSet() const { return m_initialsHasBeenSet; }
181 template <typename InitialsT = Aws::String>
182 void SetInitials(InitialsT&& value) {
183 m_initialsHasBeenSet = true;
184 m_initials = std::forward<InitialsT>(value);
185 }
186 template <typename InitialsT = Aws::String>
187 DistinguishedName& WithInitials(InitialsT&& value) {
188 SetInitials(std::forward<InitialsT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::String& GetLocality() const { return m_locality; }
198 inline bool LocalityHasBeenSet() const { return m_localityHasBeenSet; }
199 template <typename LocalityT = Aws::String>
200 void SetLocality(LocalityT&& value) {
201 m_localityHasBeenSet = true;
202 m_locality = std::forward<LocalityT>(value);
203 }
204 template <typename LocalityT = Aws::String>
205 DistinguishedName& WithLocality(LocalityT&& value) {
206 SetLocality(std::forward<LocalityT>(value));
207 return *this;
208 }
210
212
215 inline const Aws::String& GetOrganization() const { return m_organization; }
216 inline bool OrganizationHasBeenSet() const { return m_organizationHasBeenSet; }
217 template <typename OrganizationT = Aws::String>
218 void SetOrganization(OrganizationT&& value) {
219 m_organizationHasBeenSet = true;
220 m_organization = std::forward<OrganizationT>(value);
221 }
222 template <typename OrganizationT = Aws::String>
223 DistinguishedName& WithOrganization(OrganizationT&& value) {
224 SetOrganization(std::forward<OrganizationT>(value));
225 return *this;
226 }
228
230
233 inline const Aws::String& GetOrganizationalUnit() const { return m_organizationalUnit; }
234 inline bool OrganizationalUnitHasBeenSet() const { return m_organizationalUnitHasBeenSet; }
235 template <typename OrganizationalUnitT = Aws::String>
236 void SetOrganizationalUnit(OrganizationalUnitT&& value) {
237 m_organizationalUnitHasBeenSet = true;
238 m_organizationalUnit = std::forward<OrganizationalUnitT>(value);
239 }
240 template <typename OrganizationalUnitT = Aws::String>
241 DistinguishedName& WithOrganizationalUnit(OrganizationalUnitT&& value) {
242 SetOrganizationalUnit(std::forward<OrganizationalUnitT>(value));
243 return *this;
244 }
246
248
251 inline const Aws::String& GetPseudonym() const { return m_pseudonym; }
252 inline bool PseudonymHasBeenSet() const { return m_pseudonymHasBeenSet; }
253 template <typename PseudonymT = Aws::String>
254 void SetPseudonym(PseudonymT&& value) {
255 m_pseudonymHasBeenSet = true;
256 m_pseudonym = std::forward<PseudonymT>(value);
257 }
258 template <typename PseudonymT = Aws::String>
259 DistinguishedName& WithPseudonym(PseudonymT&& value) {
260 SetPseudonym(std::forward<PseudonymT>(value));
261 return *this;
262 }
264
266
269 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
270 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
271 template <typename SerialNumberT = Aws::String>
272 void SetSerialNumber(SerialNumberT&& value) {
273 m_serialNumberHasBeenSet = true;
274 m_serialNumber = std::forward<SerialNumberT>(value);
275 }
276 template <typename SerialNumberT = Aws::String>
277 DistinguishedName& WithSerialNumber(SerialNumberT&& value) {
278 SetSerialNumber(std::forward<SerialNumberT>(value));
279 return *this;
280 }
282
284
287 inline const Aws::String& GetState() const { return m_state; }
288 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
289 template <typename StateT = Aws::String>
290 void SetState(StateT&& value) {
291 m_stateHasBeenSet = true;
292 m_state = std::forward<StateT>(value);
293 }
294 template <typename StateT = Aws::String>
295 DistinguishedName& WithState(StateT&& value) {
296 SetState(std::forward<StateT>(value));
297 return *this;
298 }
300
302
305 inline const Aws::String& GetSurname() const { return m_surname; }
306 inline bool SurnameHasBeenSet() const { return m_surnameHasBeenSet; }
307 template <typename SurnameT = Aws::String>
308 void SetSurname(SurnameT&& value) {
309 m_surnameHasBeenSet = true;
310 m_surname = std::forward<SurnameT>(value);
311 }
312 template <typename SurnameT = Aws::String>
313 DistinguishedName& WithSurname(SurnameT&& value) {
314 SetSurname(std::forward<SurnameT>(value));
315 return *this;
316 }
318
320
323 inline const Aws::String& GetTitle() const { return m_title; }
324 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
325 template <typename TitleT = Aws::String>
326 void SetTitle(TitleT&& value) {
327 m_titleHasBeenSet = true;
328 m_title = std::forward<TitleT>(value);
329 }
330 template <typename TitleT = Aws::String>
331 DistinguishedName& WithTitle(TitleT&& value) {
332 SetTitle(std::forward<TitleT>(value));
333 return *this;
334 }
336 private:
337 Aws::String m_commonName;
338
339 Aws::Vector<Aws::String> m_domainComponents;
340
341 Aws::String m_country;
342
343 Aws::Vector<CustomAttribute> m_customAttributes;
344
345 Aws::String m_distinguishedNameQualifier;
346
347 Aws::String m_generationQualifier;
348
349 Aws::String m_givenName;
350
351 Aws::String m_initials;
352
353 Aws::String m_locality;
354
355 Aws::String m_organization;
356
357 Aws::String m_organizationalUnit;
358
359 Aws::String m_pseudonym;
360
361 Aws::String m_serialNumber;
362
363 Aws::String m_state;
364
365 Aws::String m_surname;
366
367 Aws::String m_title;
368 bool m_commonNameHasBeenSet = false;
369 bool m_domainComponentsHasBeenSet = false;
370 bool m_countryHasBeenSet = false;
371 bool m_customAttributesHasBeenSet = false;
372 bool m_distinguishedNameQualifierHasBeenSet = false;
373 bool m_generationQualifierHasBeenSet = false;
374 bool m_givenNameHasBeenSet = false;
375 bool m_initialsHasBeenSet = false;
376 bool m_localityHasBeenSet = false;
377 bool m_organizationHasBeenSet = false;
378 bool m_organizationalUnitHasBeenSet = false;
379 bool m_pseudonymHasBeenSet = false;
380 bool m_serialNumberHasBeenSet = false;
381 bool m_stateHasBeenSet = false;
382 bool m_surnameHasBeenSet = false;
383 bool m_titleHasBeenSet = false;
384};
385
386} // namespace Model
387} // namespace ACM
388} // namespace Aws
void SetGivenName(GivenNameT &&value)
const Aws::String & GetOrganizationalUnit() const
DistinguishedName & WithDomainComponents(DomainComponentsT &&value)
DistinguishedName & WithGivenName(GivenNameT &&value)
DistinguishedName & WithOrganizationalUnit(OrganizationalUnitT &&value)
void SetDomainComponents(DomainComponentsT &&value)
DistinguishedName & AddCustomAttributes(CustomAttributesT &&value)
const Aws::String & GetDistinguishedNameQualifier() const
void SetPseudonym(PseudonymT &&value)
const Aws::String & GetSerialNumber() const
const Aws::String & GetInitials() const
DistinguishedName & WithPseudonym(PseudonymT &&value)
const Aws::String & GetOrganization() const
DistinguishedName & WithCommonName(CommonNameT &&value)
AWS_ACM_API DistinguishedName()=default
DistinguishedName & WithSerialNumber(SerialNumberT &&value)
DistinguishedName & WithCountry(CountryT &&value)
void SetSerialNumber(SerialNumberT &&value)
void SetOrganization(OrganizationT &&value)
DistinguishedName & WithTitle(TitleT &&value)
const Aws::String & GetSurname() const
void SetGenerationQualifier(GenerationQualifierT &&value)
const Aws::String & GetLocality() const
void SetCustomAttributes(CustomAttributesT &&value)
const Aws::String & GetTitle() const
void SetOrganizationalUnit(OrganizationalUnitT &&value)
AWS_ACM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetCommonName() const
const Aws::Vector< Aws::String > & GetDomainComponents() const
DistinguishedName & WithSurname(SurnameT &&value)
void SetDistinguishedNameQualifier(DistinguishedNameQualifierT &&value)
AWS_ACM_API DistinguishedName & operator=(Aws::Utils::Json::JsonView jsonValue)
DistinguishedName & WithState(StateT &&value)
const Aws::String & GetState() const
const Aws::String & GetGivenName() const
DistinguishedName & AddDomainComponents(DomainComponentsT &&value)
const Aws::Vector< CustomAttribute > & GetCustomAttributes() const
const Aws::String & GetCountry() const
const Aws::String & GetGenerationQualifier() const
const Aws::String & GetPseudonym() const
DistinguishedName & WithGenerationQualifier(GenerationQualifierT &&value)
DistinguishedName & WithCustomAttributes(CustomAttributesT &&value)
DistinguishedName & WithLocality(LocalityT &&value)
DistinguishedName & WithOrganization(OrganizationT &&value)
AWS_ACM_API DistinguishedName(Aws::Utils::Json::JsonView jsonValue)
DistinguishedName & WithInitials(InitialsT &&value)
void SetCommonName(CommonNameT &&value)
DistinguishedName & WithDistinguishedNameQualifier(DistinguishedNameQualifierT &&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