AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartTimeRange.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
33 {
34 public:
35 AWS_DEVOPSGURU_API StartTimeRange() = default;
36 AWS_DEVOPSGURU_API StartTimeRange(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DEVOPSGURU_API StartTimeRange& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Utils::DateTime& GetFromTime() const { return m_fromTime; }
46 inline bool FromTimeHasBeenSet() const { return m_fromTimeHasBeenSet; }
47 template<typename FromTimeT = Aws::Utils::DateTime>
48 void SetFromTime(FromTimeT&& value) { m_fromTimeHasBeenSet = true; m_fromTime = std::forward<FromTimeT>(value); }
49 template<typename FromTimeT = Aws::Utils::DateTime>
50 StartTimeRange& WithFromTime(FromTimeT&& value) { SetFromTime(std::forward<FromTimeT>(value)); return *this;}
52
54
57 inline const Aws::Utils::DateTime& GetToTime() const { return m_toTime; }
58 inline bool ToTimeHasBeenSet() const { return m_toTimeHasBeenSet; }
59 template<typename ToTimeT = Aws::Utils::DateTime>
60 void SetToTime(ToTimeT&& value) { m_toTimeHasBeenSet = true; m_toTime = std::forward<ToTimeT>(value); }
61 template<typename ToTimeT = Aws::Utils::DateTime>
62 StartTimeRange& WithToTime(ToTimeT&& value) { SetToTime(std::forward<ToTimeT>(value)); return *this;}
64 private:
65
66 Aws::Utils::DateTime m_fromTime{};
67 bool m_fromTimeHasBeenSet = false;
68
69 Aws::Utils::DateTime m_toTime{};
70 bool m_toTimeHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace DevOpsGuru
75} // namespace Aws
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVOPSGURU_API StartTimeRange & operator=(Aws::Utils::Json::JsonView jsonValue)
StartTimeRange & WithFromTime(FromTimeT &&value)
const Aws::Utils::DateTime & GetFromTime() const
const Aws::Utils::DateTime & GetToTime() const
AWS_DEVOPSGURU_API StartTimeRange(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSGURU_API StartTimeRange()=default
StartTimeRange & WithToTime(ToTimeT &&value)
Aws::Utils::Json::JsonValue JsonValue