/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Appflow { namespace Model { /** *

The connector-specific profile credentials required when using SAPOData. *

See Also:

AWS * API Reference

*/ class SAPODataConnectorProfileCredentials { public: AWS_APPFLOW_API SAPODataConnectorProfileCredentials(); AWS_APPFLOW_API SAPODataConnectorProfileCredentials(Aws::Utils::Json::JsonView jsonValue); AWS_APPFLOW_API SAPODataConnectorProfileCredentials& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The SAPOData basic authentication credentials.

*/ inline const BasicAuthCredentials& GetBasicAuthCredentials() const{ return m_basicAuthCredentials; } /** *

The SAPOData basic authentication credentials.

*/ inline bool BasicAuthCredentialsHasBeenSet() const { return m_basicAuthCredentialsHasBeenSet; } /** *

The SAPOData basic authentication credentials.

*/ inline void SetBasicAuthCredentials(const BasicAuthCredentials& value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials = value; } /** *

The SAPOData basic authentication credentials.

*/ inline void SetBasicAuthCredentials(BasicAuthCredentials&& value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials = std::move(value); } /** *

The SAPOData basic authentication credentials.

*/ inline SAPODataConnectorProfileCredentials& WithBasicAuthCredentials(const BasicAuthCredentials& value) { SetBasicAuthCredentials(value); return *this;} /** *

The SAPOData basic authentication credentials.

*/ inline SAPODataConnectorProfileCredentials& WithBasicAuthCredentials(BasicAuthCredentials&& value) { SetBasicAuthCredentials(std::move(value)); return *this;} /** *

The SAPOData OAuth type authentication credentials.

*/ inline const OAuthCredentials& GetOAuthCredentials() const{ return m_oAuthCredentials; } /** *

The SAPOData OAuth type authentication credentials.

*/ inline bool OAuthCredentialsHasBeenSet() const { return m_oAuthCredentialsHasBeenSet; } /** *

The SAPOData OAuth type authentication credentials.

*/ inline void SetOAuthCredentials(const OAuthCredentials& value) { m_oAuthCredentialsHasBeenSet = true; m_oAuthCredentials = value; } /** *

The SAPOData OAuth type authentication credentials.

*/ inline void SetOAuthCredentials(OAuthCredentials&& value) { m_oAuthCredentialsHasBeenSet = true; m_oAuthCredentials = std::move(value); } /** *

The SAPOData OAuth type authentication credentials.

*/ inline SAPODataConnectorProfileCredentials& WithOAuthCredentials(const OAuthCredentials& value) { SetOAuthCredentials(value); return *this;} /** *

The SAPOData OAuth type authentication credentials.

*/ inline SAPODataConnectorProfileCredentials& WithOAuthCredentials(OAuthCredentials&& value) { SetOAuthCredentials(std::move(value)); return *this;} private: BasicAuthCredentials m_basicAuthCredentials; bool m_basicAuthCredentialsHasBeenSet = false; OAuthCredentials m_oAuthCredentials; bool m_oAuthCredentialsHasBeenSet = false; }; } // namespace Model } // namespace Appflow } // namespace Aws