1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/machinelearning/MachineLearning_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
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 
26   /**
27    * <p>The database credentials to connect to a database on an RDS DB
28    * instance.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/machinelearning-2014-12-12/RDSDatabaseCredentials">AWS
30    * API Reference</a></p>
31    */
32   class AWS_MACHINELEARNING_API RDSDatabaseCredentials
33   {
34   public:
35     RDSDatabaseCredentials();
36     RDSDatabaseCredentials(Aws::Utils::Json::JsonView jsonValue);
37     RDSDatabaseCredentials& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41 
GetUsername()42     inline const Aws::String& GetUsername() const{ return m_username; }
43 
44 
UsernameHasBeenSet()45     inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
46 
47 
SetUsername(const Aws::String & value)48     inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
49 
50 
SetUsername(Aws::String && value)51     inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
52 
53 
SetUsername(const char * value)54     inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
55 
56 
WithUsername(const Aws::String & value)57     inline RDSDatabaseCredentials& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
58 
59 
WithUsername(Aws::String && value)60     inline RDSDatabaseCredentials& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
61 
62 
WithUsername(const char * value)63     inline RDSDatabaseCredentials& WithUsername(const char* value) { SetUsername(value); return *this;}
64 
65 
66 
GetPassword()67     inline const Aws::String& GetPassword() const{ return m_password; }
68 
69 
PasswordHasBeenSet()70     inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
71 
72 
SetPassword(const Aws::String & value)73     inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
74 
75 
SetPassword(Aws::String && value)76     inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
77 
78 
SetPassword(const char * value)79     inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
80 
81 
WithPassword(const Aws::String & value)82     inline RDSDatabaseCredentials& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
83 
84 
WithPassword(Aws::String && value)85     inline RDSDatabaseCredentials& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
86 
87 
WithPassword(const char * value)88     inline RDSDatabaseCredentials& 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
102