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

A container for information about access control for replicas.

*

This is not supported by Amazon S3 on Outposts buckets.

See * Also:

AWS * API Reference

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

Specifies the replica ownership.

*/ inline const OwnerOverride& GetOwner() const{ return m_owner; } /** *

Specifies the replica ownership.

*/ inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; } /** *

Specifies the replica ownership.

*/ inline void SetOwner(const OwnerOverride& value) { m_ownerHasBeenSet = true; m_owner = value; } /** *

Specifies the replica ownership.

*/ inline void SetOwner(OwnerOverride&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); } /** *

Specifies the replica ownership.

*/ inline AccessControlTranslation& WithOwner(const OwnerOverride& value) { SetOwner(value); return *this;} /** *

Specifies the replica ownership.

*/ inline AccessControlTranslation& WithOwner(OwnerOverride&& value) { SetOwner(std::move(value)); return *this;} private: OwnerOverride m_owner; bool m_ownerHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws