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/config/ConfigService_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 ConfigService
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CONFIGSERVICE_API TimeWindow();
36 AWS_CONFIGSERVICE_API TimeWindow(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONFIGSERVICE_API TimeWindow& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
46 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
47 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
48 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
49 inline TimeWindow& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
50 inline TimeWindow& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
52
54
57 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
58 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
59 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
60 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
61 inline TimeWindow& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
62 inline TimeWindow& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
64 private:
65
66 Aws::Utils::DateTime m_startTime;
67 bool m_startTimeHasBeenSet = false;
68
69 Aws::Utils::DateTime m_endTime;
70 bool m_endTimeHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace ConfigService
75} // namespace Aws
TimeWindow & WithStartTime(Aws::Utils::DateTime &&value)
Definition TimeWindow.h:50
void SetEndTime(const Aws::Utils::DateTime &value)
Definition TimeWindow.h:59
void SetStartTime(const Aws::Utils::DateTime &value)
Definition TimeWindow.h:47
void SetEndTime(Aws::Utils::DateTime &&value)
Definition TimeWindow.h:60
TimeWindow & WithEndTime(Aws::Utils::DateTime &&value)
Definition TimeWindow.h:62
AWS_CONFIGSERVICE_API TimeWindow & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEndTime() const
Definition TimeWindow.h:57
TimeWindow & WithEndTime(const Aws::Utils::DateTime &value)
Definition TimeWindow.h:61
const Aws::Utils::DateTime & GetStartTime() const
Definition TimeWindow.h:45
AWS_CONFIGSERVICE_API TimeWindow(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API TimeWindow()
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
TimeWindow & WithStartTime(const Aws::Utils::DateTime &value)
Definition TimeWindow.h:49
void SetStartTime(Aws::Utils::DateTime &&value)
Definition TimeWindow.h:48
Aws::Utils::Json::JsonValue JsonValue