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

Provides the configuration information for a token.

See Also:

* AWS * API Reference

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

Information about the JWT token type configuration.

*/ inline const JwtTokenTypeConfiguration& GetJwtTokenTypeConfiguration() const{ return m_jwtTokenTypeConfiguration; } /** *

Information about the JWT token type configuration.

*/ inline bool JwtTokenTypeConfigurationHasBeenSet() const { return m_jwtTokenTypeConfigurationHasBeenSet; } /** *

Information about the JWT token type configuration.

*/ inline void SetJwtTokenTypeConfiguration(const JwtTokenTypeConfiguration& value) { m_jwtTokenTypeConfigurationHasBeenSet = true; m_jwtTokenTypeConfiguration = value; } /** *

Information about the JWT token type configuration.

*/ inline void SetJwtTokenTypeConfiguration(JwtTokenTypeConfiguration&& value) { m_jwtTokenTypeConfigurationHasBeenSet = true; m_jwtTokenTypeConfiguration = std::move(value); } /** *

Information about the JWT token type configuration.

*/ inline UserTokenConfiguration& WithJwtTokenTypeConfiguration(const JwtTokenTypeConfiguration& value) { SetJwtTokenTypeConfiguration(value); return *this;} /** *

Information about the JWT token type configuration.

*/ inline UserTokenConfiguration& WithJwtTokenTypeConfiguration(JwtTokenTypeConfiguration&& value) { SetJwtTokenTypeConfiguration(std::move(value)); return *this;} /** *

Information about the JSON token type configuration.

*/ inline const JsonTokenTypeConfiguration& GetJsonTokenTypeConfiguration() const{ return m_jsonTokenTypeConfiguration; } /** *

Information about the JSON token type configuration.

*/ inline bool JsonTokenTypeConfigurationHasBeenSet() const { return m_jsonTokenTypeConfigurationHasBeenSet; } /** *

Information about the JSON token type configuration.

*/ inline void SetJsonTokenTypeConfiguration(const JsonTokenTypeConfiguration& value) { m_jsonTokenTypeConfigurationHasBeenSet = true; m_jsonTokenTypeConfiguration = value; } /** *

Information about the JSON token type configuration.

*/ inline void SetJsonTokenTypeConfiguration(JsonTokenTypeConfiguration&& value) { m_jsonTokenTypeConfigurationHasBeenSet = true; m_jsonTokenTypeConfiguration = std::move(value); } /** *

Information about the JSON token type configuration.

*/ inline UserTokenConfiguration& WithJsonTokenTypeConfiguration(const JsonTokenTypeConfiguration& value) { SetJsonTokenTypeConfiguration(value); return *this;} /** *

Information about the JSON token type configuration.

*/ inline UserTokenConfiguration& WithJsonTokenTypeConfiguration(JsonTokenTypeConfiguration&& value) { SetJsonTokenTypeConfiguration(std::move(value)); return *this;} private: JwtTokenTypeConfiguration m_jwtTokenTypeConfiguration; bool m_jwtTokenTypeConfigurationHasBeenSet = false; JsonTokenTypeConfiguration m_jsonTokenTypeConfiguration; bool m_jsonTokenTypeConfigurationHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws