AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EventTimeRange.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DevOpsGuru {
20namespace Model {
21
31 public:
32 AWS_DEVOPSGURU_API EventTimeRange() = default;
33 AWS_DEVOPSGURU_API EventTimeRange(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVOPSGURU_API EventTimeRange& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Utils::DateTime& GetFromTime() const { return m_fromTime; }
42 inline bool FromTimeHasBeenSet() const { return m_fromTimeHasBeenSet; }
43 template <typename FromTimeT = Aws::Utils::DateTime>
44 void SetFromTime(FromTimeT&& value) {
45 m_fromTimeHasBeenSet = true;
46 m_fromTime = std::forward<FromTimeT>(value);
47 }
48 template <typename FromTimeT = Aws::Utils::DateTime>
49 EventTimeRange& WithFromTime(FromTimeT&& value) {
50 SetFromTime(std::forward<FromTimeT>(value));
51 return *this;
52 }
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) {
63 m_toTimeHasBeenSet = true;
64 m_toTime = std::forward<ToTimeT>(value);
65 }
66 template <typename ToTimeT = Aws::Utils::DateTime>
67 EventTimeRange& WithToTime(ToTimeT&& value) {
68 SetToTime(std::forward<ToTimeT>(value));
69 return *this;
70 }
72 private:
73 Aws::Utils::DateTime m_fromTime{};
74
75 Aws::Utils::DateTime m_toTime{};
76 bool m_fromTimeHasBeenSet = false;
77 bool m_toTimeHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace DevOpsGuru
82} // 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