/** * 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 S3 { namespace Model { /** *

A container for information about access control for replicas.

See * Also:

AWS * API Reference

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

Specifies the replica ownership. For default and valid values, see PUT * bucket replication in the Amazon S3 API Reference.

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

Specifies the replica ownership. For default and valid values, see PUT * bucket replication in the Amazon S3 API Reference.

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

Specifies the replica ownership. For default and valid values, see PUT * bucket replication in the Amazon S3 API Reference.

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

Specifies the replica ownership. For default and valid values, see PUT * bucket replication in the Amazon S3 API Reference.

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

Specifies the replica ownership. For default and valid values, see PUT * bucket replication in the Amazon S3 API Reference.

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

Specifies the replica ownership. For default and valid values, see PUT * bucket replication in the Amazon S3 API Reference.

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