AWS SDK for C++  0.14.3
AWS SDK for C++
DomainMembership.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/rds/RDS_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace RDS
30 {
31 namespace Model
32 {
33 
39  {
40  public:
43  DomainMembership& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::String& GetDomain() const{ return m_domain; }
52 
56  inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
57 
61  inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = value; }
62 
66  inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
67 
71  inline DomainMembership& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
72 
76  inline DomainMembership& WithDomain(Aws::String&& value) { SetDomain(value); return *this;}
77 
81  inline DomainMembership& WithDomain(const char* value) { SetDomain(value); return *this;}
82 
87  inline const Aws::String& GetStatus() const{ return m_status; }
88 
93  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
94 
99  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
100 
105  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
106 
111  inline DomainMembership& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
112 
117  inline DomainMembership& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
118 
123  inline DomainMembership& WithStatus(const char* value) { SetStatus(value); return *this;}
124 
128  inline const Aws::String& GetFQDN() const{ return m_fQDN; }
129 
133  inline void SetFQDN(const Aws::String& value) { m_fQDNHasBeenSet = true; m_fQDN = value; }
134 
138  inline void SetFQDN(Aws::String&& value) { m_fQDNHasBeenSet = true; m_fQDN = value; }
139 
143  inline void SetFQDN(const char* value) { m_fQDNHasBeenSet = true; m_fQDN.assign(value); }
144 
148  inline DomainMembership& WithFQDN(const Aws::String& value) { SetFQDN(value); return *this;}
149 
153  inline DomainMembership& WithFQDN(Aws::String&& value) { SetFQDN(value); return *this;}
154 
158  inline DomainMembership& WithFQDN(const char* value) { SetFQDN(value); return *this;}
159 
164  inline const Aws::String& GetIAMRoleName() const{ return m_iAMRoleName; }
165 
170  inline void SetIAMRoleName(const Aws::String& value) { m_iAMRoleNameHasBeenSet = true; m_iAMRoleName = value; }
171 
176  inline void SetIAMRoleName(Aws::String&& value) { m_iAMRoleNameHasBeenSet = true; m_iAMRoleName = value; }
177 
182  inline void SetIAMRoleName(const char* value) { m_iAMRoleNameHasBeenSet = true; m_iAMRoleName.assign(value); }
183 
188  inline DomainMembership& WithIAMRoleName(const Aws::String& value) { SetIAMRoleName(value); return *this;}
189 
194  inline DomainMembership& WithIAMRoleName(Aws::String&& value) { SetIAMRoleName(value); return *this;}
195 
200  inline DomainMembership& WithIAMRoleName(const char* value) { SetIAMRoleName(value); return *this;}
201 
202  private:
203  Aws::String m_domain;
204  bool m_domainHasBeenSet;
205  Aws::String m_status;
206  bool m_statusHasBeenSet;
207  Aws::String m_fQDN;
208  bool m_fQDNHasBeenSet;
209  Aws::String m_iAMRoleName;
210  bool m_iAMRoleNameHasBeenSet;
211  };
212 
213 } // namespace Model
214 } // namespace RDS
215 } // namespace Aws
void SetFQDN(const Aws::String &value)
void SetFQDN(const char *value)
DomainMembership & WithDomain(const char *value)
void SetIAMRoleName(Aws::String &&value)
void SetIAMRoleName(const Aws::String &value)
void SetFQDN(Aws::String &&value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
void SetIAMRoleName(const char *value)
DomainMembership & WithDomain(const Aws::String &value)
void SetDomain(const char *value)
DomainMembership & WithStatus(Aws::String &&value)
void SetStatus(Aws::String &&value)
DomainMembership & WithStatus(const char *value)
DomainMembership & WithDomain(Aws::String &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
DomainMembership & WithIAMRoleName(Aws::String &&value)
const Aws::String & GetDomain() const
DomainMembership & WithFQDN(Aws::String &&value)
void SetStatus(const char *value)
void SetStatus(const Aws::String &value)
DomainMembership & WithIAMRoleName(const Aws::String &value)
const Aws::String & GetIAMRoleName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DomainMembership & WithStatus(const Aws::String &value)
const Aws::String & GetFQDN() const
const Aws::String & GetStatus() const
DomainMembership & WithFQDN(const Aws::String &value)
DomainMembership & WithFQDN(const char *value)
JSON (JavaScript Object Notation).
void SetDomain(Aws::String &&value)
void SetDomain(const Aws::String &value)
DomainMembership & WithIAMRoleName(const char *value)