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

Contains the configuration for an S3 Object Lock legal hold operation that an * S3 Batch Operations job passes to every object to the underlying * PutObjectLegalHold API operation. For more information, see Using * S3 Object Lock legal hold with S3 Batch Operations in the Amazon S3 User * Guide.

See Also:

AWS * API Reference

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

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

*/ inline const S3ObjectLockLegalHold& GetLegalHold() const{ return m_legalHold; } /** *

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

*/ inline bool LegalHoldHasBeenSet() const { return m_legalHoldHasBeenSet; } /** *

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

*/ inline void SetLegalHold(const S3ObjectLockLegalHold& value) { m_legalHoldHasBeenSet = true; m_legalHold = value; } /** *

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

*/ inline void SetLegalHold(S3ObjectLockLegalHold&& value) { m_legalHoldHasBeenSet = true; m_legalHold = std::move(value); } /** *

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

*/ inline S3SetObjectLegalHoldOperation& WithLegalHold(const S3ObjectLockLegalHold& value) { SetLegalHold(value); return *this;} /** *

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

*/ inline S3SetObjectLegalHoldOperation& WithLegalHold(S3ObjectLockLegalHold&& value) { SetLegalHold(std::move(value)); return *this;} private: S3ObjectLockLegalHold m_legalHold; bool m_legalHoldHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws