AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
72 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
73 inline TimeWindow& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
74 inline TimeWindow& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(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 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
89 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
90 inline TimeWindow& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
91 inline TimeWindow& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(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
TimeWindow & WithStartTime(const Aws::Utils::DateTime &value)
Definition TimeWindow.h:73
AWS_WAF_API TimeWindow(Aws::Utils::Json::JsonView jsonValue)
void SetStartTime(const Aws::Utils::DateTime &value)
Definition TimeWindow.h:71
bool EndTimeHasBeenSet() const
Definition TimeWindow.h:87
const Aws::Utils::DateTime & GetStartTime() const
Definition TimeWindow.h:69
void SetStartTime(Aws::Utils::DateTime &&value)
Definition TimeWindow.h:72
AWS_WAF_API TimeWindow & operator=(Aws::Utils::Json::JsonView jsonValue)
TimeWindow & WithStartTime(Aws::Utils::DateTime &&value)
Definition TimeWindow.h:74
void SetEndTime(const Aws::Utils::DateTime &value)
Definition TimeWindow.h:88
const Aws::Utils::DateTime & GetEndTime() const
Definition TimeWindow.h:86
TimeWindow & WithEndTime(Aws::Utils::DateTime &&value)
Definition TimeWindow.h:91
bool StartTimeHasBeenSet() const
Definition TimeWindow.h:70
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
TimeWindow & WithEndTime(const Aws::Utils::DateTime &value)
Definition TimeWindow.h:90
void SetEndTime(Aws::Utils::DateTime &&value)
Definition TimeWindow.h:89
Aws::Utils::Json::JsonValue JsonValue