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

A structure that describes a policy definition. It must always have either an * static or a templateLinked element.

This data * type is used as a response parameter for the GetPolicy * operation.

See Also:

AWS * API Reference

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

Information about a static policy that wasn't created with a policy * template.

*/ inline const StaticPolicyDefinitionDetail& GetStatic() const{ return m_static; } /** *

Information about a static policy that wasn't created with a policy * template.

*/ inline bool StaticHasBeenSet() const { return m_staticHasBeenSet; } /** *

Information about a static policy that wasn't created with a policy * template.

*/ inline void SetStatic(const StaticPolicyDefinitionDetail& value) { m_staticHasBeenSet = true; m_static = value; } /** *

Information about a static policy that wasn't created with a policy * template.

*/ inline void SetStatic(StaticPolicyDefinitionDetail&& value) { m_staticHasBeenSet = true; m_static = std::move(value); } /** *

Information about a static policy that wasn't created with a policy * template.

*/ inline PolicyDefinitionDetail& WithStatic(const StaticPolicyDefinitionDetail& value) { SetStatic(value); return *this;} /** *

Information about a static policy that wasn't created with a policy * template.

*/ inline PolicyDefinitionDetail& WithStatic(StaticPolicyDefinitionDetail&& value) { SetStatic(std::move(value)); return *this;} /** *

Information about a template-linked policy that was created by instantiating * a policy template.

*/ inline const TemplateLinkedPolicyDefinitionDetail& GetTemplateLinked() const{ return m_templateLinked; } /** *

Information about a template-linked policy that was created by instantiating * a policy template.

*/ inline bool TemplateLinkedHasBeenSet() const { return m_templateLinkedHasBeenSet; } /** *

Information about a template-linked policy that was created by instantiating * a policy template.

*/ inline void SetTemplateLinked(const TemplateLinkedPolicyDefinitionDetail& value) { m_templateLinkedHasBeenSet = true; m_templateLinked = value; } /** *

Information about a template-linked policy that was created by instantiating * a policy template.

*/ inline void SetTemplateLinked(TemplateLinkedPolicyDefinitionDetail&& value) { m_templateLinkedHasBeenSet = true; m_templateLinked = std::move(value); } /** *

Information about a template-linked policy that was created by instantiating * a policy template.

*/ inline PolicyDefinitionDetail& WithTemplateLinked(const TemplateLinkedPolicyDefinitionDetail& value) { SetTemplateLinked(value); return *this;} /** *

Information about a template-linked policy that was created by instantiating * a policy template.

*/ inline PolicyDefinitionDetail& WithTemplateLinked(TemplateLinkedPolicyDefinitionDetail&& value) { SetTemplateLinked(std::move(value)); return *this;} private: StaticPolicyDefinitionDetail m_static; bool m_staticHasBeenSet = false; TemplateLinkedPolicyDefinitionDetail m_templateLinked; bool m_templateLinkedHasBeenSet = false; }; } // namespace Model } // namespace VerifiedPermissions } // namespace Aws