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/wafv2/WAFV2_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 WAFV2
22{
23namespace Model
24{
25
45 {
46 public:
47 AWS_WAFV2_API TimeWindow();
48 AWS_WAFV2_API TimeWindow(Aws::Utils::Json::JsonView jsonValue);
50 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
62 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
63 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
64 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
65 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
66 inline TimeWindow& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
67 inline TimeWindow& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
69
71
79 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
80 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
81 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
82 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
83 inline TimeWindow& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
84 inline TimeWindow& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
86 private:
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 WAFV2
97} // namespace Aws
void SetStartTime(Aws::Utils::DateTime &&value)
Definition TimeWindow.h:65
TimeWindow & WithEndTime(Aws::Utils::DateTime &&value)
Definition TimeWindow.h:84
AWS_WAFV2_API TimeWindow & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStartTime() const
Definition TimeWindow.h:62
void SetEndTime(const Aws::Utils::DateTime &value)
Definition TimeWindow.h:81
AWS_WAFV2_API TimeWindow(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetEndTime() const
Definition TimeWindow.h:79
void SetStartTime(const Aws::Utils::DateTime &value)
Definition TimeWindow.h:64
TimeWindow & WithEndTime(const Aws::Utils::DateTime &value)
Definition TimeWindow.h:83
TimeWindow & WithStartTime(Aws::Utils::DateTime &&value)
Definition TimeWindow.h:67
TimeWindow & WithStartTime(const Aws::Utils::DateTime &value)
Definition TimeWindow.h:66
void SetEndTime(Aws::Utils::DateTime &&value)
Definition TimeWindow.h:82
Aws::Utils::Json::JsonValue JsonValue