AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetMetricStatisticsResult.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/monitoring/model/ResponseMetadata.h>
11#include <aws/monitoring/model/Datapoint.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace CloudWatch
27{
28namespace Model
29{
31 {
32 public:
33 AWS_CLOUDWATCH_API GetMetricStatisticsResult();
36
37
39
42 inline const Aws::String& GetLabel() const{ return m_label; }
43 inline void SetLabel(const Aws::String& value) { m_label = value; }
44 inline void SetLabel(Aws::String&& value) { m_label = std::move(value); }
45 inline void SetLabel(const char* value) { m_label.assign(value); }
46 inline GetMetricStatisticsResult& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
47 inline GetMetricStatisticsResult& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
48 inline GetMetricStatisticsResult& WithLabel(const char* value) { SetLabel(value); return *this;}
50
52
55 inline const Aws::Vector<Datapoint>& GetDatapoints() const{ return m_datapoints; }
56 inline void SetDatapoints(const Aws::Vector<Datapoint>& value) { m_datapoints = value; }
57 inline void SetDatapoints(Aws::Vector<Datapoint>&& value) { m_datapoints = std::move(value); }
59 inline GetMetricStatisticsResult& WithDatapoints(Aws::Vector<Datapoint>&& value) { SetDatapoints(std::move(value)); return *this;}
60 inline GetMetricStatisticsResult& AddDatapoints(const Datapoint& value) { m_datapoints.push_back(value); return *this; }
61 inline GetMetricStatisticsResult& AddDatapoints(Datapoint&& value) { m_datapoints.push_back(std::move(value)); return *this; }
63
65
66 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
67 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
68 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
70 inline GetMetricStatisticsResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
72 private:
73
74 Aws::String m_label;
75
76 Aws::Vector<Datapoint> m_datapoints;
77
78 ResponseMetadata m_responseMetadata;
79 };
80
81} // namespace Model
82} // namespace CloudWatch
83} // namespace Aws
GetMetricStatisticsResult & AddDatapoints(Datapoint &&value)
void SetDatapoints(Aws::Vector< Datapoint > &&value)
AWS_CLOUDWATCH_API GetMetricStatisticsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetMetricStatisticsResult & WithLabel(Aws::String &&value)
GetMetricStatisticsResult & WithDatapoints(const Aws::Vector< Datapoint > &value)
GetMetricStatisticsResult & WithResponseMetadata(ResponseMetadata &&value)
const Aws::Vector< Datapoint > & GetDatapoints() const
GetMetricStatisticsResult & WithLabel(const Aws::String &value)
GetMetricStatisticsResult & WithResponseMetadata(const ResponseMetadata &value)
void SetDatapoints(const Aws::Vector< Datapoint > &value)
GetMetricStatisticsResult & AddDatapoints(const Datapoint &value)
GetMetricStatisticsResult & WithDatapoints(Aws::Vector< Datapoint > &&value)
AWS_CLOUDWATCH_API GetMetricStatisticsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetMetricStatisticsResult & WithLabel(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument