/** * 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 explicitly denies authorization.

See Also:

* AWS * API Reference

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

The policies that denied the authorization.

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

The policies that denied the authorization.

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

The policies that denied the authorization.

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

The policies that denied the authorization.

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

The policies that denied the authorization.

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

The policies that denied the authorization.

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

The policies that denied the authorization.

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

The policies that denied the authorization.

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