AWS SDK for C++

AWS SDK for C++ Version 1.11.820

Loading...
Searching...
No Matches
QueryDataPoint.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace resiliencehubv2 {
20namespace Model {
21
28 public:
29 AWS_RESILIENCEHUBV2_API QueryDataPoint() = default;
30 AWS_RESILIENCEHUBV2_API QueryDataPoint(Aws::Utils::Json::JsonView jsonValue);
31 AWS_RESILIENCEHUBV2_API QueryDataPoint& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
39 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
40 template <typename TimestampT = Aws::Utils::DateTime>
41 void SetTimestamp(TimestampT&& value) {
42 m_timestampHasBeenSet = true;
43 m_timestamp = std::forward<TimestampT>(value);
44 }
45 template <typename TimestampT = Aws::Utils::DateTime>
46 QueryDataPoint& WithTimestamp(TimestampT&& value) {
47 SetTimestamp(std::forward<TimestampT>(value));
48 return *this;
49 }
51
53
56 inline long long GetQueryCount() const { return m_queryCount; }
57 inline bool QueryCountHasBeenSet() const { return m_queryCountHasBeenSet; }
58 inline void SetQueryCount(long long value) {
59 m_queryCountHasBeenSet = true;
60 m_queryCount = value;
61 }
62 inline QueryDataPoint& WithQueryCount(long long value) {
63 SetQueryCount(value);
64 return *this;
65 }
67 private:
68 Aws::Utils::DateTime m_timestamp{};
69
70 long long m_queryCount{0};
71 bool m_timestampHasBeenSet = false;
72 bool m_queryCountHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace resiliencehubv2
77} // namespace Aws
QueryDataPoint & WithTimestamp(TimestampT &&value)
QueryDataPoint & WithQueryCount(long long value)
AWS_RESILIENCEHUBV2_API QueryDataPoint()=default
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetTimestamp() const
AWS_RESILIENCEHUBV2_API QueryDataPoint & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUBV2_API QueryDataPoint(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue