AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetDistributionMetricDataResult.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/model/DistributionMetricName.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/lightsail/model/MetricDatapoint.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Lightsail
27{
28namespace Model
29{
31 {
32 public:
36
37
39
42 inline const DistributionMetricName& GetMetricName() const{ return m_metricName; }
43 inline void SetMetricName(const DistributionMetricName& value) { m_metricName = value; }
44 inline void SetMetricName(DistributionMetricName&& value) { m_metricName = std::move(value); }
46 inline GetDistributionMetricDataResult& WithMetricName(DistributionMetricName&& value) { SetMetricName(std::move(value)); return *this;}
48
50
53 inline const Aws::Vector<MetricDatapoint>& GetMetricData() const{ return m_metricData; }
54 inline void SetMetricData(const Aws::Vector<MetricDatapoint>& value) { m_metricData = value; }
55 inline void SetMetricData(Aws::Vector<MetricDatapoint>&& value) { m_metricData = std::move(value); }
58 inline GetDistributionMetricDataResult& AddMetricData(const MetricDatapoint& value) { m_metricData.push_back(value); return *this; }
59 inline GetDistributionMetricDataResult& AddMetricData(MetricDatapoint&& value) { m_metricData.push_back(std::move(value)); return *this; }
61
63
64 inline const Aws::String& GetRequestId() const{ return m_requestId; }
65 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
66 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
67 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
68 inline GetDistributionMetricDataResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
69 inline GetDistributionMetricDataResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
70 inline GetDistributionMetricDataResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
72 private:
73
74 DistributionMetricName m_metricName;
75
77
78 Aws::String m_requestId;
79 };
80
81} // namespace Model
82} // namespace Lightsail
83} // namespace Aws
AWS_LIGHTSAIL_API GetDistributionMetricDataResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< MetricDatapoint > & GetMetricData() const
GetDistributionMetricDataResult & WithMetricData(const Aws::Vector< MetricDatapoint > &value)
GetDistributionMetricDataResult & WithMetricName(const DistributionMetricName &value)
AWS_LIGHTSAIL_API GetDistributionMetricDataResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDistributionMetricDataResult & AddMetricData(const MetricDatapoint &value)
GetDistributionMetricDataResult & WithRequestId(const Aws::String &value)
GetDistributionMetricDataResult & WithRequestId(Aws::String &&value)
GetDistributionMetricDataResult & WithRequestId(const char *value)
GetDistributionMetricDataResult & AddMetricData(MetricDatapoint &&value)
GetDistributionMetricDataResult & WithMetricData(Aws::Vector< MetricDatapoint > &&value)
GetDistributionMetricDataResult & WithMetricName(DistributionMetricName &&value)
void SetMetricData(const Aws::Vector< MetricDatapoint > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue