AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceNowConnectorProfileCredentials.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appflow/model/OAuth2Credentials.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Appflow
23{
24namespace Model
25{
26
34 {
35 public:
39 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetUsername() const{ return m_username; }
47 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
48 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
49 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
50 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
51 inline ServiceNowConnectorProfileCredentials& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
52 inline ServiceNowConnectorProfileCredentials& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
53 inline ServiceNowConnectorProfileCredentials& WithUsername(const char* value) { SetUsername(value); return *this;}
55
57
60 inline const Aws::String& GetPassword() const{ return m_password; }
61 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
62 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
63 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
64 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
65 inline ServiceNowConnectorProfileCredentials& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
66 inline ServiceNowConnectorProfileCredentials& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
67 inline ServiceNowConnectorProfileCredentials& WithPassword(const char* value) { SetPassword(value); return *this;}
69
71
74 inline const OAuth2Credentials& GetOAuth2Credentials() const{ return m_oAuth2Credentials; }
75 inline bool OAuth2CredentialsHasBeenSet() const { return m_oAuth2CredentialsHasBeenSet; }
76 inline void SetOAuth2Credentials(const OAuth2Credentials& value) { m_oAuth2CredentialsHasBeenSet = true; m_oAuth2Credentials = value; }
77 inline void SetOAuth2Credentials(OAuth2Credentials&& value) { m_oAuth2CredentialsHasBeenSet = true; m_oAuth2Credentials = std::move(value); }
81 private:
82
83 Aws::String m_username;
84 bool m_usernameHasBeenSet = false;
85
86 Aws::String m_password;
87 bool m_passwordHasBeenSet = false;
88
89 OAuth2Credentials m_oAuth2Credentials;
90 bool m_oAuth2CredentialsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Appflow
95} // namespace Aws
ServiceNowConnectorProfileCredentials & WithUsername(const char *value)
ServiceNowConnectorProfileCredentials & WithUsername(const Aws::String &value)
ServiceNowConnectorProfileCredentials & WithPassword(const char *value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceNowConnectorProfileCredentials & WithOAuth2Credentials(const OAuth2Credentials &value)
ServiceNowConnectorProfileCredentials & WithPassword(Aws::String &&value)
ServiceNowConnectorProfileCredentials & WithOAuth2Credentials(OAuth2Credentials &&value)
ServiceNowConnectorProfileCredentials & WithUsername(Aws::String &&value)
AWS_APPFLOW_API ServiceNowConnectorProfileCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceNowConnectorProfileCredentials & WithPassword(const Aws::String &value)
AWS_APPFLOW_API ServiceNowConnectorProfileCredentials(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue