AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricDataResult.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/monitoring/model/StatusCode.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/monitoring/model/MessageData.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace CloudWatch
26{
27namespace Model
28{
29
39 {
40 public:
41 AWS_CLOUDWATCH_API MetricDataResult();
42 AWS_CLOUDWATCH_API MetricDataResult(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_CLOUDWATCH_API MetricDataResult& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
53 inline const Aws::String& GetId() const{ return m_id; }
54 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
56 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
57 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
58 inline MetricDataResult& WithId(const Aws::String& value) { SetId(value); return *this;}
59 inline MetricDataResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
60 inline MetricDataResult& WithId(const char* value) { SetId(value); return *this;}
62
64
67 inline const Aws::String& GetLabel() const{ return m_label; }
68 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
69 inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
70 inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
71 inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
72 inline MetricDataResult& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
73 inline MetricDataResult& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
74 inline MetricDataResult& WithLabel(const char* value) { SetLabel(value); return *this;}
76
78
83 inline const Aws::Vector<Aws::Utils::DateTime>& GetTimestamps() const{ return m_timestamps; }
84 inline bool TimestampsHasBeenSet() const { return m_timestampsHasBeenSet; }
85 inline void SetTimestamps(const Aws::Vector<Aws::Utils::DateTime>& value) { m_timestampsHasBeenSet = true; m_timestamps = value; }
86 inline void SetTimestamps(Aws::Vector<Aws::Utils::DateTime>&& value) { m_timestampsHasBeenSet = true; m_timestamps = std::move(value); }
88 inline MetricDataResult& WithTimestamps(Aws::Vector<Aws::Utils::DateTime>&& value) { SetTimestamps(std::move(value)); return *this;}
89 inline MetricDataResult& AddTimestamps(const Aws::Utils::DateTime& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(value); return *this; }
90 inline MetricDataResult& AddTimestamps(Aws::Utils::DateTime&& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(std::move(value)); return *this; }
92
94
99 inline const Aws::Vector<double>& GetValues() const{ return m_values; }
100 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
101 inline void SetValues(const Aws::Vector<double>& value) { m_valuesHasBeenSet = true; m_values = value; }
102 inline void SetValues(Aws::Vector<double>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
103 inline MetricDataResult& WithValues(const Aws::Vector<double>& value) { SetValues(value); return *this;}
104 inline MetricDataResult& WithValues(Aws::Vector<double>&& value) { SetValues(std::move(value)); return *this;}
105 inline MetricDataResult& AddValues(double value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
107
109
118 inline const StatusCode& GetStatusCode() const{ return m_statusCode; }
119 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
120 inline void SetStatusCode(const StatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
121 inline void SetStatusCode(StatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
122 inline MetricDataResult& WithStatusCode(const StatusCode& value) { SetStatusCode(value); return *this;}
123 inline MetricDataResult& WithStatusCode(StatusCode&& value) { SetStatusCode(std::move(value)); return *this;}
125
127
130 inline const Aws::Vector<MessageData>& GetMessages() const{ return m_messages; }
131 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
132 inline void SetMessages(const Aws::Vector<MessageData>& value) { m_messagesHasBeenSet = true; m_messages = value; }
133 inline void SetMessages(Aws::Vector<MessageData>&& value) { m_messagesHasBeenSet = true; m_messages = std::move(value); }
134 inline MetricDataResult& WithMessages(const Aws::Vector<MessageData>& value) { SetMessages(value); return *this;}
135 inline MetricDataResult& WithMessages(Aws::Vector<MessageData>&& value) { SetMessages(std::move(value)); return *this;}
136 inline MetricDataResult& AddMessages(const MessageData& value) { m_messagesHasBeenSet = true; m_messages.push_back(value); return *this; }
137 inline MetricDataResult& AddMessages(MessageData&& value) { m_messagesHasBeenSet = true; m_messages.push_back(std::move(value)); return *this; }
139 private:
140
141 Aws::String m_id;
142 bool m_idHasBeenSet = false;
143
144 Aws::String m_label;
145 bool m_labelHasBeenSet = false;
146
148 bool m_timestampsHasBeenSet = false;
149
150 Aws::Vector<double> m_values;
151 bool m_valuesHasBeenSet = false;
152
153 StatusCode m_statusCode;
154 bool m_statusCodeHasBeenSet = false;
155
156 Aws::Vector<MessageData> m_messages;
157 bool m_messagesHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace CloudWatch
162} // namespace Aws
MetricDataResult & AddValues(double value)
MetricDataResult & WithValues(const Aws::Vector< double > &value)
void SetMessages(const Aws::Vector< MessageData > &value)
void SetValues(const Aws::Vector< double > &value)
const Aws::Vector< double > & GetValues() const
MetricDataResult & WithId(const char *value)
void SetTimestamps(const Aws::Vector< Aws::Utils::DateTime > &value)
MetricDataResult & WithId(const Aws::String &value)
MetricDataResult & WithValues(Aws::Vector< double > &&value)
MetricDataResult & WithLabel(Aws::String &&value)
MetricDataResult & WithMessages(const Aws::Vector< MessageData > &value)
void SetLabel(const Aws::String &value)
void SetStatusCode(const StatusCode &value)
MetricDataResult & WithTimestamps(Aws::Vector< Aws::Utils::DateTime > &&value)
void SetId(const Aws::String &value)
void SetMessages(Aws::Vector< MessageData > &&value)
const Aws::Vector< MessageData > & GetMessages() const
MetricDataResult & AddTimestamps(const Aws::Utils::DateTime &value)
MetricDataResult & WithLabel(const Aws::String &value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
MetricDataResult & WithId(Aws::String &&value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetValues(Aws::Vector< double > &&value)
MetricDataResult & WithMessages(Aws::Vector< MessageData > &&value)
void SetTimestamps(Aws::Vector< Aws::Utils::DateTime > &&value)
MetricDataResult & AddMessages(const MessageData &value)
AWS_CLOUDWATCH_API MetricDataResult & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
MetricDataResult & WithLabel(const char *value)
MetricDataResult & AddMessages(MessageData &&value)
MetricDataResult & AddTimestamps(Aws::Utils::DateTime &&value)
AWS_CLOUDWATCH_API MetricDataResult(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::Utils::DateTime > & GetTimestamps() const
MetricDataResult & WithStatusCode(StatusCode &&value)
MetricDataResult & WithTimestamps(const Aws::Vector< Aws::Utils::DateTime > &value)
MetricDataResult & WithStatusCode(const StatusCode &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream