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

Contains the Basic authorization parameters to use for the * connection.

See Also:

AWS * API Reference

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

The client ID to use for OAuth authorization for the connection.

*/ inline const Aws::String& GetClientID() const{ return m_clientID; } /** *

The client ID to use for OAuth authorization for the connection.

*/ inline bool ClientIDHasBeenSet() const { return m_clientIDHasBeenSet; } /** *

The client ID to use for OAuth authorization for the connection.

*/ inline void SetClientID(const Aws::String& value) { m_clientIDHasBeenSet = true; m_clientID = value; } /** *

The client ID to use for OAuth authorization for the connection.

*/ inline void SetClientID(Aws::String&& value) { m_clientIDHasBeenSet = true; m_clientID = std::move(value); } /** *

The client ID to use for OAuth authorization for the connection.

*/ inline void SetClientID(const char* value) { m_clientIDHasBeenSet = true; m_clientID.assign(value); } /** *

The client ID to use for OAuth authorization for the connection.

*/ inline CreateConnectionOAuthClientRequestParameters& WithClientID(const Aws::String& value) { SetClientID(value); return *this;} /** *

The client ID to use for OAuth authorization for the connection.

*/ inline CreateConnectionOAuthClientRequestParameters& WithClientID(Aws::String&& value) { SetClientID(std::move(value)); return *this;} /** *

The client ID to use for OAuth authorization for the connection.

*/ inline CreateConnectionOAuthClientRequestParameters& WithClientID(const char* value) { SetClientID(value); return *this;} /** *

The client secret associated with the client ID to use for OAuth * authorization for the connection.

*/ inline const Aws::String& GetClientSecret() const{ return m_clientSecret; } /** *

The client secret associated with the client ID to use for OAuth * authorization for the connection.

*/ inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; } /** *

The client secret associated with the client ID to use for OAuth * authorization for the connection.

*/ inline void SetClientSecret(const Aws::String& value) { m_clientSecretHasBeenSet = true; m_clientSecret = value; } /** *

The client secret associated with the client ID to use for OAuth * authorization for the connection.

*/ inline void SetClientSecret(Aws::String&& value) { m_clientSecretHasBeenSet = true; m_clientSecret = std::move(value); } /** *

The client secret associated with the client ID to use for OAuth * authorization for the connection.

*/ inline void SetClientSecret(const char* value) { m_clientSecretHasBeenSet = true; m_clientSecret.assign(value); } /** *

The client secret associated with the client ID to use for OAuth * authorization for the connection.

*/ inline CreateConnectionOAuthClientRequestParameters& WithClientSecret(const Aws::String& value) { SetClientSecret(value); return *this;} /** *

The client secret associated with the client ID to use for OAuth * authorization for the connection.

*/ inline CreateConnectionOAuthClientRequestParameters& WithClientSecret(Aws::String&& value) { SetClientSecret(std::move(value)); return *this;} /** *

The client secret associated with the client ID to use for OAuth * authorization for the connection.

*/ inline CreateConnectionOAuthClientRequestParameters& WithClientSecret(const char* value) { SetClientSecret(value); return *this;} private: Aws::String m_clientID; bool m_clientIDHasBeenSet = false; Aws::String m_clientSecret; bool m_clientSecretHasBeenSet = false; }; } // namespace Model } // namespace EventBridge } // namespace Aws