AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Metrics.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.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:
38
40
41
45 inline const MetricsStatus& GetStatus() const{ return m_status; }
46
50 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
51
55 inline void SetStatus(const MetricsStatus& value) { m_statusHasBeenSet = true; m_status = value; }
56
60 inline void SetStatus(MetricsStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
61
65 inline Metrics& WithStatus(const MetricsStatus& value) { SetStatus(value); return *this;}
66
70 inline Metrics& WithStatus(MetricsStatus&& value) { SetStatus(std::move(value)); return *this;}
71
72
77 inline const ReplicationTimeValue& GetEventThreshold() const{ return m_eventThreshold; }
78
83 inline bool EventThresholdHasBeenSet() const { return m_eventThresholdHasBeenSet; }
84
89 inline void SetEventThreshold(const ReplicationTimeValue& value) { m_eventThresholdHasBeenSet = true; m_eventThreshold = value; }
90
95 inline void SetEventThreshold(ReplicationTimeValue&& value) { m_eventThresholdHasBeenSet = true; m_eventThreshold = std::move(value); }
96
101 inline Metrics& WithEventThreshold(const ReplicationTimeValue& value) { SetEventThreshold(value); return *this;}
102
107 inline Metrics& WithEventThreshold(ReplicationTimeValue&& value) { SetEventThreshold(std::move(value)); return *this;}
108
109 private:
110
111 MetricsStatus m_status;
112 bool m_statusHasBeenSet = false;
113
114 ReplicationTimeValue m_eventThreshold;
115 bool m_eventThresholdHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace S3
120} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
Metrics & WithEventThreshold(ReplicationTimeValue &&value)
Definition: Metrics.h:107
Metrics & WithStatus(const MetricsStatus &value)
Definition: Metrics.h:65
void SetEventThreshold(const ReplicationTimeValue &value)
Definition: Metrics.h:89
bool StatusHasBeenSet() const
Definition: Metrics.h:50
Metrics & WithEventThreshold(const ReplicationTimeValue &value)
Definition: Metrics.h:101
void SetEventThreshold(ReplicationTimeValue &&value)
Definition: Metrics.h:95
void SetStatus(MetricsStatus &&value)
Definition: Metrics.h:60
void SetStatus(const MetricsStatus &value)
Definition: Metrics.h:55
AWS_S3_API Metrics & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool EventThresholdHasBeenSet() const
Definition: Metrics.h:83
AWS_S3_API Metrics(const Aws::Utils::Xml::XmlNode &xmlNode)
const MetricsStatus & GetStatus() const
Definition: Metrics.h:45
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const ReplicationTimeValue & GetEventThreshold() const
Definition: Metrics.h:77
Metrics & WithStatus(MetricsStatus &&value)
Definition: Metrics.h:70