/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace S3Control { namespace Model { /** *

The proposed access control policy for the Multi-Region Access Point.

*

When you update the policy, the update is first listed as the proposed * policy. After the update is finished and all Regions have been updated, the * proposed policy is listed as the established policy. If both policies have the * same version number, the proposed policy is the established * policy.

See Also:

AWS * API Reference

*/ class ProposedMultiRegionAccessPointPolicy { public: AWS_S3CONTROL_API ProposedMultiRegionAccessPointPolicy(); AWS_S3CONTROL_API ProposedMultiRegionAccessPointPolicy(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CONTROL_API ProposedMultiRegionAccessPointPolicy& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

The details of the proposed policy.

*/ inline const Aws::String& GetPolicy() const{ return m_policy; } /** *

The details of the proposed policy.

*/ inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; } /** *

The details of the proposed policy.

*/ inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; } /** *

The details of the proposed policy.

*/ inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); } /** *

The details of the proposed policy.

*/ inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); } /** *

The details of the proposed policy.

*/ inline ProposedMultiRegionAccessPointPolicy& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} /** *

The details of the proposed policy.

*/ inline ProposedMultiRegionAccessPointPolicy& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;} /** *

The details of the proposed policy.

*/ inline ProposedMultiRegionAccessPointPolicy& WithPolicy(const char* value) { SetPolicy(value); return *this;} private: Aws::String m_policy; bool m_policyHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws