113 lines
3.1 KiB
C++
113 lines
3.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/lightsail/Lightsail_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace Lightsail
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Describes an endpoint for a database.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/RelationalDatabaseEndpoint">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_LIGHTSAIL_API RelationalDatabaseEndpoint
|
|
{
|
|
public:
|
|
RelationalDatabaseEndpoint();
|
|
RelationalDatabaseEndpoint(Aws::Utils::Json::JsonView jsonValue);
|
|
RelationalDatabaseEndpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>Specifies the port that the database is listening on.</p>
|
|
*/
|
|
inline int GetPort() const{ return m_port; }
|
|
|
|
/**
|
|
* <p>Specifies the port that the database is listening on.</p>
|
|
*/
|
|
inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Specifies the port that the database is listening on.</p>
|
|
*/
|
|
inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
|
|
|
|
/**
|
|
* <p>Specifies the port that the database is listening on.</p>
|
|
*/
|
|
inline RelationalDatabaseEndpoint& WithPort(int value) { SetPort(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Specifies the DNS address of the database.</p>
|
|
*/
|
|
inline const Aws::String& GetAddress() const{ return m_address; }
|
|
|
|
/**
|
|
* <p>Specifies the DNS address of the database.</p>
|
|
*/
|
|
inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Specifies the DNS address of the database.</p>
|
|
*/
|
|
inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
|
|
|
|
/**
|
|
* <p>Specifies the DNS address of the database.</p>
|
|
*/
|
|
inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
|
|
|
|
/**
|
|
* <p>Specifies the DNS address of the database.</p>
|
|
*/
|
|
inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
|
|
|
|
/**
|
|
* <p>Specifies the DNS address of the database.</p>
|
|
*/
|
|
inline RelationalDatabaseEndpoint& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
|
|
|
|
/**
|
|
* <p>Specifies the DNS address of the database.</p>
|
|
*/
|
|
inline RelationalDatabaseEndpoint& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Specifies the DNS address of the database.</p>
|
|
*/
|
|
inline RelationalDatabaseEndpoint& WithAddress(const char* value) { SetAddress(value); return *this;}
|
|
|
|
private:
|
|
|
|
int m_port;
|
|
bool m_portHasBeenSet;
|
|
|
|
Aws::String m_address;
|
|
bool m_addressHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Lightsail
|
|
} // namespace Aws
|