AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetInstanceMetricDataResult.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/model/InstanceMetricName.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:
33 AWS_LIGHTSAIL_API GetInstanceMetricDataResult();
36
37
39
42 inline const InstanceMetricName& GetMetricName() const{ return m_metricName; }
43 inline void SetMetricName(const InstanceMetricName& value) { m_metricName = value; }
44 inline void SetMetricName(InstanceMetricName&& value) { m_metricName = std::move(value); }
45 inline GetInstanceMetricDataResult& WithMetricName(const InstanceMetricName& value) { SetMetricName(value); return *this;}
46 inline GetInstanceMetricDataResult& WithMetricName(InstanceMetricName&& 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); }
57 inline GetInstanceMetricDataResult& WithMetricData(Aws::Vector<MetricDatapoint>&& value) { SetMetricData(std::move(value)); return *this;}
58 inline GetInstanceMetricDataResult& AddMetricData(const MetricDatapoint& value) { m_metricData.push_back(value); return *this; }
59 inline GetInstanceMetricDataResult& 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 GetInstanceMetricDataResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
69 inline GetInstanceMetricDataResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
70 inline GetInstanceMetricDataResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
72 private:
73
74 InstanceMetricName m_metricName;
75
77
78 Aws::String m_requestId;
79 };
80
81} // namespace Model
82} // namespace Lightsail
83} // namespace Aws
AWS_LIGHTSAIL_API GetInstanceMetricDataResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetInstanceMetricDataResult & WithRequestId(Aws::String &&value)
void SetMetricData(const Aws::Vector< MetricDatapoint > &value)
GetInstanceMetricDataResult & AddMetricData(const MetricDatapoint &value)
const Aws::Vector< MetricDatapoint > & GetMetricData() const
GetInstanceMetricDataResult & WithRequestId(const char *value)
AWS_LIGHTSAIL_API GetInstanceMetricDataResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetInstanceMetricDataResult & WithMetricName(InstanceMetricName &&value)
GetInstanceMetricDataResult & WithMetricName(const InstanceMetricName &value)
void SetMetricData(Aws::Vector< MetricDatapoint > &&value)
GetInstanceMetricDataResult & AddMetricData(MetricDatapoint &&value)
GetInstanceMetricDataResult & WithMetricData(Aws::Vector< MetricDatapoint > &&value)
GetInstanceMetricDataResult & WithRequestId(const Aws::String &value)
GetInstanceMetricDataResult & WithMetricData(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