AWS SDK for C++  1.9.153
AWS SDK for C++
TimeWindow.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/waf/WAF_EXPORTS.h>
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 WAF
22 {
23 namespace Model
24 {
25 
52  {
53  public:
58 
59 
68  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
69 
78  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
79 
88  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
89 
98  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
99 
108  inline TimeWindow& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
109 
118  inline TimeWindow& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
119 
120 
129  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
130 
139  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
140 
149  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
150 
159  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
160 
169  inline TimeWindow& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
170 
179  inline TimeWindow& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
180 
181  private:
182 
183  Aws::Utils::DateTime m_startTime;
184  bool m_startTimeHasBeenSet;
185 
186  Aws::Utils::DateTime m_endTime;
187  bool m_endTimeHasBeenSet;
188  };
189 
190 } // namespace Model
191 } // namespace WAF
192 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::WAF::Model::TimeWindow::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: TimeWindow.h:78
DateTime.h
Aws::WAF::Model::TimeWindow::TimeWindow
TimeWindow()
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::WAF::Model::TimeWindow::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAF::Model::TimeWindow::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: TimeWindow.h:98
Aws::WAF::Model::TimeWindow::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: TimeWindow.h:139
Aws::WAF::Model::TimeWindow::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: TimeWindow.h:149
Aws::WAF::Model::TimeWindow
Definition: TimeWindow.h:52
Aws::WAF::Model::TimeWindow::TimeWindow
TimeWindow(Aws::Utils::Json::JsonView jsonValue)
Aws::WAF::Model::TimeWindow::WithEndTime
TimeWindow & WithEndTime(const Aws::Utils::DateTime &value)
Definition: TimeWindow.h:169
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
WAF_EXPORTS.h
Aws::WAF::Model::TimeWindow::WithStartTime
TimeWindow & WithStartTime(Aws::Utils::DateTime &&value)
Definition: TimeWindow.h:118
Aws::WAF::Model::TimeWindow::WithStartTime
TimeWindow & WithStartTime(const Aws::Utils::DateTime &value)
Definition: TimeWindow.h:108
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::WAF::Model::TimeWindow::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: TimeWindow.h:88
Aws::WAF::Model::TimeWindow::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: TimeWindow.h:68
Aws::WAF::Model::TimeWindow::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: TimeWindow.h:129
Aws::WAF::Model::TimeWindow::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: TimeWindow.h:159
Aws::WAF::Model::TimeWindow::operator=
TimeWindow & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAF::Model::TimeWindow::WithEndTime
TimeWindow & WithEndTime(Aws::Utils::DateTime &&value)
Definition: TimeWindow.h:179