/** * 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 AppFabric { namespace Model { /** *

Contains OAuth2 client credential information.

See Also:

AWS * API Reference

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

The client ID of the client application.

*/ inline const Aws::String& GetClientId() const{ return m_clientId; } /** *

The client ID of the client application.

*/ inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; } /** *

The client ID of the client application.

*/ inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; } /** *

The client ID of the client application.

*/ inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); } /** *

The client ID of the client application.

*/ inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); } /** *

The client ID of the client application.

*/ inline Oauth2Credential& WithClientId(const Aws::String& value) { SetClientId(value); return *this;} /** *

The client ID of the client application.

*/ inline Oauth2Credential& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;} /** *

The client ID of the client application.

*/ inline Oauth2Credential& WithClientId(const char* value) { SetClientId(value); return *this;} /** *

The client secret of the client application.

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

The client secret of the client application.

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

The client secret of the client application.

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

The client secret of the client application.

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

The client secret of the client application.

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

The client secret of the client application.

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

The client secret of the client application.

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

The client secret of the client application.

*/ inline Oauth2Credential& 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 AppFabric } // namespace Aws