/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains rules to be applied to the affected accounts. Policies can be
* attached directly to accounts, or to roots and OUs to affect all accounts in
* those hierarchies.See Also:
AWS
* API Reference
A structure that contains additional details about the policy.
*/ inline const PolicySummary& GetPolicySummary() const{ return m_policySummary; } /** *A structure that contains additional details about the policy.
*/ inline bool PolicySummaryHasBeenSet() const { return m_policySummaryHasBeenSet; } /** *A structure that contains additional details about the policy.
*/ inline void SetPolicySummary(const PolicySummary& value) { m_policySummaryHasBeenSet = true; m_policySummary = value; } /** *A structure that contains additional details about the policy.
*/ inline void SetPolicySummary(PolicySummary&& value) { m_policySummaryHasBeenSet = true; m_policySummary = std::move(value); } /** *A structure that contains additional details about the policy.
*/ inline Policy& WithPolicySummary(const PolicySummary& value) { SetPolicySummary(value); return *this;} /** *A structure that contains additional details about the policy.
*/ inline Policy& WithPolicySummary(PolicySummary&& value) { SetPolicySummary(std::move(value)); return *this;} /** *The text content of the policy.
*/ inline const Aws::String& GetContent() const{ return m_content; } /** *The text content of the policy.
*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *The text content of the policy.
*/ inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; } /** *The text content of the policy.
*/ inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *The text content of the policy.
*/ inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); } /** *The text content of the policy.
*/ inline Policy& WithContent(const Aws::String& value) { SetContent(value); return *this;} /** *The text content of the policy.
*/ inline Policy& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;} /** *The text content of the policy.
*/ inline Policy& WithContent(const char* value) { SetContent(value); return *this;} private: PolicySummary m_policySummary; bool m_policySummaryHasBeenSet = false; Aws::String m_content; bool m_contentHasBeenSet = false; }; } // namespace Model } // namespace Organizations } // namespace Aws