AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricInterval.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/IntervalPeriod.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CONNECT_API MetricInterval();
37 AWS_CONNECT_API MetricInterval(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const IntervalPeriod& GetInterval() const{ return m_interval; }
47 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
48 inline void SetInterval(const IntervalPeriod& value) { m_intervalHasBeenSet = true; m_interval = value; }
49 inline void SetInterval(IntervalPeriod&& value) { m_intervalHasBeenSet = true; m_interval = std::move(value); }
50 inline MetricInterval& WithInterval(const IntervalPeriod& value) { SetInterval(value); return *this;}
51 inline MetricInterval& WithInterval(IntervalPeriod&& value) { SetInterval(std::move(value)); return *this;}
53
55
59 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
60 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
61 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
62 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
63 inline MetricInterval& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
64 inline MetricInterval& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
66
68
76 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
77 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
78 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
79 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
80 inline MetricInterval& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
81 inline MetricInterval& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
83 private:
84
85 IntervalPeriod m_interval;
86 bool m_intervalHasBeenSet = false;
87
88 Aws::Utils::DateTime m_startTime;
89 bool m_startTimeHasBeenSet = false;
90
91 Aws::Utils::DateTime m_endTime;
92 bool m_endTimeHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace Connect
97} // namespace Aws
MetricInterval & WithInterval(const IntervalPeriod &value)
AWS_CONNECT_API MetricInterval(Aws::Utils::Json::JsonView jsonValue)
MetricInterval & WithInterval(IntervalPeriod &&value)
MetricInterval & WithEndTime(Aws::Utils::DateTime &&value)
MetricInterval & WithStartTime(Aws::Utils::DateTime &&value)
void SetInterval(const IntervalPeriod &value)
const Aws::Utils::DateTime & GetEndTime() const
const IntervalPeriod & GetInterval() const
MetricInterval & WithEndTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetStartTime() const
void SetEndTime(const Aws::Utils::DateTime &value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetEndTime(Aws::Utils::DateTime &&value)
void SetInterval(IntervalPeriod &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
MetricInterval & WithStartTime(const Aws::Utils::DateTime &value)
void SetStartTime(Aws::Utils::DateTime &&value)
AWS_CONNECT_API MetricInterval & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue