AWS SDK for C++  1.9.108
AWS SDK for C++
SourceRegion.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace RDS
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetRegionName() const{ return m_regionName; }
47 
51  inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
52 
56  inline void SetRegionName(const Aws::String& value) { m_regionNameHasBeenSet = true; m_regionName = value; }
57 
61  inline void SetRegionName(Aws::String&& value) { m_regionNameHasBeenSet = true; m_regionName = std::move(value); }
62 
66  inline void SetRegionName(const char* value) { m_regionNameHasBeenSet = true; m_regionName.assign(value); }
67 
71  inline SourceRegion& WithRegionName(const Aws::String& value) { SetRegionName(value); return *this;}
72 
76  inline SourceRegion& WithRegionName(Aws::String&& value) { SetRegionName(std::move(value)); return *this;}
77 
81  inline SourceRegion& WithRegionName(const char* value) { SetRegionName(value); return *this;}
82 
83 
87  inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
88 
92  inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
93 
97  inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
98 
102  inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
103 
107  inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
108 
112  inline SourceRegion& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
113 
117  inline SourceRegion& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
118 
122  inline SourceRegion& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
123 
124 
128  inline const Aws::String& GetStatus() const{ return m_status; }
129 
133  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
134 
138  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
139 
143  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
144 
148  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
149 
153  inline SourceRegion& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
154 
158  inline SourceRegion& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
159 
163  inline SourceRegion& WithStatus(const char* value) { SetStatus(value); return *this;}
164 
165 
170  inline bool GetSupportsDBInstanceAutomatedBackupsReplication() const{ return m_supportsDBInstanceAutomatedBackupsReplication; }
171 
176  inline bool SupportsDBInstanceAutomatedBackupsReplicationHasBeenSet() const { return m_supportsDBInstanceAutomatedBackupsReplicationHasBeenSet; }
177 
182  inline void SetSupportsDBInstanceAutomatedBackupsReplication(bool value) { m_supportsDBInstanceAutomatedBackupsReplicationHasBeenSet = true; m_supportsDBInstanceAutomatedBackupsReplication = value; }
183 
188  inline SourceRegion& WithSupportsDBInstanceAutomatedBackupsReplication(bool value) { SetSupportsDBInstanceAutomatedBackupsReplication(value); return *this;}
189 
190  private:
191 
192  Aws::String m_regionName;
193  bool m_regionNameHasBeenSet;
194 
195  Aws::String m_endpoint;
196  bool m_endpointHasBeenSet;
197 
198  Aws::String m_status;
199  bool m_statusHasBeenSet;
200 
201  bool m_supportsDBInstanceAutomatedBackupsReplication;
202  bool m_supportsDBInstanceAutomatedBackupsReplicationHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace RDS
207 } // namespace Aws
Aws::RDS::Model::SourceRegion::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::SourceRegion::WithRegionName
SourceRegion & WithRegionName(const Aws::String &value)
Definition: SourceRegion.h:71
Aws::RDS::Model::SourceRegion::SetEndpoint
void SetEndpoint(Aws::String &&value)
Definition: SourceRegion.h:102
Aws::RDS::Model::SourceRegion::SetRegionName
void SetRegionName(const char *value)
Definition: SourceRegion.h:66
Aws::RDS::Model::SourceRegion::GetStatus
const Aws::String & GetStatus() const
Definition: SourceRegion.h:128
Aws::RDS::Model::SourceRegion::SetRegionName
void SetRegionName(const Aws::String &value)
Definition: SourceRegion.h:56
Aws::RDS::Model::SourceRegion::WithStatus
SourceRegion & WithStatus(const Aws::String &value)
Definition: SourceRegion.h:153
Aws::RDS::Model::SourceRegion::SetRegionName
void SetRegionName(Aws::String &&value)
Definition: SourceRegion.h:61
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::SourceRegion::SourceRegion
SourceRegion(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::SourceRegion::GetSupportsDBInstanceAutomatedBackupsReplication
bool GetSupportsDBInstanceAutomatedBackupsReplication() const
Definition: SourceRegion.h:170
AWSStreamFwd.h
Aws::RDS::Model::SourceRegion::WithStatus
SourceRegion & WithStatus(Aws::String &&value)
Definition: SourceRegion.h:158
Aws::RDS::Model::SourceRegion
Definition: SourceRegion.h:33
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
RDS_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::SourceRegion::WithStatus
SourceRegion & WithStatus(const char *value)
Definition: SourceRegion.h:163
Aws::RDS::Model::SourceRegion::WithRegionName
SourceRegion & WithRegionName(Aws::String &&value)
Definition: SourceRegion.h:76
Aws::RDS::Model::SourceRegion::WithSupportsDBInstanceAutomatedBackupsReplication
SourceRegion & WithSupportsDBInstanceAutomatedBackupsReplication(bool value)
Definition: SourceRegion.h:188
Aws::RDS::Model::SourceRegion::SetSupportsDBInstanceAutomatedBackupsReplication
void SetSupportsDBInstanceAutomatedBackupsReplication(bool value)
Definition: SourceRegion.h:182
Aws::RDS::Model::SourceRegion::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: SourceRegion.h:133
AWSString.h
Aws::RDS::Model::SourceRegion::WithEndpoint
SourceRegion & WithEndpoint(Aws::String &&value)
Definition: SourceRegion.h:117
Aws::RDS::Model::SourceRegion::SupportsDBInstanceAutomatedBackupsReplicationHasBeenSet
bool SupportsDBInstanceAutomatedBackupsReplicationHasBeenSet() const
Definition: SourceRegion.h:176
Aws::RDS::Model::SourceRegion::WithEndpoint
SourceRegion & WithEndpoint(const char *value)
Definition: SourceRegion.h:122
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::SourceRegion::RegionNameHasBeenSet
bool RegionNameHasBeenSet() const
Definition: SourceRegion.h:51
Aws::RDS::Model::SourceRegion::SetEndpoint
void SetEndpoint(const char *value)
Definition: SourceRegion.h:107
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::SourceRegion::operator=
SourceRegion & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::SourceRegion::GetEndpoint
const Aws::String & GetEndpoint() const
Definition: SourceRegion.h:87
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::SourceRegion::EndpointHasBeenSet
bool EndpointHasBeenSet() const
Definition: SourceRegion.h:92
Aws::RDS::Model::SourceRegion::SetStatus
void SetStatus(Aws::String &&value)
Definition: SourceRegion.h:143
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::SourceRegion::SetEndpoint
void SetEndpoint(const Aws::String &value)
Definition: SourceRegion.h:97
Aws::RDS::Model::SourceRegion::GetRegionName
const Aws::String & GetRegionName() const
Definition: SourceRegion.h:46
Aws::RDS::Model::SourceRegion::WithEndpoint
SourceRegion & WithEndpoint(const Aws::String &value)
Definition: SourceRegion.h:112
Aws::RDS::Model::SourceRegion::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::RDS::Model::SourceRegion::SetStatus
void SetStatus(const Aws::String &value)
Definition: SourceRegion.h:138
Aws::RDS::Model::SourceRegion::SourceRegion
SourceRegion()
Aws::RDS::Model::SourceRegion::WithRegionName
SourceRegion & WithRegionName(const char *value)
Definition: SourceRegion.h:81
Aws::RDS::Model::SourceRegion::SetStatus
void SetStatus(const char *value)
Definition: SourceRegion.h:148