AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
36
37
39
42 inline const Aws::String& GetLabel() const { return m_label; }
43 template<typename LabelT = Aws::String>
44 void SetLabel(LabelT&& value) { m_labelHasBeenSet = true; m_label = std::forward<LabelT>(value); }
45 template<typename LabelT = Aws::String>
46 GetMetricStatisticsResult& WithLabel(LabelT&& value) { SetLabel(std::forward<LabelT>(value)); return *this;}
48
50
53 inline const Aws::Vector<Datapoint>& GetDatapoints() const { return m_datapoints; }
54 template<typename DatapointsT = Aws::Vector<Datapoint>>
55 void SetDatapoints(DatapointsT&& value) { m_datapointsHasBeenSet = true; m_datapoints = std::forward<DatapointsT>(value); }
56 template<typename DatapointsT = Aws::Vector<Datapoint>>
57 GetMetricStatisticsResult& WithDatapoints(DatapointsT&& value) { SetDatapoints(std::forward<DatapointsT>(value)); return *this;}
58 template<typename DatapointsT = Datapoint>
59 GetMetricStatisticsResult& AddDatapoints(DatapointsT&& value) { m_datapointsHasBeenSet = true; m_datapoints.emplace_back(std::forward<DatapointsT>(value)); return *this; }
61
63
64 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
65 template<typename ResponseMetadataT = ResponseMetadata>
66 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
67 template<typename ResponseMetadataT = ResponseMetadata>
68 GetMetricStatisticsResult& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
70 private:
71
72 Aws::String m_label;
73 bool m_labelHasBeenSet = false;
74
75 Aws::Vector<Datapoint> m_datapoints;
76 bool m_datapointsHasBeenSet = false;
77
78 ResponseMetadata m_responseMetadata;
79 bool m_responseMetadataHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace CloudWatch
84} // namespace Aws
GetMetricStatisticsResult & AddDatapoints(DatapointsT &&value)
AWS_CLOUDWATCH_API GetMetricStatisticsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_CLOUDWATCH_API GetMetricStatisticsResult()=default
const Aws::Vector< Datapoint > & GetDatapoints() const
GetMetricStatisticsResult & WithDatapoints(DatapointsT &&value)
GetMetricStatisticsResult & WithLabel(LabelT &&value)
GetMetricStatisticsResult & WithResponseMetadata(ResponseMetadataT &&value)
AWS_CLOUDWATCH_API GetMetricStatisticsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument