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

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

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

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