AWS SDK for C++  0.12.9
AWS SDK for C++
RedshiftDatabaseCredentials.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 
38  {
39  public:
42  RedshiftDatabaseCredentials& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
45 
46  inline const Aws::String& GetUsername() const{ return m_username; }
47 
48 
49  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
50 
51 
52  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = value; }
53 
54 
55  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
56 
57 
58  inline RedshiftDatabaseCredentials& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
59 
60 
61  inline RedshiftDatabaseCredentials& WithUsername(Aws::String&& value) { SetUsername(value); return *this;}
62 
63 
64  inline RedshiftDatabaseCredentials& WithUsername(const char* value) { SetUsername(value); return *this;}
65 
66 
67  inline const Aws::String& GetPassword() const{ return m_password; }
68 
69 
70  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
71 
72 
73  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = value; }
74 
75 
76  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
77 
78 
79  inline RedshiftDatabaseCredentials& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
80 
81 
82  inline RedshiftDatabaseCredentials& WithPassword(Aws::String&& value) { SetPassword(value); return *this;}
83 
84 
85  inline RedshiftDatabaseCredentials& WithPassword(const char* value) { SetPassword(value); return *this;}
86 
87  private:
88  Aws::String m_username;
89  bool m_usernameHasBeenSet;
90  Aws::String m_password;
91  bool m_passwordHasBeenSet;
92  };
93 
94 } // namespace Model
95 } // namespace MachineLearning
96 } // namespace Aws
RedshiftDatabaseCredentials & WithPassword(const char *value)
RedshiftDatabaseCredentials & WithPassword(Aws::String &&value)
RedshiftDatabaseCredentials & WithPassword(const Aws::String &value)
RedshiftDatabaseCredentials & WithUsername(const char *value)
RedshiftDatabaseCredentials & WithUsername(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RedshiftDatabaseCredentials & WithUsername(Aws::String &&value)
#define AWS_MACHINELEARNING_API
JSON (JavaScript Object Notation).