AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MetricPoint.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_EC2_API MetricPoint() = default;
39 AWS_EC2_API MetricPoint(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_EC2_API MetricPoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
52 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
53 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
54 template<typename StartDateT = Aws::Utils::DateTime>
55 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet = true; m_startDate = std::forward<StartDateT>(value); }
56 template<typename StartDateT = Aws::Utils::DateTime>
57 MetricPoint& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
59
61
66 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
67 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
68 template<typename EndDateT = Aws::Utils::DateTime>
69 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet = true; m_endDate = std::forward<EndDateT>(value); }
70 template<typename EndDateT = Aws::Utils::DateTime>
71 MetricPoint& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
73
75
76 inline double GetValue() const { return m_value; }
77 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
78 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
79 inline MetricPoint& WithValue(double value) { SetValue(value); return *this;}
81
83
86 inline const Aws::String& GetStatus() const { return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 template<typename StatusT = Aws::String>
89 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
90 template<typename StatusT = Aws::String>
91 MetricPoint& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
93 private:
94
95 Aws::Utils::DateTime m_startDate{};
96 bool m_startDateHasBeenSet = false;
97
98 Aws::Utils::DateTime m_endDate{};
99 bool m_endDateHasBeenSet = false;
100
101 double m_value{0.0};
102 bool m_valueHasBeenSet = false;
103
104 Aws::String m_status;
105 bool m_statusHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace EC2
110} // namespace Aws
void SetStatus(StatusT &&value)
Definition MetricPoint.h:89
MetricPoint & WithStatus(StatusT &&value)
Definition MetricPoint.h:91
void SetValue(double value)
Definition MetricPoint.h:78
MetricPoint & WithEndDate(EndDateT &&value)
Definition MetricPoint.h:71
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Utils::DateTime & GetStartDate() const
Definition MetricPoint.h:52
void SetStartDate(StartDateT &&value)
Definition MetricPoint.h:55
MetricPoint & WithStartDate(StartDateT &&value)
Definition MetricPoint.h:57
MetricPoint & WithValue(double value)
Definition MetricPoint.h:79
AWS_EC2_API MetricPoint()=default
void SetEndDate(EndDateT &&value)
Definition MetricPoint.h:69
const Aws::String & GetStatus() const
Definition MetricPoint.h:86
AWS_EC2_API MetricPoint(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API MetricPoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetEndDate() const
Definition MetricPoint.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream