AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TimestampMetricValuePair.h
1
6#pragma once
7#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DevOpsGuru
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_DEVOPSGURU_API TimestampMetricValuePair();
38 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
46 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
47 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
48 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
49 inline TimestampMetricValuePair& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
50 inline TimestampMetricValuePair& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
52
54
57 inline double GetMetricValue() const{ return m_metricValue; }
58 inline bool MetricValueHasBeenSet() const { return m_metricValueHasBeenSet; }
59 inline void SetMetricValue(double value) { m_metricValueHasBeenSet = true; m_metricValue = value; }
60 inline TimestampMetricValuePair& WithMetricValue(double value) { SetMetricValue(value); return *this;}
62 private:
63
64 Aws::Utils::DateTime m_timestamp;
65 bool m_timestampHasBeenSet = false;
66
67 double m_metricValue;
68 bool m_metricValueHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace DevOpsGuru
73} // namespace Aws
void SetTimestamp(const Aws::Utils::DateTime &value)
TimestampMetricValuePair & WithTimestamp(const Aws::Utils::DateTime &value)
AWS_DEVOPSGURU_API TimestampMetricValuePair & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVOPSGURU_API TimestampMetricValuePair(Aws::Utils::Json::JsonView jsonValue)
TimestampMetricValuePair & WithMetricValue(double value)
TimestampMetricValuePair & WithTimestamp(Aws::Utils::DateTime &&value)
Aws::Utils::Json::JsonValue JsonValue