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/eventbridge/EventBridge_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 EventBridge
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>Contains the Basic authorization parameters for the connection.</p><p><h3>See
28    * Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/UpdateConnectionBasicAuthRequestParameters">AWS
30    * API Reference</a></p>
31    */
32   class AWS_EVENTBRIDGE_API UpdateConnectionBasicAuthRequestParameters
33   {
34   public:
35     UpdateConnectionBasicAuthRequestParameters();
36     UpdateConnectionBasicAuthRequestParameters(Aws::Utils::Json::JsonView jsonValue);
37     UpdateConnectionBasicAuthRequestParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The user name to use for Basic authorization.</p>
43      */
GetUsername()44     inline const Aws::String& GetUsername() const{ return m_username; }
45 
46     /**
47      * <p>The user name to use for Basic authorization.</p>
48      */
UsernameHasBeenSet()49     inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
50 
51     /**
52      * <p>The user name to use for Basic authorization.</p>
53      */
SetUsername(const Aws::String & value)54     inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
55 
56     /**
57      * <p>The user name to use for Basic authorization.</p>
58      */
SetUsername(Aws::String && value)59     inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
60 
61     /**
62      * <p>The user name to use for Basic authorization.</p>
63      */
SetUsername(const char * value)64     inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
65 
66     /**
67      * <p>The user name to use for Basic authorization.</p>
68      */
WithUsername(const Aws::String & value)69     inline UpdateConnectionBasicAuthRequestParameters& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
70 
71     /**
72      * <p>The user name to use for Basic authorization.</p>
73      */
WithUsername(Aws::String && value)74     inline UpdateConnectionBasicAuthRequestParameters& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
75 
76     /**
77      * <p>The user name to use for Basic authorization.</p>
78      */
WithUsername(const char * value)79     inline UpdateConnectionBasicAuthRequestParameters& WithUsername(const char* value) { SetUsername(value); return *this;}
80 
81 
82     /**
83      * <p>The password associated with the user name to use for Basic
84      * authorization.</p>
85      */
GetPassword()86     inline const Aws::String& GetPassword() const{ return m_password; }
87 
88     /**
89      * <p>The password associated with the user name to use for Basic
90      * authorization.</p>
91      */
PasswordHasBeenSet()92     inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
93 
94     /**
95      * <p>The password associated with the user name to use for Basic
96      * authorization.</p>
97      */
SetPassword(const Aws::String & value)98     inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
99 
100     /**
101      * <p>The password associated with the user name to use for Basic
102      * authorization.</p>
103      */
SetPassword(Aws::String && value)104     inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
105 
106     /**
107      * <p>The password associated with the user name to use for Basic
108      * authorization.</p>
109      */
SetPassword(const char * value)110     inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
111 
112     /**
113      * <p>The password associated with the user name to use for Basic
114      * authorization.</p>
115      */
WithPassword(const Aws::String & value)116     inline UpdateConnectionBasicAuthRequestParameters& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
117 
118     /**
119      * <p>The password associated with the user name to use for Basic
120      * authorization.</p>
121      */
WithPassword(Aws::String && value)122     inline UpdateConnectionBasicAuthRequestParameters& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
123 
124     /**
125      * <p>The password associated with the user name to use for Basic
126      * authorization.</p>
127      */
WithPassword(const char * value)128     inline UpdateConnectionBasicAuthRequestParameters& WithPassword(const char* value) { SetPassword(value); return *this;}
129 
130   private:
131 
132     Aws::String m_username;
133     bool m_usernameHasBeenSet;
134 
135     Aws::String m_password;
136     bool m_passwordHasBeenSet;
137   };
138 
139 } // namespace Model
140 } // namespace EventBridge
141 } // namespace Aws
142