AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
DateTimeRange.h
1
6#pragma once
7#include <aws/health/Health_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 Health
22{
23namespace Model
24{
25
43 {
44 public:
45 AWS_HEALTH_API DateTimeRange() = default;
46 AWS_HEALTH_API DateTimeRange(Aws::Utils::Json::JsonView jsonValue);
48 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const Aws::Utils::DateTime& GetFrom() const { return m_from; }
56 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
57 template<typename FromT = Aws::Utils::DateTime>
58 void SetFrom(FromT&& value) { m_fromHasBeenSet = true; m_from = std::forward<FromT>(value); }
59 template<typename FromT = Aws::Utils::DateTime>
60 DateTimeRange& WithFrom(FromT&& value) { SetFrom(std::forward<FromT>(value)); return *this;}
62
64
67 inline const Aws::Utils::DateTime& GetTo() const { return m_to; }
68 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
69 template<typename ToT = Aws::Utils::DateTime>
70 void SetTo(ToT&& value) { m_toHasBeenSet = true; m_to = std::forward<ToT>(value); }
71 template<typename ToT = Aws::Utils::DateTime>
72 DateTimeRange& WithTo(ToT&& value) { SetTo(std::forward<ToT>(value)); return *this;}
74 private:
75
76 Aws::Utils::DateTime m_from{};
77 bool m_fromHasBeenSet = false;
78
80 bool m_toHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace Health
85} // namespace Aws
const Aws::Utils::DateTime & GetFrom() const
AWS_HEALTH_API DateTimeRange(Aws::Utils::Json::JsonView jsonValue)
DateTimeRange & WithTo(ToT &&value)
const Aws::Utils::DateTime & GetTo() const
DateTimeRange & WithFrom(FromT &&value)
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_HEALTH_API DateTimeRange()=default
AWS_HEALTH_API DateTimeRange & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue