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

Whether S3 Object Lock legal hold will be applied to objects in an S3 Batch * Operations job.

See Also:

AWS * API Reference

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

The Object Lock legal hold status to be applied to all objects in the Batch * Operations job.

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

The Object Lock legal hold status to be applied to all objects in the Batch * Operations job.

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

The Object Lock legal hold status to be applied to all objects in the Batch * Operations job.

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

The Object Lock legal hold status to be applied to all objects in the Batch * Operations job.

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

The Object Lock legal hold status to be applied to all objects in the Batch * Operations job.

*/ inline S3ObjectLockLegalHold& WithStatus(const S3ObjectLockLegalHoldStatus& value) { SetStatus(value); return *this;} /** *

The Object Lock legal hold status to be applied to all objects in the Batch * Operations job.

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