AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace S3 {
20namespace Model {
21
28class Metrics {
29 public:
30 AWS_S3_API Metrics() = default;
31 AWS_S3_API Metrics(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_S3_API Metrics& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
40 inline MetricsStatus GetStatus() const { return m_status; }
41 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
42 inline void SetStatus(MetricsStatus value) {
43 m_statusHasBeenSet = true;
44 m_status = value;
45 }
47 SetStatus(value);
48 return *this;
49 }
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) {
61 m_eventThresholdHasBeenSet = true;
62 m_eventThreshold = std::forward<EventThresholdT>(value);
63 }
64 template <typename EventThresholdT = ReplicationTimeValue>
65 Metrics& WithEventThreshold(EventThresholdT&& value) {
66 SetEventThreshold(std::forward<EventThresholdT>(value));
67 return *this;
68 }
70 private:
72
73 ReplicationTimeValue m_eventThreshold;
74 bool m_statusHasBeenSet = false;
75 bool m_eventThresholdHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace S3
80} // namespace Aws
void SetEventThreshold(EventThresholdT &&value)
Definition Metrics.h:60
void SetStatus(MetricsStatus value)
Definition Metrics.h:42
Metrics & WithEventThreshold(EventThresholdT &&value)
Definition Metrics.h:65
bool StatusHasBeenSet() const
Definition Metrics.h:41
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:46
MetricsStatus GetStatus() const
Definition Metrics.h:40