AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
36 AWS_APPFLOW_API ServiceNowConnectorProfileCredentials() = default;
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 template<typename UsernameT = Aws::String>
49 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
50 template<typename UsernameT = Aws::String>
51 ServiceNowConnectorProfileCredentials& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetPassword() const { return m_password; }
59 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
60 template<typename PasswordT = Aws::String>
61 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
62 template<typename PasswordT = Aws::String>
63 ServiceNowConnectorProfileCredentials& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
65
67
70 inline const OAuth2Credentials& GetOAuth2Credentials() const { return m_oAuth2Credentials; }
71 inline bool OAuth2CredentialsHasBeenSet() const { return m_oAuth2CredentialsHasBeenSet; }
72 template<typename OAuth2CredentialsT = OAuth2Credentials>
73 void SetOAuth2Credentials(OAuth2CredentialsT&& value) { m_oAuth2CredentialsHasBeenSet = true; m_oAuth2Credentials = std::forward<OAuth2CredentialsT>(value); }
74 template<typename OAuth2CredentialsT = OAuth2Credentials>
75 ServiceNowConnectorProfileCredentials& WithOAuth2Credentials(OAuth2CredentialsT&& value) { SetOAuth2Credentials(std::forward<OAuth2CredentialsT>(value)); return *this;}
77 private:
78
79 Aws::String m_username;
80 bool m_usernameHasBeenSet = false;
81
82 Aws::String m_password;
83 bool m_passwordHasBeenSet = false;
84
85 OAuth2Credentials m_oAuth2Credentials;
86 bool m_oAuth2CredentialsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Appflow
91} // namespace Aws
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceNowConnectorProfileCredentials & WithPassword(PasswordT &&value)
ServiceNowConnectorProfileCredentials & WithUsername(UsernameT &&value)
ServiceNowConnectorProfileCredentials & WithOAuth2Credentials(OAuth2CredentialsT &&value)
AWS_APPFLOW_API ServiceNowConnectorProfileCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
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