/** * 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 Neptune { namespace Model { /** *

Specifies a connection endpoint.

For the data structure that * represents Amazon Neptune DB cluster endpoints, see * DBClusterEndpoint.

See Also:

AWS * API Reference

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

Specifies the DNS address of the DB instance.

*/ inline const Aws::String& GetAddress() const{ return m_address; } /** *

Specifies the DNS address of the DB instance.

*/ inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; } /** *

Specifies the DNS address of the DB instance.

*/ inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; } /** *

Specifies the DNS address of the DB instance.

*/ inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); } /** *

Specifies the DNS address of the DB instance.

*/ inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); } /** *

Specifies the DNS address of the DB instance.

*/ inline Endpoint& WithAddress(const Aws::String& value) { SetAddress(value); return *this;} /** *

Specifies the DNS address of the DB instance.

*/ inline Endpoint& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;} /** *

Specifies the DNS address of the DB instance.

*/ inline Endpoint& WithAddress(const char* value) { SetAddress(value); return *this;} /** *

Specifies the port that the database engine is listening on.

*/ inline int GetPort() const{ return m_port; } /** *

Specifies the port that the database engine is listening on.

*/ inline bool PortHasBeenSet() const { return m_portHasBeenSet; } /** *

Specifies the port that the database engine is listening on.

*/ inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; } /** *

Specifies the port that the database engine is listening on.

*/ inline Endpoint& WithPort(int value) { SetPort(value); return *this;} /** *

Specifies the ID that Amazon Route 53 assigns when you create a hosted * zone.

*/ inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; } /** *

Specifies the ID that Amazon Route 53 assigns when you create a hosted * zone.

*/ inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; } /** *

Specifies the ID that Amazon Route 53 assigns when you create a hosted * zone.

*/ inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; } /** *

Specifies the ID that Amazon Route 53 assigns when you create a hosted * zone.

*/ inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = std::move(value); } /** *

Specifies the ID that Amazon Route 53 assigns when you create a hosted * zone.

*/ inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); } /** *

Specifies the ID that Amazon Route 53 assigns when you create a hosted * zone.

*/ inline Endpoint& WithHostedZoneId(const Aws::String& value) { SetHostedZoneId(value); return *this;} /** *

Specifies the ID that Amazon Route 53 assigns when you create a hosted * zone.

*/ inline Endpoint& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(std::move(value)); return *this;} /** *

Specifies the ID that Amazon Route 53 assigns when you create a hosted * zone.

*/ inline Endpoint& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;} private: Aws::String m_address; bool m_addressHasBeenSet = false; int m_port; bool m_portHasBeenSet = false; Aws::String m_hostedZoneId; bool m_hostedZoneIdHasBeenSet = false; }; } // namespace Model } // namespace Neptune } // namespace Aws