/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace S3Control { namespace Model { /** *

The Multi-Region Access Point access control policy.

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 MultiRegionAccessPointPolicyDocument { public: AWS_S3CONTROL_API MultiRegionAccessPointPolicyDocument(); AWS_S3CONTROL_API MultiRegionAccessPointPolicyDocument(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CONTROL_API MultiRegionAccessPointPolicyDocument& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

The last established policy for the Multi-Region Access Point.

*/ inline const EstablishedMultiRegionAccessPointPolicy& GetEstablished() const{ return m_established; } /** *

The last established policy for the Multi-Region Access Point.

*/ inline bool EstablishedHasBeenSet() const { return m_establishedHasBeenSet; } /** *

The last established policy for the Multi-Region Access Point.

*/ inline void SetEstablished(const EstablishedMultiRegionAccessPointPolicy& value) { m_establishedHasBeenSet = true; m_established = value; } /** *

The last established policy for the Multi-Region Access Point.

*/ inline void SetEstablished(EstablishedMultiRegionAccessPointPolicy&& value) { m_establishedHasBeenSet = true; m_established = std::move(value); } /** *

The last established policy for the Multi-Region Access Point.

*/ inline MultiRegionAccessPointPolicyDocument& WithEstablished(const EstablishedMultiRegionAccessPointPolicy& value) { SetEstablished(value); return *this;} /** *

The last established policy for the Multi-Region Access Point.

*/ inline MultiRegionAccessPointPolicyDocument& WithEstablished(EstablishedMultiRegionAccessPointPolicy&& value) { SetEstablished(std::move(value)); return *this;} /** *

The proposed policy for the Multi-Region Access Point.

*/ inline const ProposedMultiRegionAccessPointPolicy& GetProposed() const{ return m_proposed; } /** *

The proposed policy for the Multi-Region Access Point.

*/ inline bool ProposedHasBeenSet() const { return m_proposedHasBeenSet; } /** *

The proposed policy for the Multi-Region Access Point.

*/ inline void SetProposed(const ProposedMultiRegionAccessPointPolicy& value) { m_proposedHasBeenSet = true; m_proposed = value; } /** *

The proposed policy for the Multi-Region Access Point.

*/ inline void SetProposed(ProposedMultiRegionAccessPointPolicy&& value) { m_proposedHasBeenSet = true; m_proposed = std::move(value); } /** *

The proposed policy for the Multi-Region Access Point.

*/ inline MultiRegionAccessPointPolicyDocument& WithProposed(const ProposedMultiRegionAccessPointPolicy& value) { SetProposed(value); return *this;} /** *

The proposed policy for the Multi-Region Access Point.

*/ inline MultiRegionAccessPointPolicyDocument& WithProposed(ProposedMultiRegionAccessPointPolicy&& value) { SetProposed(std::move(value)); return *this;} private: EstablishedMultiRegionAccessPointPolicy m_established; bool m_establishedHasBeenSet = false; ProposedMultiRegionAccessPointPolicy m_proposed; bool m_proposedHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws