AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RedshiftDatabaseCredentials.h
1
6#pragma once
7#include <aws/machinelearning/MachineLearning_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MachineLearning
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_MACHINELEARNING_API RedshiftDatabaseCredentials();
36 AWS_MACHINELEARNING_API RedshiftDatabaseCredentials(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
43 inline const Aws::String& GetUsername() const{ return m_username; }
44 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
45 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
46 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
47 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
48 inline RedshiftDatabaseCredentials& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
49 inline RedshiftDatabaseCredentials& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
50 inline RedshiftDatabaseCredentials& WithUsername(const char* value) { SetUsername(value); return *this;}
52
54
55 inline const Aws::String& GetPassword() const{ return m_password; }
56 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
57 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
58 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
59 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
60 inline RedshiftDatabaseCredentials& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
61 inline RedshiftDatabaseCredentials& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
62 inline RedshiftDatabaseCredentials& WithPassword(const char* value) { SetPassword(value); return *this;}
64 private:
65
66 Aws::String m_username;
67 bool m_usernameHasBeenSet = false;
68
69 Aws::String m_password;
70 bool m_passwordHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace MachineLearning
75} // namespace Aws
AWS_MACHINELEARNING_API RedshiftDatabaseCredentials(Aws::Utils::Json::JsonView jsonValue)
AWS_MACHINELEARNING_API RedshiftDatabaseCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const
RedshiftDatabaseCredentials & WithUsername(const char *value)
RedshiftDatabaseCredentials & WithPassword(Aws::String &&value)
RedshiftDatabaseCredentials & WithUsername(Aws::String &&value)
RedshiftDatabaseCredentials & WithPassword(const Aws::String &value)
RedshiftDatabaseCredentials & WithUsername(const Aws::String &value)
RedshiftDatabaseCredentials & WithPassword(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue