/** * 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 { /** *

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

See Also:

AWS * API Reference

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

Policies that don't contain a matching allow or deny statement for the * specified action on the specified resource.

*/ inline const Aws::Vector& GetPolicies() const{ return m_policies; } /** *

Policies that don't contain a matching allow or deny statement for the * specified action on the specified resource.

*/ inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; } /** *

Policies that don't contain a matching allow or deny statement for the * specified action on the specified resource.

*/ inline void SetPolicies(const Aws::Vector& value) { m_policiesHasBeenSet = true; m_policies = value; } /** *

Policies that don't contain a matching allow or deny statement for the * specified action on the specified resource.

*/ inline void SetPolicies(Aws::Vector&& value) { m_policiesHasBeenSet = true; m_policies = std::move(value); } /** *

Policies that don't contain a matching allow or deny statement for the * specified action on the specified resource.

*/ inline ImplicitDeny& WithPolicies(const Aws::Vector& value) { SetPolicies(value); return *this;} /** *

Policies that don't contain a matching allow or deny statement for the * specified action on the specified resource.

*/ inline ImplicitDeny& WithPolicies(Aws::Vector&& value) { SetPolicies(std::move(value)); return *this;} /** *

Policies that don't contain a matching allow or deny statement for the * specified action on the specified resource.

*/ inline ImplicitDeny& AddPolicies(const Policy& value) { m_policiesHasBeenSet = true; m_policies.push_back(value); return *this; } /** *

Policies that don't contain a matching allow or deny statement for the * specified action on the specified resource.

*/ inline ImplicitDeny& AddPolicies(Policy&& value) { m_policiesHasBeenSet = true; m_policies.push_back(std::move(value)); return *this; } private: Aws::Vector m_policies; bool m_policiesHasBeenSet; }; } // namespace Model } // namespace IoT } // namespace Aws