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/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();
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 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 S3
77} // namespace Aws
Metrics & WithEventThreshold(ReplicationTimeValue &&value)
Definition Metrics.h:64
Metrics & WithStatus(const MetricsStatus &value)
Definition Metrics.h:50
void SetEventThreshold(const ReplicationTimeValue &value)
Definition Metrics.h:61
bool StatusHasBeenSet() const
Definition Metrics.h:47
Metrics & WithEventThreshold(const ReplicationTimeValue &value)
Definition Metrics.h:63
void SetEventThreshold(ReplicationTimeValue &&value)
Definition Metrics.h:62
void SetStatus(MetricsStatus &&value)
Definition Metrics.h:49
void SetStatus(const MetricsStatus &value)
Definition Metrics.h:48
AWS_S3_API Metrics & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool EventThresholdHasBeenSet() const
Definition Metrics.h:60
AWS_S3_API Metrics(const Aws::Utils::Xml::XmlNode &xmlNode)
const MetricsStatus & GetStatus() const
Definition Metrics.h:46
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const ReplicationTimeValue & GetEventThreshold() const
Definition Metrics.h:59
Metrics & WithStatus(MetricsStatus &&value)
Definition Metrics.h:51