AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
StartTimeRange.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
29 public:
30 AWS_DEVOPSGURU_API StartTimeRange() = default;
31 AWS_DEVOPSGURU_API StartTimeRange(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DEVOPSGURU_API StartTimeRange& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Utils::DateTime& GetFromTime() const { return m_fromTime; }
40 inline bool FromTimeHasBeenSet() const { return m_fromTimeHasBeenSet; }
41 template <typename FromTimeT = Aws::Utils::DateTime>
42 void SetFromTime(FromTimeT&& value) {
43 m_fromTimeHasBeenSet = true;
44 m_fromTime = std::forward<FromTimeT>(value);
45 }
46 template <typename FromTimeT = Aws::Utils::DateTime>
47 StartTimeRange& WithFromTime(FromTimeT&& value) {
48 SetFromTime(std::forward<FromTimeT>(value));
49 return *this;
50 }
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) {
61 m_toTimeHasBeenSet = true;
62 m_toTime = std::forward<ToTimeT>(value);
63 }
64 template <typename ToTimeT = Aws::Utils::DateTime>
65 StartTimeRange& WithToTime(ToTimeT&& value) {
66 SetToTime(std::forward<ToTimeT>(value));
67 return *this;
68 }
70 private:
71 Aws::Utils::DateTime m_fromTime{};
72
73 Aws::Utils::DateTime m_toTime{};
74 bool m_fromTimeHasBeenSet = false;
75 bool m_toTimeHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace DevOpsGuru
80} // 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