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

An object that specifies the authorization service for a * domain.

See Also:

AWS * API Reference

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

The name of the authorization service for a domain configuration.

*/ inline const Aws::String& GetDefaultAuthorizerName() const{ return m_defaultAuthorizerName; } /** *

The name of the authorization service for a domain configuration.

*/ inline bool DefaultAuthorizerNameHasBeenSet() const { return m_defaultAuthorizerNameHasBeenSet; } /** *

The name of the authorization service for a domain configuration.

*/ inline void SetDefaultAuthorizerName(const Aws::String& value) { m_defaultAuthorizerNameHasBeenSet = true; m_defaultAuthorizerName = value; } /** *

The name of the authorization service for a domain configuration.

*/ inline void SetDefaultAuthorizerName(Aws::String&& value) { m_defaultAuthorizerNameHasBeenSet = true; m_defaultAuthorizerName = std::move(value); } /** *

The name of the authorization service for a domain configuration.

*/ inline void SetDefaultAuthorizerName(const char* value) { m_defaultAuthorizerNameHasBeenSet = true; m_defaultAuthorizerName.assign(value); } /** *

The name of the authorization service for a domain configuration.

*/ inline AuthorizerConfig& WithDefaultAuthorizerName(const Aws::String& value) { SetDefaultAuthorizerName(value); return *this;} /** *

The name of the authorization service for a domain configuration.

*/ inline AuthorizerConfig& WithDefaultAuthorizerName(Aws::String&& value) { SetDefaultAuthorizerName(std::move(value)); return *this;} /** *

The name of the authorization service for a domain configuration.

*/ inline AuthorizerConfig& WithDefaultAuthorizerName(const char* value) { SetDefaultAuthorizerName(value); return *this;} /** *

A Boolean that specifies whether the domain configuration's authorization * service can be overridden.

*/ inline bool GetAllowAuthorizerOverride() const{ return m_allowAuthorizerOverride; } /** *

A Boolean that specifies whether the domain configuration's authorization * service can be overridden.

*/ inline bool AllowAuthorizerOverrideHasBeenSet() const { return m_allowAuthorizerOverrideHasBeenSet; } /** *

A Boolean that specifies whether the domain configuration's authorization * service can be overridden.

*/ inline void SetAllowAuthorizerOverride(bool value) { m_allowAuthorizerOverrideHasBeenSet = true; m_allowAuthorizerOverride = value; } /** *

A Boolean that specifies whether the domain configuration's authorization * service can be overridden.

*/ inline AuthorizerConfig& WithAllowAuthorizerOverride(bool value) { SetAllowAuthorizerOverride(value); return *this;} private: Aws::String m_defaultAuthorizerName; bool m_defaultAuthorizerNameHasBeenSet = false; bool m_allowAuthorizerOverride; bool m_allowAuthorizerOverrideHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws