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/appflow/Appflow_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 Appflow
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p> The connector-specific profile credentials required when using ServiceNow.
28    * </p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ServiceNowConnectorProfileCredentials">AWS
30    * API Reference</a></p>
31    */
32   class AWS_APPFLOW_API ServiceNowConnectorProfileCredentials
33   {
34   public:
35     ServiceNowConnectorProfileCredentials();
36     ServiceNowConnectorProfileCredentials(Aws::Utils::Json::JsonView jsonValue);
37     ServiceNowConnectorProfileCredentials& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p> The name of the user. </p>
43      */
GetUsername()44     inline const Aws::String& GetUsername() const{ return m_username; }
45 
46     /**
47      * <p> The name of the user. </p>
48      */
UsernameHasBeenSet()49     inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
50 
51     /**
52      * <p> The name of the user. </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 name of the user. </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 name of the user. </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 name of the user. </p>
68      */
WithUsername(const Aws::String & value)69     inline ServiceNowConnectorProfileCredentials& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
70 
71     /**
72      * <p> The name of the user. </p>
73      */
WithUsername(Aws::String && value)74     inline ServiceNowConnectorProfileCredentials& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
75 
76     /**
77      * <p> The name of the user. </p>
78      */
WithUsername(const char * value)79     inline ServiceNowConnectorProfileCredentials& WithUsername(const char* value) { SetUsername(value); return *this;}
80 
81 
82     /**
83      * <p> The password that corresponds to the user name. </p>
84      */
GetPassword()85     inline const Aws::String& GetPassword() const{ return m_password; }
86 
87     /**
88      * <p> The password that corresponds to the user name. </p>
89      */
PasswordHasBeenSet()90     inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
91 
92     /**
93      * <p> The password that corresponds to the user name. </p>
94      */
SetPassword(const Aws::String & value)95     inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
96 
97     /**
98      * <p> The password that corresponds to the user name. </p>
99      */
SetPassword(Aws::String && value)100     inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
101 
102     /**
103      * <p> The password that corresponds to the user name. </p>
104      */
SetPassword(const char * value)105     inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
106 
107     /**
108      * <p> The password that corresponds to the user name. </p>
109      */
WithPassword(const Aws::String & value)110     inline ServiceNowConnectorProfileCredentials& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
111 
112     /**
113      * <p> The password that corresponds to the user name. </p>
114      */
WithPassword(Aws::String && value)115     inline ServiceNowConnectorProfileCredentials& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
116 
117     /**
118      * <p> The password that corresponds to the user name. </p>
119      */
WithPassword(const char * value)120     inline ServiceNowConnectorProfileCredentials& WithPassword(const char* value) { SetPassword(value); return *this;}
121 
122   private:
123 
124     Aws::String m_username;
125     bool m_usernameHasBeenSet;
126 
127     Aws::String m_password;
128     bool m_passwordHasBeenSet;
129   };
130 
131 } // namespace Model
132 } // namespace Appflow
133 } // namespace Aws
134