AWS SDK for C++  1.9.108
AWS SDK for C++
RedshiftDatabaseCredentials.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace MachineLearning
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
41 
42  inline const Aws::String& GetUsername() const{ return m_username; }
43 
44 
45  inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
46 
47 
48  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
49 
50 
51  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
52 
53 
54  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
55 
56 
57  inline RedshiftDatabaseCredentials& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
58 
59 
60  inline RedshiftDatabaseCredentials& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
61 
62 
63  inline RedshiftDatabaseCredentials& WithUsername(const char* value) { SetUsername(value); return *this;}
64 
65 
66 
67  inline const Aws::String& GetPassword() const{ return m_password; }
68 
69 
70  inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
71 
72 
73  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
74 
75 
76  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
77 
78 
79  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
80 
81 
82  inline RedshiftDatabaseCredentials& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
83 
84 
85  inline RedshiftDatabaseCredentials& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
86 
87 
88  inline RedshiftDatabaseCredentials& WithPassword(const char* value) { SetPassword(value); return *this;}
89 
90  private:
91 
92  Aws::String m_username;
93  bool m_usernameHasBeenSet;
94 
95  Aws::String m_password;
96  bool m_passwordHasBeenSet;
97  };
98 
99 } // namespace Model
100 } // namespace MachineLearning
101 } // namespace Aws
Aws::MachineLearning::Model::RedshiftDatabaseCredentials::PasswordHasBeenSet
bool PasswordHasBeenSet() const
Definition: RedshiftDatabaseCredentials.h:70
Aws::MachineLearning::Model::RedshiftDatabaseCredentials::WithPassword
RedshiftDatabaseCredentials & WithPassword(const Aws::String &value)
Definition: RedshiftDatabaseCredentials.h:82
MachineLearning_EXPORTS.h
Aws::MachineLearning::Model::RedshiftDatabaseCredentials::RedshiftDatabaseCredentials
RedshiftDatabaseCredentials(Aws::Utils::Json::JsonView jsonValue)
Aws::MachineLearning::Model::RedshiftDatabaseCredentials::GetUsername
const Aws::String & GetUsername() const
Definition: RedshiftDatabaseCredentials.h:42
Aws::MachineLearning::Model::RedshiftDatabaseCredentials::GetPassword
const Aws::String & GetPassword() const
Definition: RedshiftDatabaseCredentials.h:67
Aws::MachineLearning::Model::RedshiftDatabaseCredentials::SetPassword
void SetPassword(const Aws::String &value)
Definition: RedshiftDatabaseCredentials.h:73
Aws::MachineLearning::Model::RedshiftDatabaseCredentials::SetUsername
void SetUsername(const char *value)
Definition: RedshiftDatabaseCredentials.h:54
AWS_MACHINELEARNING_API
#define AWS_MACHINELEARNING_API
Definition: MachineLearning_EXPORTS.h:28
Aws::MachineLearning::Model::RedshiftDatabaseCredentials::WithPassword
RedshiftDatabaseCredentials & WithPassword(const char *value)
Definition: RedshiftDatabaseCredentials.h:88
Aws::MachineLearning::Model::RedshiftDatabaseCredentials::WithUsername
RedshiftDatabaseCredentials & WithUsername(const Aws::String &value)
Definition: RedshiftDatabaseCredentials.h:57
Aws::MachineLearning::Model::RedshiftDatabaseCredentials::SetUsername
void SetUsername(const Aws::String &value)
Definition: RedshiftDatabaseCredentials.h:48
Aws::MachineLearning::Model::RedshiftDatabaseCredentials::SetPassword
void SetPassword(Aws::String &&value)
Definition: RedshiftDatabaseCredentials.h:76
Aws::MachineLearning::Model::RedshiftDatabaseCredentials::RedshiftDatabaseCredentials
RedshiftDatabaseCredentials()
Aws::MachineLearning::Model::RedshiftDatabaseCredentials::UsernameHasBeenSet
bool UsernameHasBeenSet() const
Definition: RedshiftDatabaseCredentials.h:45
Aws::MachineLearning::Model::RedshiftDatabaseCredentials::WithUsername
RedshiftDatabaseCredentials & WithUsername(Aws::String &&value)
Definition: RedshiftDatabaseCredentials.h:60
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::MachineLearning::Model::RedshiftDatabaseCredentials::operator=
RedshiftDatabaseCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MachineLearning::Model::RedshiftDatabaseCredentials::WithUsername
RedshiftDatabaseCredentials & WithUsername(const char *value)
Definition: RedshiftDatabaseCredentials.h:63
Aws::MachineLearning::Model::RedshiftDatabaseCredentials
Definition: RedshiftDatabaseCredentials.h:33
Aws::MachineLearning::Model::RedshiftDatabaseCredentials::SetUsername
void SetUsername(Aws::String &&value)
Definition: RedshiftDatabaseCredentials.h:51
Aws::MachineLearning::Model::RedshiftDatabaseCredentials::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::MachineLearning::Model::RedshiftDatabaseCredentials::WithPassword
RedshiftDatabaseCredentials & WithPassword(Aws::String &&value)
Definition: RedshiftDatabaseCredentials.h:85
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MachineLearning::Model::RedshiftDatabaseCredentials::SetPassword
void SetPassword(const char *value)
Definition: RedshiftDatabaseCredentials.h:79