AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#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 Backup
22{
23namespace Model
24{
25
37 {
38 public:
39 AWS_BACKUP_API DateRange();
40 AWS_BACKUP_API DateRange(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const Aws::Utils::DateTime& GetFromDate() const{ return m_fromDate; }
52 inline bool FromDateHasBeenSet() const { return m_fromDateHasBeenSet; }
53 inline void SetFromDate(const Aws::Utils::DateTime& value) { m_fromDateHasBeenSet = true; m_fromDate = value; }
54 inline void SetFromDate(Aws::Utils::DateTime&& value) { m_fromDateHasBeenSet = true; m_fromDate = std::move(value); }
55 inline DateRange& WithFromDate(const Aws::Utils::DateTime& value) { SetFromDate(value); return *this;}
56 inline DateRange& WithFromDate(Aws::Utils::DateTime&& value) { SetFromDate(std::move(value)); return *this;}
58
60
65 inline const Aws::Utils::DateTime& GetToDate() const{ return m_toDate; }
66 inline bool ToDateHasBeenSet() const { return m_toDateHasBeenSet; }
67 inline void SetToDate(const Aws::Utils::DateTime& value) { m_toDateHasBeenSet = true; m_toDate = value; }
68 inline void SetToDate(Aws::Utils::DateTime&& value) { m_toDateHasBeenSet = true; m_toDate = std::move(value); }
69 inline DateRange& WithToDate(const Aws::Utils::DateTime& value) { SetToDate(value); return *this;}
70 inline DateRange& WithToDate(Aws::Utils::DateTime&& value) { SetToDate(std::move(value)); return *this;}
72 private:
73
74 Aws::Utils::DateTime m_fromDate;
75 bool m_fromDateHasBeenSet = false;
76
77 Aws::Utils::DateTime m_toDate;
78 bool m_toDateHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace Backup
83} // namespace Aws
DateRange & WithFromDate(const Aws::Utils::DateTime &value)
Definition DateRange.h:55
DateRange & WithToDate(Aws::Utils::DateTime &&value)
Definition DateRange.h:70
const Aws::Utils::DateTime & GetToDate() const
Definition DateRange.h:65
bool FromDateHasBeenSet() const
Definition DateRange.h:52
const Aws::Utils::DateTime & GetFromDate() const
Definition DateRange.h:51
void SetFromDate(const Aws::Utils::DateTime &value)
Definition DateRange.h:53
DateRange & WithFromDate(Aws::Utils::DateTime &&value)
Definition DateRange.h:56
void SetToDate(Aws::Utils::DateTime &&value)
Definition DateRange.h:68
DateRange & WithToDate(const Aws::Utils::DateTime &value)
Definition DateRange.h:69
AWS_BACKUP_API DateRange(Aws::Utils::Json::JsonView jsonValue)
AWS_BACKUP_API DateRange & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFromDate(Aws::Utils::DateTime &&value)
Definition DateRange.h:54
void SetToDate(const Aws::Utils::DateTime &value)
Definition DateRange.h:67
Aws::Utils::Json::JsonValue JsonValue