AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
DateTimeRange.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/health/Health_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Health {
20namespace Model {
21
39 public:
40 AWS_HEALTH_API DateTimeRange() = default;
41 AWS_HEALTH_API DateTimeRange(Aws::Utils::Json::JsonView jsonValue);
43 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const Aws::Utils::DateTime& GetFrom() const { return m_from; }
50 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
51 template <typename FromT = Aws::Utils::DateTime>
52 void SetFrom(FromT&& value) {
53 m_fromHasBeenSet = true;
54 m_from = std::forward<FromT>(value);
55 }
56 template <typename FromT = Aws::Utils::DateTime>
57 DateTimeRange& WithFrom(FromT&& value) {
58 SetFrom(std::forward<FromT>(value));
59 return *this;
60 }
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) {
71 m_toHasBeenSet = true;
72 m_to = std::forward<ToT>(value);
73 }
74 template <typename ToT = Aws::Utils::DateTime>
75 DateTimeRange& WithTo(ToT&& value) {
76 SetTo(std::forward<ToT>(value));
77 return *this;
78 }
80 private:
81 Aws::Utils::DateTime m_from{};
82
84 bool m_fromHasBeenSet = false;
85 bool m_toHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace Health
90} // 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