AWS SDK for C++  0.12.9
AWS SDK for C++
RDSDatabaseCredentials.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace MachineLearning
29 {
30 namespace Model
31 {
32 
37  {
38  public:
41  RDSDatabaseCredentials& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
44 
45  inline const Aws::String& GetUsername() const{ return m_username; }
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 = value; }
52 
53 
54  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
55 
56 
57  inline RDSDatabaseCredentials& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
58 
59 
60  inline RDSDatabaseCredentials& WithUsername(Aws::String&& value) { SetUsername(value); return *this;}
61 
62 
63  inline RDSDatabaseCredentials& WithUsername(const char* value) { SetUsername(value); return *this;}
64 
65 
66  inline const Aws::String& GetPassword() const{ return m_password; }
67 
68 
69  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
70 
71 
72  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = value; }
73 
74 
75  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
76 
77 
78  inline RDSDatabaseCredentials& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
79 
80 
81  inline RDSDatabaseCredentials& WithPassword(Aws::String&& value) { SetPassword(value); return *this;}
82 
83 
84  inline RDSDatabaseCredentials& WithPassword(const char* value) { SetPassword(value); return *this;}
85 
86  private:
87  Aws::String m_username;
88  bool m_usernameHasBeenSet;
89  Aws::String m_password;
90  bool m_passwordHasBeenSet;
91  };
92 
93 } // namespace Model
94 } // namespace MachineLearning
95 } // namespace Aws
RDSDatabaseCredentials & WithUsername(const char *value)
RDSDatabaseCredentials & WithPassword(const Aws::String &value)
RDSDatabaseCredentials & WithPassword(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RDSDatabaseCredentials & WithUsername(const Aws::String &value)
RDSDatabaseCredentials & WithPassword(const char *value)
#define AWS_MACHINELEARNING_API
RDSDatabaseCredentials & WithUsername(Aws::String &&value)
JSON (JavaScript Object Notation).