AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStartDate(const Aws::Utils::DateTime& value) { m_startDateHasBeenSet = true; m_startDate = value; }
55 inline void SetStartDate(Aws::Utils::DateTime&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
56 inline MetricPoint& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;}
57 inline MetricPoint& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(std::move(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 inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; }
69 inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
70 inline MetricPoint& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;}
71 inline MetricPoint& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(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 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
89 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
90 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
91 inline MetricPoint& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
92 inline MetricPoint& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
93 inline MetricPoint& WithStatus(const char* value) { SetStatus(value); return *this;}
95 private:
96
97 Aws::Utils::DateTime m_startDate;
98 bool m_startDateHasBeenSet = false;
99
100 Aws::Utils::DateTime m_endDate;
101 bool m_endDateHasBeenSet = false;
102
103 double m_value;
104 bool m_valueHasBeenSet = false;
105
106 Aws::String m_status;
107 bool m_statusHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace EC2
112} // namespace Aws
MetricPoint & WithStatus(const char *value)
Definition MetricPoint.h:93
void SetEndDate(Aws::Utils::DateTime &&value)
Definition MetricPoint.h:69
void SetStatus(Aws::String &&value)
Definition MetricPoint.h:89
void SetValue(double value)
Definition MetricPoint.h:78
MetricPoint & WithStatus(Aws::String &&value)
Definition MetricPoint.h:92
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
MetricPoint & WithStartDate(const Aws::Utils::DateTime &value)
Definition MetricPoint.h:56
void SetStatus(const char *value)
Definition MetricPoint.h:90
MetricPoint & WithStartDate(Aws::Utils::DateTime &&value)
Definition MetricPoint.h:57
void SetStartDate(const Aws::Utils::DateTime &value)
Definition MetricPoint.h:54
MetricPoint & WithValue(double value)
Definition MetricPoint.h:79
void SetEndDate(const Aws::Utils::DateTime &value)
Definition MetricPoint.h:68
const Aws::String & GetStatus() const
Definition MetricPoint.h:86
AWS_EC2_API MetricPoint(const Aws::Utils::Xml::XmlNode &xmlNode)
MetricPoint & WithEndDate(const Aws::Utils::DateTime &value)
Definition MetricPoint.h:70
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
MetricPoint & WithStatus(const Aws::String &value)
Definition MetricPoint.h:91
void SetStartDate(Aws::Utils::DateTime &&value)
Definition MetricPoint.h:55
AWS_EC2_API MetricPoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
MetricPoint & WithEndDate(Aws::Utils::DateTime &&value)
Definition MetricPoint.h:71
const Aws::Utils::DateTime & GetEndDate() const
Definition MetricPoint.h:66
void SetStatus(const Aws::String &value)
Definition MetricPoint.h:88
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream