AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TimeWindow.h
1
6#pragma once
7#include <aws/waf/WAF_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 WAF
22{
23namespace Model
24{
25
52 {
53 public:
54 AWS_WAF_API TimeWindow() = default;
55 AWS_WAF_API TimeWindow(Aws::Utils::Json::JsonView jsonValue);
58
59
61
69 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
70 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
71 template<typename StartTimeT = Aws::Utils::DateTime>
72 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
73 template<typename StartTimeT = Aws::Utils::DateTime>
74 TimeWindow& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
76
78
86 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
87 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
88 template<typename EndTimeT = Aws::Utils::DateTime>
89 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
90 template<typename EndTimeT = Aws::Utils::DateTime>
91 TimeWindow& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
93 private:
94
95 Aws::Utils::DateTime m_startTime{};
96 bool m_startTimeHasBeenSet = false;
97
98 Aws::Utils::DateTime m_endTime{};
99 bool m_endTimeHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace WAF
104} // namespace Aws
AWS_WAF_API TimeWindow(Aws::Utils::Json::JsonView jsonValue)
bool EndTimeHasBeenSet() const
Definition TimeWindow.h:87
const Aws::Utils::DateTime & GetStartTime() const
Definition TimeWindow.h:69
TimeWindow & WithStartTime(StartTimeT &&value)
Definition TimeWindow.h:74
AWS_WAF_API TimeWindow()=default
AWS_WAF_API TimeWindow & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEndTime() const
Definition TimeWindow.h:86
void SetEndTime(EndTimeT &&value)
Definition TimeWindow.h:89
bool StartTimeHasBeenSet() const
Definition TimeWindow.h:70
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
TimeWindow & WithEndTime(EndTimeT &&value)
Definition TimeWindow.h:91
void SetStartTime(StartTimeT &&value)
Definition TimeWindow.h:72
Aws::Utils::Json::JsonValue JsonValue