AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Metrics.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/model/MetricsStatus.h>
9#include <aws/s3/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 S3
22{
23namespace Model
24{
25
32 class Metrics
33 {
34 public:
35 AWS_S3_API Metrics() = default;
36 AWS_S3_API Metrics(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_S3_API Metrics& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_S3_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
57 inline const ReplicationTimeValue& GetEventThreshold() const { return m_eventThreshold; }
58 inline bool EventThresholdHasBeenSet() const { return m_eventThresholdHasBeenSet; }
59 template<typename EventThresholdT = ReplicationTimeValue>
60 void SetEventThreshold(EventThresholdT&& value) { m_eventThresholdHasBeenSet = true; m_eventThreshold = std::forward<EventThresholdT>(value); }
61 template<typename EventThresholdT = ReplicationTimeValue>
62 Metrics& WithEventThreshold(EventThresholdT&& value) { SetEventThreshold(std::forward<EventThresholdT>(value)); return *this;}
64 private:
65
67 bool m_statusHasBeenSet = false;
68
69 ReplicationTimeValue m_eventThreshold;
70 bool m_eventThresholdHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace S3
75} // namespace Aws
void SetEventThreshold(EventThresholdT &&value)
Definition Metrics.h:60
void SetStatus(MetricsStatus value)
Definition Metrics.h:48
Metrics & WithEventThreshold(EventThresholdT &&value)
Definition Metrics.h:62
bool StatusHasBeenSet() const
Definition Metrics.h:47
AWS_S3_API Metrics & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool EventThresholdHasBeenSet() const
Definition Metrics.h:58
AWS_S3_API Metrics(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API Metrics()=default
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const ReplicationTimeValue & GetEventThreshold() const
Definition Metrics.h:57
Metrics & WithStatus(MetricsStatus value)
Definition Metrics.h:49
MetricsStatus GetStatus() const
Definition Metrics.h:46