/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the S3 Object Lock retention mode to be applied to all objects in
* the S3 Batch Operations job. If you don't provide Mode
and
* RetainUntilDate
data types in your operation, you will remove the
* retention from your objects. For more information, see Using
* S3 Object Lock retention with S3 Batch Operations in the Amazon S3 User
* Guide.See Also:
AWS
* API Reference
The date when the applied Object Lock retention will expire on all objects * set by the Batch Operations job.
*/ inline const Aws::Utils::DateTime& GetRetainUntilDate() const{ return m_retainUntilDate; } /** *The date when the applied Object Lock retention will expire on all objects * set by the Batch Operations job.
*/ inline bool RetainUntilDateHasBeenSet() const { return m_retainUntilDateHasBeenSet; } /** *The date when the applied Object Lock retention will expire on all objects * set by the Batch Operations job.
*/ inline void SetRetainUntilDate(const Aws::Utils::DateTime& value) { m_retainUntilDateHasBeenSet = true; m_retainUntilDate = value; } /** *The date when the applied Object Lock retention will expire on all objects * set by the Batch Operations job.
*/ inline void SetRetainUntilDate(Aws::Utils::DateTime&& value) { m_retainUntilDateHasBeenSet = true; m_retainUntilDate = std::move(value); } /** *The date when the applied Object Lock retention will expire on all objects * set by the Batch Operations job.
*/ inline S3Retention& WithRetainUntilDate(const Aws::Utils::DateTime& value) { SetRetainUntilDate(value); return *this;} /** *The date when the applied Object Lock retention will expire on all objects * set by the Batch Operations job.
*/ inline S3Retention& WithRetainUntilDate(Aws::Utils::DateTime&& value) { SetRetainUntilDate(std::move(value)); return *this;} /** *The Object Lock retention mode to be applied to all objects in the Batch * Operations job.
*/ inline const S3ObjectLockRetentionMode& GetMode() const{ return m_mode; } /** *The Object Lock retention mode to be applied to all objects in the Batch * Operations job.
*/ inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; } /** *The Object Lock retention mode to be applied to all objects in the Batch * Operations job.
*/ inline void SetMode(const S3ObjectLockRetentionMode& value) { m_modeHasBeenSet = true; m_mode = value; } /** *The Object Lock retention mode to be applied to all objects in the Batch * Operations job.
*/ inline void SetMode(S3ObjectLockRetentionMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); } /** *The Object Lock retention mode to be applied to all objects in the Batch * Operations job.
*/ inline S3Retention& WithMode(const S3ObjectLockRetentionMode& value) { SetMode(value); return *this;} /** *The Object Lock retention mode to be applied to all objects in the Batch * Operations job.
*/ inline S3Retention& WithMode(S3ObjectLockRetentionMode&& value) { SetMode(std::move(value)); return *this;} private: Aws::Utils::DateTime m_retainUntilDate; bool m_retainUntilDateHasBeenSet = false; S3ObjectLockRetentionMode m_mode; bool m_modeHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws