/** * 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 AWS Region name as the result of a successful call to the * DescribeSourceRegions action.

See Also:

AWS * API Reference

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

The name of the source AWS Region.

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

The name of the source AWS Region.

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

The name of the source AWS Region.

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

The name of the source AWS Region.

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

The name of the source AWS Region.

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

The name of the source AWS Region.

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

The name of the source AWS Region.

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

The name of the source AWS Region.

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

The endpoint for the source AWS Region endpoint.

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

The endpoint for the source AWS Region endpoint.

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

The endpoint for the source AWS Region endpoint.

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

The endpoint for the source AWS Region endpoint.

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

The endpoint for the source AWS Region endpoint.

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

The endpoint for the source AWS Region endpoint.

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

The endpoint for the source AWS Region endpoint.

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

The endpoint for the source AWS Region endpoint.

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

The status of the source AWS Region.

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

The status of the source AWS Region.

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

The status of the source AWS Region.

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

The status of the source AWS Region.

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

The status of the source AWS Region.

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

The status of the source AWS Region.

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

The status of the source AWS Region.

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

The status of the source AWS Region.

*/ inline SourceRegion& WithStatus(const char* value) { SetStatus(value); return *this;} private: Aws::String m_regionName; bool m_regionNameHasBeenSet; Aws::String m_endpoint; bool m_endpointHasBeenSet; Aws::String m_status; bool m_statusHasBeenSet; }; } // namespace Model } // namespace RDS } // namespace Aws