102 lines
2.9 KiB
C++
102 lines
2.9 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/machinelearning/MachineLearning_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 MachineLearning
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p> Describes the database credentials for connecting to a database on an Amazon
|
|
* Redshift cluster.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/machinelearning-2014-12-12/RedshiftDatabaseCredentials">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_MACHINELEARNING_API RedshiftDatabaseCredentials
|
|
{
|
|
public:
|
|
RedshiftDatabaseCredentials();
|
|
RedshiftDatabaseCredentials(Aws::Utils::Json::JsonView jsonValue);
|
|
RedshiftDatabaseCredentials& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
|
|
inline const Aws::String& GetUsername() const{ return m_username; }
|
|
|
|
|
|
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
|
|
|
|
|
|
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
|
|
|
|
|
|
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
|
|
|
|
|
|
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
|
|
|
|
|
|
inline RedshiftDatabaseCredentials& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
|
|
|
|
|
|
inline RedshiftDatabaseCredentials& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
|
|
|
|
|
|
inline RedshiftDatabaseCredentials& WithUsername(const char* value) { SetUsername(value); return *this;}
|
|
|
|
|
|
|
|
inline const Aws::String& GetPassword() const{ return m_password; }
|
|
|
|
|
|
inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
|
|
|
|
|
|
inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
|
|
|
|
|
|
inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
|
|
|
|
|
|
inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
|
|
|
|
|
|
inline RedshiftDatabaseCredentials& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
|
|
|
|
|
|
inline RedshiftDatabaseCredentials& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
|
|
|
|
|
|
inline RedshiftDatabaseCredentials& WithPassword(const char* value) { SetPassword(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_username;
|
|
bool m_usernameHasBeenSet;
|
|
|
|
Aws::String m_password;
|
|
bool m_passwordHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace MachineLearning
|
|
} // namespace Aws
|