AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetCurrentMetricDataResult.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/CurrentMetricResult.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Connect {
26namespace Model {
28 public:
29 AWS_CONNECT_API GetCurrentMetricDataResult() = default;
32
34
40 inline const Aws::String& GetNextToken() const { return m_nextToken; }
41 template <typename NextTokenT = Aws::String>
42 void SetNextToken(NextTokenT&& value) {
43 m_nextTokenHasBeenSet = true;
44 m_nextToken = std::forward<NextTokenT>(value);
45 }
46 template <typename NextTokenT = Aws::String>
48 SetNextToken(std::forward<NextTokenT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<CurrentMetricResult>& GetMetricResults() const { return m_metricResults; }
58 template <typename MetricResultsT = Aws::Vector<CurrentMetricResult>>
59 void SetMetricResults(MetricResultsT&& value) {
60 m_metricResultsHasBeenSet = true;
61 m_metricResults = std::forward<MetricResultsT>(value);
62 }
63 template <typename MetricResultsT = Aws::Vector<CurrentMetricResult>>
65 SetMetricResults(std::forward<MetricResultsT>(value));
66 return *this;
67 }
68 template <typename MetricResultsT = CurrentMetricResult>
70 m_metricResultsHasBeenSet = true;
71 m_metricResults.emplace_back(std::forward<MetricResultsT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Utils::DateTime& GetDataSnapshotTime() const { return m_dataSnapshotTime; }
81 template <typename DataSnapshotTimeT = Aws::Utils::DateTime>
82 void SetDataSnapshotTime(DataSnapshotTimeT&& value) {
83 m_dataSnapshotTimeHasBeenSet = true;
84 m_dataSnapshotTime = std::forward<DataSnapshotTimeT>(value);
85 }
86 template <typename DataSnapshotTimeT = Aws::Utils::DateTime>
88 SetDataSnapshotTime(std::forward<DataSnapshotTimeT>(value));
89 return *this;
90 }
92
94
97 inline long long GetApproximateTotalCount() const { return m_approximateTotalCount; }
98 inline void SetApproximateTotalCount(long long value) {
99 m_approximateTotalCountHasBeenSet = true;
100 m_approximateTotalCount = value;
101 }
104 return *this;
105 }
107
109
110 inline const Aws::String& GetRequestId() const { return m_requestId; }
111 template <typename RequestIdT = Aws::String>
112 void SetRequestId(RequestIdT&& value) {
113 m_requestIdHasBeenSet = true;
114 m_requestId = std::forward<RequestIdT>(value);
115 }
116 template <typename RequestIdT = Aws::String>
118 SetRequestId(std::forward<RequestIdT>(value));
119 return *this;
120 }
122 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
123
124 private:
125 Aws::String m_nextToken;
126
127 Aws::Vector<CurrentMetricResult> m_metricResults;
128
129 Aws::Utils::DateTime m_dataSnapshotTime{};
130
131 long long m_approximateTotalCount{0};
132
133 Aws::String m_requestId;
134 Aws::Http::HttpResponseCode m_HttpResponseCode;
135 bool m_nextTokenHasBeenSet = false;
136 bool m_metricResultsHasBeenSet = false;
137 bool m_dataSnapshotTimeHasBeenSet = false;
138 bool m_approximateTotalCountHasBeenSet = false;
139 bool m_requestIdHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace Connect
144} // namespace Aws
GetCurrentMetricDataResult & WithDataSnapshotTime(DataSnapshotTimeT &&value)
AWS_CONNECT_API GetCurrentMetricDataResult()=default
const Aws::Vector< CurrentMetricResult > & GetMetricResults() const
GetCurrentMetricDataResult & AddMetricResults(MetricResultsT &&value)
GetCurrentMetricDataResult & WithNextToken(NextTokenT &&value)
AWS_CONNECT_API GetCurrentMetricDataResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCurrentMetricDataResult & WithMetricResults(MetricResultsT &&value)
GetCurrentMetricDataResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetDataSnapshotTime() const
AWS_CONNECT_API GetCurrentMetricDataResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCurrentMetricDataResult & WithApproximateTotalCount(long long 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