AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFrom(const Aws::Utils::DateTime& value) { m_fromHasBeenSet = true; m_from = value; }
58 inline void SetFrom(Aws::Utils::DateTime&& value) { m_fromHasBeenSet = true; m_from = std::move(value); }
59 inline DateTimeRange& WithFrom(const Aws::Utils::DateTime& value) { SetFrom(value); return *this;}
60 inline DateTimeRange& WithFrom(Aws::Utils::DateTime&& value) { SetFrom(std::move(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 inline void SetTo(const Aws::Utils::DateTime& value) { m_toHasBeenSet = true; m_to = value; }
70 inline void SetTo(Aws::Utils::DateTime&& value) { m_toHasBeenSet = true; m_to = std::move(value); }
71 inline DateTimeRange& WithTo(const Aws::Utils::DateTime& value) { SetTo(value); return *this;}
72 inline DateTimeRange& WithTo(Aws::Utils::DateTime&& value) { SetTo(std::move(value)); return *this;}
74 private:
75
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
void SetFrom(const Aws::Utils::DateTime &value)
AWS_HEALTH_API DateTimeRange(Aws::Utils::Json::JsonView jsonValue)
DateTimeRange & WithTo(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetTo() const
DateTimeRange & WithTo(Aws::Utils::DateTime &&value)
void SetFrom(Aws::Utils::DateTime &&value)
DateTimeRange & WithFrom(Aws::Utils::DateTime &&value)
void SetTo(Aws::Utils::DateTime &&value)
DateTimeRange & WithFrom(const Aws::Utils::DateTime &value)
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTo(const Aws::Utils::DateTime &value)
AWS_HEALTH_API DateTimeRange & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue