/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace RDS { namespace Model { /** *

Contains an Amazon Web Services Region name as the result of a successful * call to the DescribeSourceRegions action.

See Also:

* AWS * API Reference

*/ class SourceRegion { public: AWS_RDS_API SourceRegion(); AWS_RDS_API SourceRegion(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_RDS_API SourceRegion& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The name of the source Amazon Web Services Region.

*/ inline const Aws::String& GetRegionName() const{ return m_regionName; } /** *

The name of the source Amazon Web Services Region.

*/ inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; } /** *

The name of the source Amazon Web Services Region.

*/ inline void SetRegionName(const Aws::String& value) { m_regionNameHasBeenSet = true; m_regionName = value; } /** *

The name of the source Amazon Web Services Region.

*/ inline void SetRegionName(Aws::String&& value) { m_regionNameHasBeenSet = true; m_regionName = std::move(value); } /** *

The name of the source Amazon Web Services Region.

*/ inline void SetRegionName(const char* value) { m_regionNameHasBeenSet = true; m_regionName.assign(value); } /** *

The name of the source Amazon Web Services Region.

*/ inline SourceRegion& WithRegionName(const Aws::String& value) { SetRegionName(value); return *this;} /** *

The name of the source Amazon Web Services Region.

*/ inline SourceRegion& WithRegionName(Aws::String&& value) { SetRegionName(std::move(value)); return *this;} /** *

The name of the source Amazon Web Services Region.

*/ inline SourceRegion& WithRegionName(const char* value) { SetRegionName(value); return *this;} /** *

The endpoint for the source Amazon Web Services Region endpoint.

*/ inline const Aws::String& GetEndpoint() const{ return m_endpoint; } /** *

The endpoint for the source Amazon Web Services Region endpoint.

*/ inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; } /** *

The endpoint for the source Amazon Web Services Region endpoint.

*/ inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; } /** *

The endpoint for the source Amazon Web Services Region endpoint.

*/ inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); } /** *

The endpoint for the source Amazon Web Services Region endpoint.

*/ inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); } /** *

The endpoint for the source Amazon Web Services Region endpoint.

*/ inline SourceRegion& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;} /** *

The endpoint for the source Amazon Web Services Region endpoint.

*/ inline SourceRegion& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;} /** *

The endpoint for the source Amazon Web Services Region endpoint.

*/ inline SourceRegion& WithEndpoint(const char* value) { SetEndpoint(value); return *this;} /** *

The status of the source Amazon Web Services Region.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the source Amazon Web Services Region.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the source Amazon Web Services Region.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the source Amazon Web Services Region.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the source Amazon Web Services Region.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the source Amazon Web Services Region.

*/ inline SourceRegion& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the source Amazon Web Services Region.

*/ inline SourceRegion& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the source Amazon Web Services Region.

*/ inline SourceRegion& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

Whether the source Amazon Web Services Region supports replicating automated * backups to the current Amazon Web Services Region.

*/ inline bool GetSupportsDBInstanceAutomatedBackupsReplication() const{ return m_supportsDBInstanceAutomatedBackupsReplication; } /** *

Whether the source Amazon Web Services Region supports replicating automated * backups to the current Amazon Web Services Region.

*/ inline bool SupportsDBInstanceAutomatedBackupsReplicationHasBeenSet() const { return m_supportsDBInstanceAutomatedBackupsReplicationHasBeenSet; } /** *

Whether the source Amazon Web Services Region supports replicating automated * backups to the current Amazon Web Services Region.

*/ inline void SetSupportsDBInstanceAutomatedBackupsReplication(bool value) { m_supportsDBInstanceAutomatedBackupsReplicationHasBeenSet = true; m_supportsDBInstanceAutomatedBackupsReplication = value; } /** *

Whether the source Amazon Web Services Region supports replicating automated * backups to the current Amazon Web Services Region.

*/ inline SourceRegion& WithSupportsDBInstanceAutomatedBackupsReplication(bool value) { SetSupportsDBInstanceAutomatedBackupsReplication(value); return *this;} private: Aws::String m_regionName; bool m_regionNameHasBeenSet = false; Aws::String m_endpoint; bool m_endpointHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; bool m_supportsDBInstanceAutomatedBackupsReplication; bool m_supportsDBInstanceAutomatedBackupsReplicationHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws