AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
DateRange.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Backup {
20namespace Model {
21
32class DateRange {
33 public:
34 AWS_BACKUP_API DateRange() = default;
35 AWS_BACKUP_API DateRange(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline const Aws::Utils::DateTime& GetFromDate() const { return m_fromDate; }
46 inline bool FromDateHasBeenSet() const { return m_fromDateHasBeenSet; }
47 template <typename FromDateT = Aws::Utils::DateTime>
48 void SetFromDate(FromDateT&& value) {
49 m_fromDateHasBeenSet = true;
50 m_fromDate = std::forward<FromDateT>(value);
51 }
52 template <typename FromDateT = Aws::Utils::DateTime>
53 DateRange& WithFromDate(FromDateT&& value) {
54 SetFromDate(std::forward<FromDateT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::Utils::DateTime& GetToDate() const { return m_toDate; }
66 inline bool ToDateHasBeenSet() const { return m_toDateHasBeenSet; }
67 template <typename ToDateT = Aws::Utils::DateTime>
68 void SetToDate(ToDateT&& value) {
69 m_toDateHasBeenSet = true;
70 m_toDate = std::forward<ToDateT>(value);
71 }
72 template <typename ToDateT = Aws::Utils::DateTime>
73 DateRange& WithToDate(ToDateT&& value) {
74 SetToDate(std::forward<ToDateT>(value));
75 return *this;
76 }
78 private:
79 Aws::Utils::DateTime m_fromDate{};
80
81 Aws::Utils::DateTime m_toDate{};
82 bool m_fromDateHasBeenSet = false;
83 bool m_toDateHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Backup
88} // namespace Aws
DateRange & WithFromDate(FromDateT &&value)
Definition DateRange.h:53
const Aws::Utils::DateTime & GetToDate() const
Definition DateRange.h:65
bool FromDateHasBeenSet() const
Definition DateRange.h:46
AWS_BACKUP_API DateRange()=default
const Aws::Utils::DateTime & GetFromDate() const
Definition DateRange.h:45
void SetFromDate(FromDateT &&value)
Definition DateRange.h:48
AWS_BACKUP_API DateRange(Aws::Utils::Json::JsonView jsonValue)
AWS_BACKUP_API DateRange & operator=(Aws::Utils::Json::JsonView jsonValue)
DateRange & WithToDate(ToDateT &&value)
Definition DateRange.h:73
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
void SetToDate(ToDateT &&value)
Definition DateRange.h:68
Aws::Utils::Json::JsonValue JsonValue