AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetCurrentMetricDataResult.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/connect/model/CurrentMetricResult.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 Connect
27{
28namespace Model
29{
31 {
32 public:
33 AWS_CONNECT_API GetCurrentMetricDataResult() = default;
36
37
39
45 inline const Aws::String& GetNextToken() const { return m_nextToken; }
46 template<typename NextTokenT = Aws::String>
47 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
48 template<typename NextTokenT = Aws::String>
49 GetCurrentMetricDataResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
51
53
56 inline const Aws::Vector<CurrentMetricResult>& GetMetricResults() const { return m_metricResults; }
57 template<typename MetricResultsT = Aws::Vector<CurrentMetricResult>>
58 void SetMetricResults(MetricResultsT&& value) { m_metricResultsHasBeenSet = true; m_metricResults = std::forward<MetricResultsT>(value); }
59 template<typename MetricResultsT = Aws::Vector<CurrentMetricResult>>
60 GetCurrentMetricDataResult& WithMetricResults(MetricResultsT&& value) { SetMetricResults(std::forward<MetricResultsT>(value)); return *this;}
61 template<typename MetricResultsT = CurrentMetricResult>
62 GetCurrentMetricDataResult& AddMetricResults(MetricResultsT&& value) { m_metricResultsHasBeenSet = true; m_metricResults.emplace_back(std::forward<MetricResultsT>(value)); return *this; }
64
66
69 inline const Aws::Utils::DateTime& GetDataSnapshotTime() const { return m_dataSnapshotTime; }
70 template<typename DataSnapshotTimeT = Aws::Utils::DateTime>
71 void SetDataSnapshotTime(DataSnapshotTimeT&& value) { m_dataSnapshotTimeHasBeenSet = true; m_dataSnapshotTime = std::forward<DataSnapshotTimeT>(value); }
72 template<typename DataSnapshotTimeT = Aws::Utils::DateTime>
73 GetCurrentMetricDataResult& WithDataSnapshotTime(DataSnapshotTimeT&& value) { SetDataSnapshotTime(std::forward<DataSnapshotTimeT>(value)); return *this;}
75
77
80 inline long long GetApproximateTotalCount() const { return m_approximateTotalCount; }
81 inline void SetApproximateTotalCount(long long value) { m_approximateTotalCountHasBeenSet = true; m_approximateTotalCount = value; }
82 inline GetCurrentMetricDataResult& WithApproximateTotalCount(long long value) { SetApproximateTotalCount(value); return *this;}
84
86
87 inline const Aws::String& GetRequestId() const { return m_requestId; }
88 template<typename RequestIdT = Aws::String>
89 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
90 template<typename RequestIdT = Aws::String>
91 GetCurrentMetricDataResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
93 private:
94
95 Aws::String m_nextToken;
96 bool m_nextTokenHasBeenSet = false;
97
99 bool m_metricResultsHasBeenSet = false;
100
101 Aws::Utils::DateTime m_dataSnapshotTime{};
102 bool m_dataSnapshotTimeHasBeenSet = false;
103
104 long long m_approximateTotalCount{0};
105 bool m_approximateTotalCountHasBeenSet = false;
106
107 Aws::String m_requestId;
108 bool m_requestIdHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Connect
113} // 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