This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-dms/include/aws/dms/model/PostgreSQLSettings.h

246 lines
7.1 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/dms/DatabaseMigrationService_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 DatabaseMigrationService
{
namespace Model
{
/**
* <p>Provides information that defines a PostgreSQL endpoint.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/PostgreSQLSettings">AWS
* API Reference</a></p>
*/
class AWS_DATABASEMIGRATIONSERVICE_API PostgreSQLSettings
{
public:
PostgreSQLSettings();
PostgreSQLSettings(Aws::Utils::Json::JsonView jsonValue);
PostgreSQLSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Database name for the endpoint.</p>
*/
inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
/**
* <p>Database name for the endpoint.</p>
*/
inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
/**
* <p>Database name for the endpoint.</p>
*/
inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
/**
* <p>Database name for the endpoint.</p>
*/
inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
/**
* <p>Database name for the endpoint.</p>
*/
inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
/**
* <p>Database name for the endpoint.</p>
*/
inline PostgreSQLSettings& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
/**
* <p>Database name for the endpoint.</p>
*/
inline PostgreSQLSettings& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
/**
* <p>Database name for the endpoint.</p>
*/
inline PostgreSQLSettings& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
/**
* <p>Endpoint connection password.</p>
*/
inline const Aws::String& GetPassword() const{ return m_password; }
/**
* <p>Endpoint connection password.</p>
*/
inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
/**
* <p>Endpoint connection password.</p>
*/
inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
/**
* <p>Endpoint connection password.</p>
*/
inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
/**
* <p>Endpoint connection password.</p>
*/
inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
/**
* <p>Endpoint connection password.</p>
*/
inline PostgreSQLSettings& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
/**
* <p>Endpoint connection password.</p>
*/
inline PostgreSQLSettings& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
/**
* <p>Endpoint connection password.</p>
*/
inline PostgreSQLSettings& WithPassword(const char* value) { SetPassword(value); return *this;}
/**
* <p>Endpoint TCP port.</p>
*/
inline int GetPort() const{ return m_port; }
/**
* <p>Endpoint TCP port.</p>
*/
inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
/**
* <p>Endpoint TCP port.</p>
*/
inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
/**
* <p>Endpoint TCP port.</p>
*/
inline PostgreSQLSettings& WithPort(int value) { SetPort(value); return *this;}
/**
* <p>Fully qualified domain name of the endpoint.</p>
*/
inline const Aws::String& GetServerName() const{ return m_serverName; }
/**
* <p>Fully qualified domain name of the endpoint.</p>
*/
inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
/**
* <p>Fully qualified domain name of the endpoint.</p>
*/
inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
/**
* <p>Fully qualified domain name of the endpoint.</p>
*/
inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
/**
* <p>Fully qualified domain name of the endpoint.</p>
*/
inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
/**
* <p>Fully qualified domain name of the endpoint.</p>
*/
inline PostgreSQLSettings& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
/**
* <p>Fully qualified domain name of the endpoint.</p>
*/
inline PostgreSQLSettings& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
/**
* <p>Fully qualified domain name of the endpoint.</p>
*/
inline PostgreSQLSettings& WithServerName(const char* value) { SetServerName(value); return *this;}
/**
* <p>Endpoint connection user name.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>Endpoint connection user name.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>Endpoint connection user name.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>Endpoint connection user name.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>Endpoint connection user name.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>Endpoint connection user name.</p>
*/
inline PostgreSQLSettings& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>Endpoint connection user name.</p>
*/
inline PostgreSQLSettings& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>Endpoint connection user name.</p>
*/
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