/** * 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 parameters for a Set Object Legal Hold operation. * Amazon S3 Batch Operations passes each value through to the underlying PUT * Object Legal Hold API. For more information about the parameters for this * operation, see PUT * Object Legal Hold.

See Also:

AWS * API Reference

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

The Legal Hold contains the status to be applied to all objects in the Batch * Operations job.

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

The Legal Hold contains the status to be applied to all objects in the Batch * Operations job.

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

The Legal Hold contains the status to be applied to all objects in the Batch * Operations job.

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

The Legal Hold contains the 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); } /** *

The Legal Hold contains the status to be applied to all objects in the Batch * Operations job.

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

The Legal Hold contains the 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; }; } // namespace Model } // namespace S3Control } // namespace Aws