AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFromTime(const Aws::Utils::DateTime& value) { m_fromTimeHasBeenSet = true; m_fromTime = value; }
50 inline void SetFromTime(Aws::Utils::DateTime&& value) { m_fromTimeHasBeenSet = true; m_fromTime = std::move(value); }
51 inline EventTimeRange& WithFromTime(const Aws::Utils::DateTime& value) { SetFromTime(value); return *this;}
52 inline EventTimeRange& WithFromTime(Aws::Utils::DateTime&& value) { SetFromTime(std::move(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 inline void SetToTime(const Aws::Utils::DateTime& value) { m_toTimeHasBeenSet = true; m_toTime = value; }
62 inline void SetToTime(Aws::Utils::DateTime&& value) { m_toTimeHasBeenSet = true; m_toTime = std::move(value); }
63 inline EventTimeRange& WithToTime(const Aws::Utils::DateTime& value) { SetToTime(value); return *this;}
64 inline EventTimeRange& WithToTime(Aws::Utils::DateTime&& value) { SetToTime(std::move(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
void SetFromTime(const Aws::Utils::DateTime &value)
EventTimeRange & WithToTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetToTime() const
EventTimeRange & WithFromTime(Aws::Utils::DateTime &&value)
EventTimeRange & WithFromTime(const Aws::Utils::DateTime &value)
void SetFromTime(Aws::Utils::DateTime &&value)
EventTimeRange & WithToTime(const Aws::Utils::DateTime &value)
AWS_DEVOPSGURU_API EventTimeRange(Aws::Utils::Json::JsonView jsonValue)
void SetToTime(Aws::Utils::DateTime &&value)
void SetToTime(const Aws::Utils::DateTime &value)
AWS_DEVOPSGURU_API EventTimeRange & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetFromTime() const
Aws::Utils::Json::JsonValue JsonValue