/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes an endpoint for a database.See Also:
AWS
* API Reference
Specifies the port that the database is listening on.
*/ inline int GetPort() const{ return m_port; } /** *Specifies the port that the database is listening on.
*/ inline bool PortHasBeenSet() const { return m_portHasBeenSet; } /** *Specifies the port that the database is listening on.
*/ inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; } /** *Specifies the port that the database is listening on.
*/ inline RelationalDatabaseEndpoint& WithPort(int value) { SetPort(value); return *this;} /** *Specifies the DNS address of the database.
*/ inline const Aws::String& GetAddress() const{ return m_address; } /** *Specifies the DNS address of the database.
*/ inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; } /** *Specifies the DNS address of the database.
*/ inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; } /** *Specifies the DNS address of the database.
*/ inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); } /** *Specifies the DNS address of the database.
*/ inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); } /** *Specifies the DNS address of the database.
*/ inline RelationalDatabaseEndpoint& WithAddress(const Aws::String& value) { SetAddress(value); return *this;} /** *Specifies the DNS address of the database.
*/ inline RelationalDatabaseEndpoint& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;} /** *Specifies the DNS address of the database.
*/ inline RelationalDatabaseEndpoint& WithAddress(const char* value) { SetAddress(value); return *this;} private: int m_port; bool m_portHasBeenSet = false; Aws::String m_address; bool m_addressHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws