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

Contains information that denied the authorization.

See Also:

* AWS API * Reference

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

Information that implicitly denies the authorization. When a policy doesn't * explicitly deny or allow an action on a resource it is considered an implicit * deny.

*/ inline const ImplicitDeny& GetImplicitDeny() const{ return m_implicitDeny; } /** *

Information that implicitly denies the authorization. When a policy doesn't * explicitly deny or allow an action on a resource it is considered an implicit * deny.

*/ inline bool ImplicitDenyHasBeenSet() const { return m_implicitDenyHasBeenSet; } /** *

Information that implicitly denies the authorization. When a policy doesn't * explicitly deny or allow an action on a resource it is considered an implicit * deny.

*/ inline void SetImplicitDeny(const ImplicitDeny& value) { m_implicitDenyHasBeenSet = true; m_implicitDeny = value; } /** *

Information that implicitly denies the authorization. When a policy doesn't * explicitly deny or allow an action on a resource it is considered an implicit * deny.

*/ inline void SetImplicitDeny(ImplicitDeny&& value) { m_implicitDenyHasBeenSet = true; m_implicitDeny = std::move(value); } /** *

Information that implicitly denies the authorization. When a policy doesn't * explicitly deny or allow an action on a resource it is considered an implicit * deny.

*/ inline Denied& WithImplicitDeny(const ImplicitDeny& value) { SetImplicitDeny(value); return *this;} /** *

Information that implicitly denies the authorization. When a policy doesn't * explicitly deny or allow an action on a resource it is considered an implicit * deny.

*/ inline Denied& WithImplicitDeny(ImplicitDeny&& value) { SetImplicitDeny(std::move(value)); return *this;} /** *

Information that explicitly denies the authorization.

*/ inline const ExplicitDeny& GetExplicitDeny() const{ return m_explicitDeny; } /** *

Information that explicitly denies the authorization.

*/ inline bool ExplicitDenyHasBeenSet() const { return m_explicitDenyHasBeenSet; } /** *

Information that explicitly denies the authorization.

*/ inline void SetExplicitDeny(const ExplicitDeny& value) { m_explicitDenyHasBeenSet = true; m_explicitDeny = value; } /** *

Information that explicitly denies the authorization.

*/ inline void SetExplicitDeny(ExplicitDeny&& value) { m_explicitDenyHasBeenSet = true; m_explicitDeny = std::move(value); } /** *

Information that explicitly denies the authorization.

*/ inline Denied& WithExplicitDeny(const ExplicitDeny& value) { SetExplicitDeny(value); return *this;} /** *

Information that explicitly denies the authorization.

*/ inline Denied& WithExplicitDeny(ExplicitDeny&& value) { SetExplicitDeny(std::move(value)); return *this;} private: ImplicitDeny m_implicitDeny; bool m_implicitDenyHasBeenSet = false; ExplicitDeny m_explicitDeny; bool m_explicitDenyHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws