AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace S3Control {
20namespace Model {
21
28class Metrics {
29 public:
30 AWS_S3CONTROL_API Metrics() = default;
31 AWS_S3CONTROL_API Metrics(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_S3CONTROL_API Metrics& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_S3CONTROL_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
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) {
62 m_eventThresholdHasBeenSet = true;
63 m_eventThreshold = std::forward<EventThresholdT>(value);
64 }
65 template <typename EventThresholdT = ReplicationTimeValue>
66 Metrics& WithEventThreshold(EventThresholdT&& value) {
67 SetEventThreshold(std::forward<EventThresholdT>(value));
68 return *this;
69 }
71 private:
73
74 ReplicationTimeValue m_eventThreshold;
75 bool m_statusHasBeenSet = false;
76 bool m_eventThresholdHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace S3Control
81} // namespace Aws
Metrics & WithEventThreshold(EventThresholdT &&value)
Definition Metrics.h:66
AWS_S3CONTROL_API Metrics(const Aws::Utils::Xml::XmlNode &xmlNode)
MetricsStatus GetStatus() const
Definition Metrics.h:40
AWS_S3CONTROL_API Metrics & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStatus(MetricsStatus value)
Definition Metrics.h:42
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:46
const ReplicationTimeValue & GetEventThreshold() const
Definition Metrics.h:58
bool StatusHasBeenSet() const
Definition Metrics.h:41
bool EventThresholdHasBeenSet() const
Definition Metrics.h:59