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 authorization parameters for the connection if Basic is
28    * specified as the authorization type.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ConnectionBasicAuthResponseParameters">AWS
30    * API Reference</a></p>
31    */
32   class AWS_EVENTBRIDGE_API ConnectionBasicAuthResponseParameters
33   {
34   public:
35     ConnectionBasicAuthResponseParameters();
36     ConnectionBasicAuthResponseParameters(Aws::Utils::Json::JsonView jsonValue);
37     ConnectionBasicAuthResponseParameters& 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 ConnectionBasicAuthResponseParameters& 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 ConnectionBasicAuthResponseParameters& 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 ConnectionBasicAuthResponseParameters& WithUsername(const char* value) { SetUsername(value); return *this;}
80 
81   private:
82 
83     Aws::String m_username;
84     bool m_usernameHasBeenSet;
85   };
86 
87 } // namespace Model
88 } // namespace EventBridge
89 } // namespace Aws
90