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