/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A container that specifies replication metrics-related
* settings.See Also:
AWS
* API Reference
Specifies whether replication metrics are enabled.
*/ inline const MetricsStatus& GetStatus() const{ return m_status; } /** *Specifies whether replication metrics are enabled.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *Specifies whether replication metrics are enabled.
*/ inline void SetStatus(const MetricsStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *Specifies whether replication metrics are enabled.
*/ inline void SetStatus(MetricsStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *Specifies whether replication metrics are enabled.
*/ inline Metrics& WithStatus(const MetricsStatus& value) { SetStatus(value); return *this;} /** *Specifies whether replication metrics are enabled.
*/ inline Metrics& WithStatus(MetricsStatus&& value) { SetStatus(std::move(value)); return *this;} /** *A container that specifies the time threshold for emitting the
* s3:Replication:OperationMissedThreshold
event.
This * is not supported by Amazon S3 on Outposts buckets.
*/ inline const ReplicationTimeValue& GetEventThreshold() const{ return m_eventThreshold; } /** *A container that specifies the time threshold for emitting the
* s3:Replication:OperationMissedThreshold
event.
This * is not supported by Amazon S3 on Outposts buckets.
*/ inline bool EventThresholdHasBeenSet() const { return m_eventThresholdHasBeenSet; } /** *A container that specifies the time threshold for emitting the
* s3:Replication:OperationMissedThreshold
event.
This * is not supported by Amazon S3 on Outposts buckets.
*/ inline void SetEventThreshold(const ReplicationTimeValue& value) { m_eventThresholdHasBeenSet = true; m_eventThreshold = value; } /** *A container that specifies the time threshold for emitting the
* s3:Replication:OperationMissedThreshold
event.
This * is not supported by Amazon S3 on Outposts buckets.
*/ inline void SetEventThreshold(ReplicationTimeValue&& value) { m_eventThresholdHasBeenSet = true; m_eventThreshold = std::move(value); } /** *A container that specifies the time threshold for emitting the
* s3:Replication:OperationMissedThreshold
event.
This * is not supported by Amazon S3 on Outposts buckets.
*/ inline Metrics& WithEventThreshold(const ReplicationTimeValue& value) { SetEventThreshold(value); return *this;} /** *A container that specifies the time threshold for emitting the
* s3:Replication:OperationMissedThreshold
event.
This * is not supported by Amazon S3 on Outposts buckets.
*/ inline Metrics& WithEventThreshold(ReplicationTimeValue&& value) { SetEventThreshold(std::move(value)); return *this;} private: MetricsStatus m_status; bool m_statusHasBeenSet = false; ReplicationTimeValue m_eventThreshold; bool m_eventThresholdHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws