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

See Also:

AWS * API Reference

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

The date when the applied Object Retention will expire on all objects in the * Batch Operations job.

*/ inline const Aws::Utils::DateTime& GetRetainUntilDate() const{ return m_retainUntilDate; } /** *

The date when the applied Object Retention will expire on all objects in the * Batch Operations job.

*/ inline bool RetainUntilDateHasBeenSet() const { return m_retainUntilDateHasBeenSet; } /** *

The date when the applied Object Retention will expire on all objects in the * Batch Operations job.

*/ inline void SetRetainUntilDate(const Aws::Utils::DateTime& value) { m_retainUntilDateHasBeenSet = true; m_retainUntilDate = value; } /** *

The date when the applied Object Retention will expire on all objects in the * Batch Operations job.

*/ inline void SetRetainUntilDate(Aws::Utils::DateTime&& value) { m_retainUntilDateHasBeenSet = true; m_retainUntilDate = std::move(value); } /** *

The date when the applied Object Retention will expire on all objects in the * Batch Operations job.

*/ inline S3Retention& WithRetainUntilDate(const Aws::Utils::DateTime& value) { SetRetainUntilDate(value); return *this;} /** *

The date when the applied Object Retention will expire on all objects in the * Batch Operations job.

*/ inline S3Retention& WithRetainUntilDate(Aws::Utils::DateTime&& value) { SetRetainUntilDate(std::move(value)); return *this;} /** *

The Retention mode to be applied to all objects in the Batch Operations * job.

*/ inline const S3ObjectLockRetentionMode& GetMode() const{ return m_mode; } /** *

The Retention mode to be applied to all objects in the Batch Operations * job.

*/ inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; } /** *

The Retention mode to be applied to all objects in the Batch Operations * job.

*/ inline void SetMode(const S3ObjectLockRetentionMode& value) { m_modeHasBeenSet = true; m_mode = value; } /** *

The Retention mode to be applied to all objects in the Batch Operations * job.

*/ inline void SetMode(S3ObjectLockRetentionMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); } /** *

The Retention mode to be applied to all objects in the Batch Operations * job.

*/ inline S3Retention& WithMode(const S3ObjectLockRetentionMode& value) { SetMode(value); return *this;} /** *

The Retention mode to be applied to all objects in the Batch Operations * job.

*/ inline S3Retention& WithMode(S3ObjectLockRetentionMode&& value) { SetMode(std::move(value)); return *this;} private: Aws::Utils::DateTime m_retainUntilDate; bool m_retainUntilDateHasBeenSet; S3ObjectLockRetentionMode m_mode; bool m_modeHasBeenSet; }; } // namespace Model } // namespace S3Control } // namespace Aws