/** * 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 { /** *

A structure that contains details about a resource policy.

See * Also:

AWS * API Reference

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

A structure that contains resource policy ID and Amazon Resource Name * (ARN).

*/ inline const ResourcePolicySummary& GetResourcePolicySummary() const{ return m_resourcePolicySummary; } /** *

A structure that contains resource policy ID and Amazon Resource Name * (ARN).

*/ inline bool ResourcePolicySummaryHasBeenSet() const { return m_resourcePolicySummaryHasBeenSet; } /** *

A structure that contains resource policy ID and Amazon Resource Name * (ARN).

*/ inline void SetResourcePolicySummary(const ResourcePolicySummary& value) { m_resourcePolicySummaryHasBeenSet = true; m_resourcePolicySummary = value; } /** *

A structure that contains resource policy ID and Amazon Resource Name * (ARN).

*/ inline void SetResourcePolicySummary(ResourcePolicySummary&& value) { m_resourcePolicySummaryHasBeenSet = true; m_resourcePolicySummary = std::move(value); } /** *

A structure that contains resource policy ID and Amazon Resource Name * (ARN).

*/ inline ResourcePolicy& WithResourcePolicySummary(const ResourcePolicySummary& value) { SetResourcePolicySummary(value); return *this;} /** *

A structure that contains resource policy ID and Amazon Resource Name * (ARN).

*/ inline ResourcePolicy& WithResourcePolicySummary(ResourcePolicySummary&& value) { SetResourcePolicySummary(std::move(value)); return *this;} /** *

The policy text of the resource policy.

*/ inline const Aws::String& GetContent() const{ return m_content; } /** *

The policy text of the resource policy.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

The policy text of the resource policy.

*/ inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; } /** *

The policy text of the resource policy.

*/ inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

The policy text of the resource policy.

*/ inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); } /** *

The policy text of the resource policy.

*/ inline ResourcePolicy& WithContent(const Aws::String& value) { SetContent(value); return *this;} /** *

The policy text of the resource policy.

*/ inline ResourcePolicy& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;} /** *

The policy text of the resource policy.

*/ inline ResourcePolicy& WithContent(const char* value) { SetContent(value); return *this;} private: ResourcePolicySummary m_resourcePolicySummary; bool m_resourcePolicySummaryHasBeenSet = false; Aws::String m_content; bool m_contentHasBeenSet = false; }; } // namespace Model } // namespace Organizations } // namespace Aws