/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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
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