/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A container specifying S3 Replication Time Control (S3 RTC) related
* information, including whether S3 RTC is enabled and the time when all objects
* and operations on objects must be replicated. Must be specified together with a
* Metrics
block. See Also:
AWS
* API Reference
Specifies whether the replication time is enabled.
*/ inline const ReplicationTimeStatus& GetStatus() const{ return m_status; } /** *Specifies whether the replication time is enabled.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *Specifies whether the replication time is enabled.
*/ inline void SetStatus(const ReplicationTimeStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *Specifies whether the replication time is enabled.
*/ inline void SetStatus(ReplicationTimeStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *Specifies whether the replication time is enabled.
*/ inline ReplicationTime& WithStatus(const ReplicationTimeStatus& value) { SetStatus(value); return *this;} /** *Specifies whether the replication time is enabled.
*/ inline ReplicationTime& WithStatus(ReplicationTimeStatus&& value) { SetStatus(std::move(value)); return *this;} /** *A container specifying the time by which replication should be complete for * all objects and operations on objects.
*/ inline const ReplicationTimeValue& GetTime() const{ return m_time; } /** *A container specifying the time by which replication should be complete for * all objects and operations on objects.
*/ inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; } /** *A container specifying the time by which replication should be complete for * all objects and operations on objects.
*/ inline void SetTime(const ReplicationTimeValue& value) { m_timeHasBeenSet = true; m_time = value; } /** *A container specifying the time by which replication should be complete for * all objects and operations on objects.
*/ inline void SetTime(ReplicationTimeValue&& value) { m_timeHasBeenSet = true; m_time = std::move(value); } /** *A container specifying the time by which replication should be complete for * all objects and operations on objects.
*/ inline ReplicationTime& WithTime(const ReplicationTimeValue& value) { SetTime(value); return *this;} /** *A container specifying the time by which replication should be complete for * all objects and operations on objects.
*/ inline ReplicationTime& WithTime(ReplicationTimeValue&& value) { SetTime(std::move(value)); return *this;} private: ReplicationTimeStatus m_status; bool m_statusHasBeenSet; ReplicationTimeValue m_time; bool m_timeHasBeenSet; }; } // namespace Model } // namespace S3 } // namespace Aws