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

Specifies whether S3 on Outposts replicates delete markers. If you specify a * Filter element in your replication configuration, you must also * include a DeleteMarkerReplication element. If your * Filter includes a Tag element, the * DeleteMarkerReplication element's Status child element * must be set to Disabled, because S3 on Outposts does not support * replicating delete markers for tag-based rules.

For more information * about delete marker replication, see How * delete operations affect replication in the Amazon S3 User Guide. *

See Also:

AWS * API Reference

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

Indicates whether to replicate delete markers.

*/ inline const DeleteMarkerReplicationStatus& GetStatus() const{ return m_status; } /** *

Indicates whether to replicate delete markers.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Indicates whether to replicate delete markers.

*/ inline void SetStatus(const DeleteMarkerReplicationStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Indicates whether to replicate delete markers.

*/ inline void SetStatus(DeleteMarkerReplicationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

Indicates whether to replicate delete markers.

*/ inline DeleteMarkerReplication& WithStatus(const DeleteMarkerReplicationStatus& value) { SetStatus(value); return *this;} /** *

Indicates whether to replicate delete markers.

*/ inline DeleteMarkerReplication& WithStatus(DeleteMarkerReplicationStatus&& value) { SetStatus(std::move(value)); return *this;} private: DeleteMarkerReplicationStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws