AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetResourceMetricsResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/pi/PI_EXPORTS.h>
11#include <aws/pi/model/MetricKeyDataPoints.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace PI {
25namespace Model {
27 public:
28 AWS_PI_API GetResourceMetricsResult() = default;
31
33
39 inline const Aws::Utils::DateTime& GetAlignedStartTime() const { return m_alignedStartTime; }
40 template <typename AlignedStartTimeT = Aws::Utils::DateTime>
41 void SetAlignedStartTime(AlignedStartTimeT&& value) {
42 m_alignedStartTimeHasBeenSet = true;
43 m_alignedStartTime = std::forward<AlignedStartTimeT>(value);
44 }
45 template <typename AlignedStartTimeT = Aws::Utils::DateTime>
46 GetResourceMetricsResult& WithAlignedStartTime(AlignedStartTimeT&& value) {
47 SetAlignedStartTime(std::forward<AlignedStartTimeT>(value));
48 return *this;
49 }
51
53
59 inline const Aws::Utils::DateTime& GetAlignedEndTime() const { return m_alignedEndTime; }
60 template <typename AlignedEndTimeT = Aws::Utils::DateTime>
61 void SetAlignedEndTime(AlignedEndTimeT&& value) {
62 m_alignedEndTimeHasBeenSet = true;
63 m_alignedEndTime = std::forward<AlignedEndTimeT>(value);
64 }
65 template <typename AlignedEndTimeT = Aws::Utils::DateTime>
66 GetResourceMetricsResult& WithAlignedEndTime(AlignedEndTimeT&& value) {
67 SetAlignedEndTime(std::forward<AlignedEndTimeT>(value));
68 return *this;
69 }
71
73
80 inline const Aws::String& GetIdentifier() const { return m_identifier; }
81 template <typename IdentifierT = Aws::String>
82 void SetIdentifier(IdentifierT&& value) {
83 m_identifierHasBeenSet = true;
84 m_identifier = std::forward<IdentifierT>(value);
85 }
86 template <typename IdentifierT = Aws::String>
88 SetIdentifier(std::forward<IdentifierT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::Vector<MetricKeyDataPoints>& GetMetricList() const { return m_metricList; }
99 template <typename MetricListT = Aws::Vector<MetricKeyDataPoints>>
100 void SetMetricList(MetricListT&& value) {
101 m_metricListHasBeenSet = true;
102 m_metricList = std::forward<MetricListT>(value);
103 }
104 template <typename MetricListT = Aws::Vector<MetricKeyDataPoints>>
106 SetMetricList(std::forward<MetricListT>(value));
107 return *this;
108 }
109 template <typename MetricListT = MetricKeyDataPoints>
111 m_metricListHasBeenSet = true;
112 m_metricList.emplace_back(std::forward<MetricListT>(value));
113 return *this;
114 }
116
118
123 inline const Aws::String& GetNextToken() const { return m_nextToken; }
124 template <typename NextTokenT = Aws::String>
125 void SetNextToken(NextTokenT&& value) {
126 m_nextTokenHasBeenSet = true;
127 m_nextToken = std::forward<NextTokenT>(value);
128 }
129 template <typename NextTokenT = Aws::String>
131 SetNextToken(std::forward<NextTokenT>(value));
132 return *this;
133 }
135
137
138 inline const Aws::String& GetRequestId() const { return m_requestId; }
139 template <typename RequestIdT = Aws::String>
140 void SetRequestId(RequestIdT&& value) {
141 m_requestIdHasBeenSet = true;
142 m_requestId = std::forward<RequestIdT>(value);
143 }
144 template <typename RequestIdT = Aws::String>
146 SetRequestId(std::forward<RequestIdT>(value));
147 return *this;
148 }
150 private:
151 Aws::Utils::DateTime m_alignedStartTime{};
152
153 Aws::Utils::DateTime m_alignedEndTime{};
154
155 Aws::String m_identifier;
156
158
159 Aws::String m_nextToken;
160
161 Aws::String m_requestId;
162 bool m_alignedStartTimeHasBeenSet = false;
163 bool m_alignedEndTimeHasBeenSet = false;
164 bool m_identifierHasBeenSet = false;
165 bool m_metricListHasBeenSet = false;
166 bool m_nextTokenHasBeenSet = false;
167 bool m_requestIdHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace PI
172} // namespace Aws
GetResourceMetricsResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetAlignedStartTime() const
AWS_PI_API GetResourceMetricsResult()=default
const Aws::Vector< MetricKeyDataPoints > & GetMetricList() const
void SetAlignedStartTime(AlignedStartTimeT &&value)
AWS_PI_API GetResourceMetricsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetResourceMetricsResult & WithAlignedEndTime(AlignedEndTimeT &&value)
GetResourceMetricsResult & WithAlignedStartTime(AlignedStartTimeT &&value)
const Aws::Utils::DateTime & GetAlignedEndTime() const
GetResourceMetricsResult & WithNextToken(NextTokenT &&value)
AWS_PI_API GetResourceMetricsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetResourceMetricsResult & AddMetricList(MetricListT &&value)
GetResourceMetricsResult & WithIdentifier(IdentifierT &&value)
GetResourceMetricsResult & WithMetricList(MetricListT &&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