AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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