/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace S3 { namespace Model { /** *

A container specifying replication metrics-related settings enabling * replication metrics and events.

See Also:

AWS API * Reference

*/ class AWS_S3_API Metrics { public: Metrics(); Metrics(const Aws::Utils::Xml::XmlNode& xmlNode); Metrics& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

Specifies whether the replication metrics are enabled.

*/ inline const MetricsStatus& GetStatus() const{ return m_status; } /** *

Specifies whether the replication metrics are enabled.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Specifies whether the replication metrics are enabled.

*/ inline void SetStatus(const MetricsStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Specifies whether the replication metrics are enabled.

*/ inline void SetStatus(MetricsStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

Specifies whether the replication metrics are enabled.

*/ inline Metrics& WithStatus(const MetricsStatus& value) { SetStatus(value); return *this;} /** *

Specifies whether the replication metrics are enabled.

*/ inline Metrics& WithStatus(MetricsStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

A container specifying the time threshold for emitting the * s3:Replication:OperationMissedThreshold event.

*/ inline const ReplicationTimeValue& GetEventThreshold() const{ return m_eventThreshold; } /** *

A container specifying the time threshold for emitting the * s3:Replication:OperationMissedThreshold event.

*/ inline bool EventThresholdHasBeenSet() const { return m_eventThresholdHasBeenSet; } /** *

A container specifying the time threshold for emitting the * s3:Replication:OperationMissedThreshold event.

*/ inline void SetEventThreshold(const ReplicationTimeValue& value) { m_eventThresholdHasBeenSet = true; m_eventThreshold = value; } /** *

A container specifying the time threshold for emitting the * s3:Replication:OperationMissedThreshold event.

*/ inline void SetEventThreshold(ReplicationTimeValue&& value) { m_eventThresholdHasBeenSet = true; m_eventThreshold = std::move(value); } /** *

A container specifying the time threshold for emitting the * s3:Replication:OperationMissedThreshold event.

*/ inline Metrics& WithEventThreshold(const ReplicationTimeValue& value) { SetEventThreshold(value); return *this;} /** *

A container specifying the time threshold for emitting the * s3:Replication:OperationMissedThreshold event.

*/ inline Metrics& WithEventThreshold(ReplicationTimeValue&& value) { SetEventThreshold(std::move(value)); return *this;} private: MetricsStatus m_status; bool m_statusHasBeenSet; ReplicationTimeValue m_eventThreshold; bool m_eventThresholdHasBeenSet; }; } // namespace Model } // namespace S3 } // namespace Aws