/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A structure that describes a policy definition. It must always have either an
* This data
* type is used as a response parameter for the GetPolicy
* operation.static
or a templateLinked
element.See Also:
AWS
* API Reference
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