AWS SDK for C++  1.9.108
AWS SDK for C++
TimeWindow.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace WAFV2
22 {
23 namespace Model
24 {
25 
45  {
46  public:
51 
52 
61  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
62 
71  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
72 
81  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
82 
91  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
92 
101  inline TimeWindow& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
102 
111  inline TimeWindow& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
112 
113 
122  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
123 
132  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
133 
142  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
143 
152  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
153 
162  inline TimeWindow& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
163 
172  inline TimeWindow& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
173 
174  private:
175 
176  Aws::Utils::DateTime m_startTime;
177  bool m_startTimeHasBeenSet;
178 
179  Aws::Utils::DateTime m_endTime;
180  bool m_endTimeHasBeenSet;
181  };
182 
183 } // namespace Model
184 } // namespace WAFV2
185 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::WAFV2::Model::TimeWindow::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: TimeWindow.h:81
Aws::WAFV2::Model::TimeWindow::WithEndTime
TimeWindow & WithEndTime(const Aws::Utils::DateTime &value)
Definition: TimeWindow.h:162
DateTime.h
Aws::WAFV2::Model::TimeWindow::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: TimeWindow.h:71
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::TimeWindow::WithStartTime
TimeWindow & WithStartTime(const Aws::Utils::DateTime &value)
Definition: TimeWindow.h:101
WAFV2_EXPORTS.h
Aws::WAFV2::Model::TimeWindow::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::TimeWindow::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: TimeWindow.h:142
Aws::WAFV2::Model::TimeWindow::TimeWindow
TimeWindow()
Aws::WAFV2::Model::TimeWindow::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: TimeWindow.h:91
Aws::WAFV2::Model::TimeWindow::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: TimeWindow.h:61
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::TimeWindow::WithStartTime
TimeWindow & WithStartTime(Aws::Utils::DateTime &&value)
Definition: TimeWindow.h:111
Aws::WAFV2::Model::TimeWindow::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: TimeWindow.h:122
Aws::WAFV2::Model::TimeWindow::operator=
TimeWindow & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::TimeWindow::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: TimeWindow.h:132
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::TimeWindow::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: TimeWindow.h:152
Aws::WAFV2::Model::TimeWindow
Definition: TimeWindow.h:45
Aws::WAFV2::Model::TimeWindow::WithEndTime
TimeWindow & WithEndTime(Aws::Utils::DateTime &&value)
Definition: TimeWindow.h:172
Aws::WAFV2::Model::TimeWindow::TimeWindow
TimeWindow(Aws::Utils::Json::JsonView jsonValue)