AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EventTimeRange.h
1
6#pragma once
7#include <aws/devops-guru/DevOpsGuru_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 DevOpsGuru
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_DEVOPSGURU_API EventTimeRange() = default;
38 AWS_DEVOPSGURU_API EventTimeRange(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DEVOPSGURU_API EventTimeRange& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Utils::DateTime& GetFromTime() const { return m_fromTime; }
48 inline bool FromTimeHasBeenSet() const { return m_fromTimeHasBeenSet; }
49 template<typename FromTimeT = Aws::Utils::DateTime>
50 void SetFromTime(FromTimeT&& value) { m_fromTimeHasBeenSet = true; m_fromTime = std::forward<FromTimeT>(value); }
51 template<typename FromTimeT = Aws::Utils::DateTime>
52 EventTimeRange& WithFromTime(FromTimeT&& value) { SetFromTime(std::forward<FromTimeT>(value)); return *this;}
54
56
59 inline const Aws::Utils::DateTime& GetToTime() const { return m_toTime; }
60 inline bool ToTimeHasBeenSet() const { return m_toTimeHasBeenSet; }
61 template<typename ToTimeT = Aws::Utils::DateTime>
62 void SetToTime(ToTimeT&& value) { m_toTimeHasBeenSet = true; m_toTime = std::forward<ToTimeT>(value); }
63 template<typename ToTimeT = Aws::Utils::DateTime>
64 EventTimeRange& WithToTime(ToTimeT&& value) { SetToTime(std::forward<ToTimeT>(value)); return *this;}
66 private:
67
68 Aws::Utils::DateTime m_fromTime{};
69 bool m_fromTimeHasBeenSet = false;
70
71 Aws::Utils::DateTime m_toTime{};
72 bool m_toTimeHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace DevOpsGuru
77} // namespace Aws
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVOPSGURU_API EventTimeRange()=default
const Aws::Utils::DateTime & GetToTime() const
EventTimeRange & WithFromTime(FromTimeT &&value)
AWS_DEVOPSGURU_API EventTimeRange(Aws::Utils::Json::JsonView jsonValue)
EventTimeRange & WithToTime(ToTimeT &&value)
AWS_DEVOPSGURU_API EventTimeRange & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetFromTime() const
Aws::Utils::Json::JsonValue JsonValue