/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include See Also:
AWS
* API Reference
The date when the applied Object Retention will expire on all objects in the * Batch Operations job.
*/ inline const Aws::Utils::DateTime& GetRetainUntilDate() const{ return m_retainUntilDate; } /** *The date when the applied Object Retention will expire on all objects in the * Batch Operations job.
*/ inline bool RetainUntilDateHasBeenSet() const { return m_retainUntilDateHasBeenSet; } /** *The date when the applied Object Retention will expire on all objects in the * Batch Operations job.
*/ inline void SetRetainUntilDate(const Aws::Utils::DateTime& value) { m_retainUntilDateHasBeenSet = true; m_retainUntilDate = value; } /** *The date when the applied Object Retention will expire on all objects in 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 Retention will expire on all objects in the * Batch Operations job.
*/ inline S3Retention& WithRetainUntilDate(const Aws::Utils::DateTime& value) { SetRetainUntilDate(value); return *this;} /** *The date when the applied Object Retention will expire on all objects in the * Batch Operations job.
*/ inline S3Retention& WithRetainUntilDate(Aws::Utils::DateTime&& value) { SetRetainUntilDate(std::move(value)); return *this;} /** *The Retention mode to be applied to all objects in the Batch Operations * job.
*/ inline const S3ObjectLockRetentionMode& GetMode() const{ return m_mode; } /** *The Retention mode to be applied to all objects in the Batch Operations * job.
*/ inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; } /** *The 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 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 Retention mode to be applied to all objects in the Batch Operations * job.
*/ inline S3Retention& WithMode(const S3ObjectLockRetentionMode& value) { SetMode(value); return *this;} /** *The 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; S3ObjectLockRetentionMode m_mode; bool m_modeHasBeenSet; }; } // namespace Model } // namespace S3Control } // namespace Aws