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-regional/WAFRegional_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 WAFRegional
22{
23namespace Model
24{
25
52 {
53 public:
54 AWS_WAFREGIONAL_API TimeWindow();
55 AWS_WAFREGIONAL_API TimeWindow(Aws::Utils::Json::JsonView jsonValue);
56 AWS_WAFREGIONAL_API TimeWindow& operator=(Aws::Utils::Json::JsonView jsonValue);
57 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
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 WAFRegional
104} // namespace Aws
AWS_WAFREGIONAL_API TimeWindow()
TimeWindow & WithEndTime(const Aws::Utils::DateTime &value)
Definition TimeWindow.h:90
TimeWindow & WithStartTime(Aws::Utils::DateTime &&value)
Definition TimeWindow.h:74
const Aws::Utils::DateTime & GetStartTime() const
Definition TimeWindow.h:69
AWS_WAFREGIONAL_API TimeWindow(Aws::Utils::Json::JsonView jsonValue)
void SetEndTime(Aws::Utils::DateTime &&value)
Definition TimeWindow.h:89
void SetStartTime(Aws::Utils::DateTime &&value)
Definition TimeWindow.h:72
TimeWindow & WithStartTime(const Aws::Utils::DateTime &value)
Definition TimeWindow.h:73
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStartTime(const Aws::Utils::DateTime &value)
Definition TimeWindow.h:71
void SetEndTime(const Aws::Utils::DateTime &value)
Definition TimeWindow.h:88
AWS_WAFREGIONAL_API TimeWindow & operator=(Aws::Utils::Json::JsonView jsonValue)
TimeWindow & WithEndTime(Aws::Utils::DateTime &&value)
Definition TimeWindow.h:91
const Aws::Utils::DateTime & GetEndTime() const
Definition TimeWindow.h:86
Aws::Utils::Json::JsonValue JsonValue