/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information that defines a PostgreSQL endpoint.See
* Also:
AWS
* API Reference
Database name for the endpoint.
*/ inline const Aws::String& GetDatabaseName() const{ return m_databaseName; } /** *Database name for the endpoint.
*/ inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; } /** *Database name for the endpoint.
*/ inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; } /** *Database name for the endpoint.
*/ inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); } /** *Database name for the endpoint.
*/ inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); } /** *Database name for the endpoint.
*/ inline PostgreSQLSettings& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;} /** *Database name for the endpoint.
*/ inline PostgreSQLSettings& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;} /** *Database name for the endpoint.
*/ inline PostgreSQLSettings& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;} /** *Endpoint connection password.
*/ inline const Aws::String& GetPassword() const{ return m_password; } /** *Endpoint connection password.
*/ inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; } /** *Endpoint connection password.
*/ inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; } /** *Endpoint connection password.
*/ inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); } /** *Endpoint connection password.
*/ inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); } /** *Endpoint connection password.
*/ inline PostgreSQLSettings& WithPassword(const Aws::String& value) { SetPassword(value); return *this;} /** *Endpoint connection password.
*/ inline PostgreSQLSettings& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;} /** *Endpoint connection password.
*/ inline PostgreSQLSettings& WithPassword(const char* value) { SetPassword(value); return *this;} /** *Endpoint TCP port.
*/ inline int GetPort() const{ return m_port; } /** *Endpoint TCP port.
*/ inline bool PortHasBeenSet() const { return m_portHasBeenSet; } /** *Endpoint TCP port.
*/ inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; } /** *Endpoint TCP port.
*/ inline PostgreSQLSettings& WithPort(int value) { SetPort(value); return *this;} /** *Fully qualified domain name of the endpoint.
*/ inline const Aws::String& GetServerName() const{ return m_serverName; } /** *Fully qualified domain name of the endpoint.
*/ inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; } /** *Fully qualified domain name of the endpoint.
*/ inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; } /** *Fully qualified domain name of the endpoint.
*/ inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); } /** *Fully qualified domain name of the endpoint.
*/ inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); } /** *Fully qualified domain name of the endpoint.
*/ inline PostgreSQLSettings& WithServerName(const Aws::String& value) { SetServerName(value); return *this;} /** *Fully qualified domain name of the endpoint.
*/ inline PostgreSQLSettings& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;} /** *Fully qualified domain name of the endpoint.
*/ inline PostgreSQLSettings& WithServerName(const char* value) { SetServerName(value); return *this;} /** *Endpoint connection user name.
*/ inline const Aws::String& GetUsername() const{ return m_username; } /** *Endpoint connection user name.
*/ inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; } /** *Endpoint connection user name.
*/ inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; } /** *Endpoint connection user name.
*/ inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); } /** *Endpoint connection user name.
*/ inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); } /** *Endpoint connection user name.
*/ inline PostgreSQLSettings& WithUsername(const Aws::String& value) { SetUsername(value); return *this;} /** *Endpoint connection user name.
*/ inline PostgreSQLSettings& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;} /** *Endpoint connection user name.
*/ inline PostgreSQLSettings& WithUsername(const char* value) { SetUsername(value); return *this;} private: Aws::String m_databaseName; bool m_databaseNameHasBeenSet; Aws::String m_password; bool m_passwordHasBeenSet; int m_port; bool m_portHasBeenSet; Aws::String m_serverName; bool m_serverNameHasBeenSet; Aws::String m_username; bool m_usernameHasBeenSet; }; } // namespace Model } // namespace DatabaseMigrationService } // namespace Aws