/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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
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