AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Metrics.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/model/MetricsStatus.h>
9#include <aws/s3-crt/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 S3Crt
22{
23namespace Model
24{
25
32 class Metrics
33 {
34 public:
35 AWS_S3CRT_API Metrics();
36 AWS_S3CRT_API Metrics(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_S3CRT_API Metrics& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
46 inline const MetricsStatus& GetStatus() const{ return m_status; }
47 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
48 inline void SetStatus(const MetricsStatus& value) { m_statusHasBeenSet = true; m_status = value; }
49 inline void SetStatus(MetricsStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
50 inline Metrics& WithStatus(const MetricsStatus& value) { SetStatus(value); return *this;}
51 inline Metrics& WithStatus(MetricsStatus&& value) { SetStatus(std::move(value)); return *this;}
53
55
59 inline const ReplicationTimeValue& GetEventThreshold() const{ return m_eventThreshold; }
60 inline bool EventThresholdHasBeenSet() const { return m_eventThresholdHasBeenSet; }
61 inline void SetEventThreshold(const ReplicationTimeValue& value) { m_eventThresholdHasBeenSet = true; m_eventThreshold = value; }
62 inline void SetEventThreshold(ReplicationTimeValue&& value) { m_eventThresholdHasBeenSet = true; m_eventThreshold = std::move(value); }
63 inline Metrics& WithEventThreshold(const ReplicationTimeValue& value) { SetEventThreshold(value); return *this;}
64 inline Metrics& WithEventThreshold(ReplicationTimeValue&& value) { SetEventThreshold(std::move(value)); return *this;}
66 private:
67
68 MetricsStatus m_status;
69 bool m_statusHasBeenSet = false;
70
71 ReplicationTimeValue m_eventThreshold;
72 bool m_eventThresholdHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace S3Crt
77} // namespace Aws
const ReplicationTimeValue & GetEventThreshold() const
Definition Metrics.h:59
bool EventThresholdHasBeenSet() const
Definition Metrics.h:60
void SetStatus(MetricsStatus &&value)
Definition Metrics.h:49
Metrics & WithStatus(const MetricsStatus &value)
Definition Metrics.h:50
AWS_S3CRT_API Metrics & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool StatusHasBeenSet() const
Definition Metrics.h:47
void SetEventThreshold(const ReplicationTimeValue &value)
Definition Metrics.h:61
void SetEventThreshold(ReplicationTimeValue &&value)
Definition Metrics.h:62
const MetricsStatus & GetStatus() const
Definition Metrics.h:46
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Metrics & WithEventThreshold(const ReplicationTimeValue &value)
Definition Metrics.h:63
void SetStatus(const MetricsStatus &value)
Definition Metrics.h:48
Metrics & WithEventThreshold(ReplicationTimeValue &&value)
Definition Metrics.h:64
AWS_S3CRT_API Metrics(const Aws::Utils::Xml::XmlNode &xmlNode)
Metrics & WithStatus(MetricsStatus &&value)
Definition Metrics.h:51