AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 IntervalPeriod GetInterval() const { return m_interval; }
47 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
48 inline void SetInterval(IntervalPeriod value) { m_intervalHasBeenSet = true; m_interval = value; }
49 inline MetricInterval& WithInterval(IntervalPeriod value) { SetInterval(value); return *this;}
51
53
57 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
58 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
59 template<typename StartTimeT = Aws::Utils::DateTime>
60 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
61 template<typename StartTimeT = Aws::Utils::DateTime>
62 MetricInterval& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
64
66
74 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
75 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
76 template<typename EndTimeT = Aws::Utils::DateTime>
77 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
78 template<typename EndTimeT = Aws::Utils::DateTime>
79 MetricInterval& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
81 private:
82
84 bool m_intervalHasBeenSet = false;
85
86 Aws::Utils::DateTime m_startTime{};
87 bool m_startTimeHasBeenSet = false;
88
89 Aws::Utils::DateTime m_endTime{};
90 bool m_endTimeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Connect
95} // namespace Aws
AWS_CONNECT_API MetricInterval(Aws::Utils::Json::JsonView jsonValue)
void SetStartTime(StartTimeT &&value)
const Aws::Utils::DateTime & GetEndTime() const
void SetEndTime(EndTimeT &&value)
MetricInterval & WithEndTime(EndTimeT &&value)
const Aws::Utils::DateTime & GetStartTime() const
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
MetricInterval & WithStartTime(StartTimeT &&value)
void SetInterval(IntervalPeriod value)
IntervalPeriod GetInterval() const
MetricInterval & WithInterval(IntervalPeriod value)
AWS_CONNECT_API MetricInterval & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API MetricInterval()=default
Aws::Utils::Json::JsonValue JsonValue