AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GeneralName.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/acm/model/DistinguishedName.h>
9#include <aws/acm/model/OtherName.h>
10#include <aws/core/utils/memory/stl/AWSString.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
32 public:
33 AWS_ACM_API GeneralName() = default;
37
39
47 inline const DistinguishedName& GetDirectoryName() const { return m_directoryName; }
48 inline bool DirectoryNameHasBeenSet() const { return m_directoryNameHasBeenSet; }
49 template <typename DirectoryNameT = DistinguishedName>
50 void SetDirectoryName(DirectoryNameT&& value) {
51 m_directoryNameHasBeenSet = true;
52 m_directoryName = std::forward<DirectoryNameT>(value);
53 }
54 template <typename DirectoryNameT = DistinguishedName>
55 GeneralName& WithDirectoryName(DirectoryNameT&& value) {
56 SetDirectoryName(std::forward<DirectoryNameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetDnsName() const { return m_dnsName; }
66 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
67 template <typename DnsNameT = Aws::String>
68 void SetDnsName(DnsNameT&& value) {
69 m_dnsNameHasBeenSet = true;
70 m_dnsName = std::forward<DnsNameT>(value);
71 }
72 template <typename DnsNameT = Aws::String>
73 GeneralName& WithDnsName(DnsNameT&& value) {
74 SetDnsName(std::forward<DnsNameT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
84 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
85 template <typename IpAddressT = Aws::String>
86 void SetIpAddress(IpAddressT&& value) {
87 m_ipAddressHasBeenSet = true;
88 m_ipAddress = std::forward<IpAddressT>(value);
89 }
90 template <typename IpAddressT = Aws::String>
91 GeneralName& WithIpAddress(IpAddressT&& value) {
92 SetIpAddress(std::forward<IpAddressT>(value));
93 return *this;
94 }
96
98
102 inline const OtherName& GetOtherName() const { return m_otherName; }
103 inline bool OtherNameHasBeenSet() const { return m_otherNameHasBeenSet; }
104 template <typename OtherNameT = OtherName>
105 void SetOtherName(OtherNameT&& value) {
106 m_otherNameHasBeenSet = true;
107 m_otherName = std::forward<OtherNameT>(value);
108 }
109 template <typename OtherNameT = OtherName>
110 GeneralName& WithOtherName(OtherNameT&& value) {
111 SetOtherName(std::forward<OtherNameT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetRegisteredId() const { return m_registeredId; }
121 inline bool RegisteredIdHasBeenSet() const { return m_registeredIdHasBeenSet; }
122 template <typename RegisteredIdT = Aws::String>
123 void SetRegisteredId(RegisteredIdT&& value) {
124 m_registeredIdHasBeenSet = true;
125 m_registeredId = std::forward<RegisteredIdT>(value);
126 }
127 template <typename RegisteredIdT = Aws::String>
128 GeneralName& WithRegisteredId(RegisteredIdT&& value) {
129 SetRegisteredId(std::forward<RegisteredIdT>(value));
130 return *this;
131 }
133
135
140 inline const Aws::String& GetRfc822Name() const { return m_rfc822Name; }
141 inline bool Rfc822NameHasBeenSet() const { return m_rfc822NameHasBeenSet; }
142 template <typename Rfc822NameT = Aws::String>
143 void SetRfc822Name(Rfc822NameT&& value) {
144 m_rfc822NameHasBeenSet = true;
145 m_rfc822Name = std::forward<Rfc822NameT>(value);
146 }
147 template <typename Rfc822NameT = Aws::String>
148 GeneralName& WithRfc822Name(Rfc822NameT&& value) {
149 SetRfc822Name(std::forward<Rfc822NameT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::String& GetUniformResourceIdentifier() const { return m_uniformResourceIdentifier; }
159 inline bool UniformResourceIdentifierHasBeenSet() const { return m_uniformResourceIdentifierHasBeenSet; }
160 template <typename UniformResourceIdentifierT = Aws::String>
161 void SetUniformResourceIdentifier(UniformResourceIdentifierT&& value) {
162 m_uniformResourceIdentifierHasBeenSet = true;
163 m_uniformResourceIdentifier = std::forward<UniformResourceIdentifierT>(value);
164 }
165 template <typename UniformResourceIdentifierT = Aws::String>
166 GeneralName& WithUniformResourceIdentifier(UniformResourceIdentifierT&& value) {
167 SetUniformResourceIdentifier(std::forward<UniformResourceIdentifierT>(value));
168 return *this;
169 }
171 private:
172 DistinguishedName m_directoryName;
173
174 Aws::String m_dnsName;
175
176 Aws::String m_ipAddress;
177
178 OtherName m_otherName;
179
180 Aws::String m_registeredId;
181
182 Aws::String m_rfc822Name;
183
184 Aws::String m_uniformResourceIdentifier;
185 bool m_directoryNameHasBeenSet = false;
186 bool m_dnsNameHasBeenSet = false;
187 bool m_ipAddressHasBeenSet = false;
188 bool m_otherNameHasBeenSet = false;
189 bool m_registeredIdHasBeenSet = false;
190 bool m_rfc822NameHasBeenSet = false;
191 bool m_uniformResourceIdentifierHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace ACM
196} // namespace Aws
GeneralName & WithIpAddress(IpAddressT &&value)
Definition GeneralName.h:91
GeneralName & WithUniformResourceIdentifier(UniformResourceIdentifierT &&value)
GeneralName & WithRfc822Name(Rfc822NameT &&value)
AWS_ACM_API GeneralName()=default
const OtherName & GetOtherName() const
bool UniformResourceIdentifierHasBeenSet() const
GeneralName & WithDirectoryName(DirectoryNameT &&value)
Definition GeneralName.h:55
const Aws::String & GetIpAddress() const
Definition GeneralName.h:83
void SetUniformResourceIdentifier(UniformResourceIdentifierT &&value)
const Aws::String & GetDnsName() const
Definition GeneralName.h:65
AWS_ACM_API GeneralName & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACM_API GeneralName(Aws::Utils::Json::JsonView jsonValue)
GeneralName & WithOtherName(OtherNameT &&value)
void SetIpAddress(IpAddressT &&value)
Definition GeneralName.h:86
bool RegisteredIdHasBeenSet() const
void SetRfc822Name(Rfc822NameT &&value)
void SetDnsName(DnsNameT &&value)
Definition GeneralName.h:68
const Aws::String & GetRfc822Name() const
GeneralName & WithDnsName(DnsNameT &&value)
Definition GeneralName.h:73
const DistinguishedName & GetDirectoryName() const
Definition GeneralName.h:47
AWS_ACM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRegisteredId() const
const Aws::String & GetUniformResourceIdentifier() const
bool DirectoryNameHasBeenSet() const
Definition GeneralName.h:48
void SetRegisteredId(RegisteredIdT &&value)
GeneralName & WithRegisteredId(RegisteredIdT &&value)
void SetOtherName(OtherNameT &&value)
void SetDirectoryName(DirectoryNameT &&value)
Definition GeneralName.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue