AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Metrics.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/model/MetricsStatus.h>
9#include <aws/s3control/model/ReplicationTimeValue.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3Control
22{
23namespace Model
24{
25
32 class Metrics
33 {
34 public:
35 AWS_S3CONTROL_API Metrics() = default;
36 AWS_S3CONTROL_API Metrics(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_S3CONTROL_API Metrics& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
46 inline MetricsStatus GetStatus() const { return m_status; }
47 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
48 inline void SetStatus(MetricsStatus value) { m_statusHasBeenSet = true; m_status = value; }
49 inline Metrics& WithStatus(MetricsStatus value) { SetStatus(value); return *this;}
51
53
58 inline const ReplicationTimeValue& GetEventThreshold() const { return m_eventThreshold; }
59 inline bool EventThresholdHasBeenSet() const { return m_eventThresholdHasBeenSet; }
60 template<typename EventThresholdT = ReplicationTimeValue>
61 void SetEventThreshold(EventThresholdT&& value) { m_eventThresholdHasBeenSet = true; m_eventThreshold = std::forward<EventThresholdT>(value); }
62 template<typename EventThresholdT = ReplicationTimeValue>
63 Metrics& WithEventThreshold(EventThresholdT&& value) { SetEventThreshold(std::forward<EventThresholdT>(value)); return *this;}
65 private:
66
68 bool m_statusHasBeenSet = false;
69
70 ReplicationTimeValue m_eventThreshold;
71 bool m_eventThresholdHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace S3Control
76} // namespace Aws
Metrics & WithEventThreshold(EventThresholdT &&value)
Definition Metrics.h:63
AWS_S3CONTROL_API Metrics(const Aws::Utils::Xml::XmlNode &xmlNode)
MetricsStatus GetStatus() const
Definition Metrics.h:46
AWS_S3CONTROL_API Metrics & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStatus(MetricsStatus value)
Definition Metrics.h:48
AWS_S3CONTROL_API Metrics()=default
void SetEventThreshold(EventThresholdT &&value)
Definition Metrics.h:61
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Metrics & WithStatus(MetricsStatus value)
Definition Metrics.h:49
const ReplicationTimeValue & GetEventThreshold() const
Definition Metrics.h:58
bool StatusHasBeenSet() const
Definition Metrics.h:47
bool EventThresholdHasBeenSet() const
Definition Metrics.h:59