/** * 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 allowed the authorization.

See Also:

* AWS API * Reference

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

A list of policies that allowed the authentication.

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

A list of policies that allowed the authentication.

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

A list of policies that allowed the authentication.

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

A list of policies that allowed the authentication.

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

A list of policies that allowed the authentication.

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

A list of policies that allowed the authentication.

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

A list of policies that allowed the authentication.

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

A list of policies that allowed the authentication.

*/ inline Allowed& 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