AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DomainMembership.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rds/RDS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace RDS {
21namespace Model {
22
30 public:
31 AWS_RDS_API DomainMembership() = default;
32 AWS_RDS_API DomainMembership(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetDomain() const { return m_domain; }
43 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
44 template <typename DomainT = Aws::String>
45 void SetDomain(DomainT&& value) {
46 m_domainHasBeenSet = true;
47 m_domain = std::forward<DomainT>(value);
48 }
49 template <typename DomainT = Aws::String>
50 DomainMembership& WithDomain(DomainT&& value) {
51 SetDomain(std::forward<DomainT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetStatus() const { return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 template <typename StatusT = Aws::String>
65 void SetStatus(StatusT&& value) {
66 m_statusHasBeenSet = true;
67 m_status = std::forward<StatusT>(value);
68 }
69 template <typename StatusT = Aws::String>
70 DomainMembership& WithStatus(StatusT&& value) {
71 SetStatus(std::forward<StatusT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetFQDN() const { return m_fQDN; }
81 inline bool FQDNHasBeenSet() const { return m_fQDNHasBeenSet; }
82 template <typename FQDNT = Aws::String>
83 void SetFQDN(FQDNT&& value) {
84 m_fQDNHasBeenSet = true;
85 m_fQDN = std::forward<FQDNT>(value);
86 }
87 template <typename FQDNT = Aws::String>
88 DomainMembership& WithFQDN(FQDNT&& value) {
89 SetFQDN(std::forward<FQDNT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetIAMRoleName() const { return m_iAMRoleName; }
100 inline bool IAMRoleNameHasBeenSet() const { return m_iAMRoleNameHasBeenSet; }
101 template <typename IAMRoleNameT = Aws::String>
102 void SetIAMRoleName(IAMRoleNameT&& value) {
103 m_iAMRoleNameHasBeenSet = true;
104 m_iAMRoleName = std::forward<IAMRoleNameT>(value);
105 }
106 template <typename IAMRoleNameT = Aws::String>
107 DomainMembership& WithIAMRoleName(IAMRoleNameT&& value) {
108 SetIAMRoleName(std::forward<IAMRoleNameT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetOU() const { return m_oU; }
118 inline bool OUHasBeenSet() const { return m_oUHasBeenSet; }
119 template <typename OUT = Aws::String>
120 void SetOU(OUT&& value) {
121 m_oUHasBeenSet = true;
122 m_oU = std::forward<OUT>(value);
123 }
124 template <typename OUT = Aws::String>
125 DomainMembership& WithOU(OUT&& value) {
126 SetOU(std::forward<OUT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::String& GetAuthSecretArn() const { return m_authSecretArn; }
137 inline bool AuthSecretArnHasBeenSet() const { return m_authSecretArnHasBeenSet; }
138 template <typename AuthSecretArnT = Aws::String>
139 void SetAuthSecretArn(AuthSecretArnT&& value) {
140 m_authSecretArnHasBeenSet = true;
141 m_authSecretArn = std::forward<AuthSecretArnT>(value);
142 }
143 template <typename AuthSecretArnT = Aws::String>
144 DomainMembership& WithAuthSecretArn(AuthSecretArnT&& value) {
145 SetAuthSecretArn(std::forward<AuthSecretArnT>(value));
146 return *this;
147 }
149
151
155 inline const Aws::Vector<Aws::String>& GetDnsIps() const { return m_dnsIps; }
156 inline bool DnsIpsHasBeenSet() const { return m_dnsIpsHasBeenSet; }
157 template <typename DnsIpsT = Aws::Vector<Aws::String>>
158 void SetDnsIps(DnsIpsT&& value) {
159 m_dnsIpsHasBeenSet = true;
160 m_dnsIps = std::forward<DnsIpsT>(value);
161 }
162 template <typename DnsIpsT = Aws::Vector<Aws::String>>
163 DomainMembership& WithDnsIps(DnsIpsT&& value) {
164 SetDnsIps(std::forward<DnsIpsT>(value));
165 return *this;
166 }
167 template <typename DnsIpsT = Aws::String>
168 DomainMembership& AddDnsIps(DnsIpsT&& value) {
169 m_dnsIpsHasBeenSet = true;
170 m_dnsIps.emplace_back(std::forward<DnsIpsT>(value));
171 return *this;
172 }
174 private:
175 Aws::String m_domain;
176
177 Aws::String m_status;
178
179 Aws::String m_fQDN;
180
181 Aws::String m_iAMRoleName;
182
183 Aws::String m_oU;
184
185 Aws::String m_authSecretArn;
186
188 bool m_domainHasBeenSet = false;
189 bool m_statusHasBeenSet = false;
190 bool m_fQDNHasBeenSet = false;
191 bool m_iAMRoleNameHasBeenSet = false;
192 bool m_oUHasBeenSet = false;
193 bool m_authSecretArnHasBeenSet = false;
194 bool m_dnsIpsHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace RDS
199} // namespace Aws
DomainMembership & WithIAMRoleName(IAMRoleNameT &&value)
const Aws::String & GetAuthSecretArn() const
DomainMembership & WithFQDN(FQDNT &&value)
const Aws::String & GetDomain() const
DomainMembership & WithAuthSecretArn(AuthSecretArnT &&value)
const Aws::String & GetStatus() const
DomainMembership & AddDnsIps(DnsIpsT &&value)
DomainMembership & WithStatus(StatusT &&value)
DomainMembership & WithOU(OUT &&value)
const Aws::Vector< Aws::String > & GetDnsIps() const
const Aws::String & GetFQDN() const
AWS_RDS_API DomainMembership()=default
AWS_RDS_API DomainMembership(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetIAMRoleName(IAMRoleNameT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAuthSecretArn(AuthSecretArnT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetIAMRoleName() const
const Aws::String & GetOU() const
DomainMembership & WithDomain(DomainT &&value)
AWS_RDS_API DomainMembership & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DomainMembership & WithDnsIps(DnsIpsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream