AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RestoreWindow.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/rds/RDS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace RDS {
20namespace Model {
21
29 public:
30 AWS_RDS_API RestoreWindow() = default;
31 AWS_RDS_API RestoreWindow(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_RDS_API RestoreWindow& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::Utils::DateTime& GetEarliestTime() const { return m_earliestTime; }
42 inline bool EarliestTimeHasBeenSet() const { return m_earliestTimeHasBeenSet; }
43 template <typename EarliestTimeT = Aws::Utils::DateTime>
44 void SetEarliestTime(EarliestTimeT&& value) {
45 m_earliestTimeHasBeenSet = true;
46 m_earliestTime = std::forward<EarliestTimeT>(value);
47 }
48 template <typename EarliestTimeT = Aws::Utils::DateTime>
49 RestoreWindow& WithEarliestTime(EarliestTimeT&& value) {
50 SetEarliestTime(std::forward<EarliestTimeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetLatestTime() const { return m_latestTime; }
60 inline bool LatestTimeHasBeenSet() const { return m_latestTimeHasBeenSet; }
61 template <typename LatestTimeT = Aws::Utils::DateTime>
62 void SetLatestTime(LatestTimeT&& value) {
63 m_latestTimeHasBeenSet = true;
64 m_latestTime = std::forward<LatestTimeT>(value);
65 }
66 template <typename LatestTimeT = Aws::Utils::DateTime>
67 RestoreWindow& WithLatestTime(LatestTimeT&& value) {
68 SetLatestTime(std::forward<LatestTimeT>(value));
69 return *this;
70 }
72 private:
73 Aws::Utils::DateTime m_earliestTime{};
74
75 Aws::Utils::DateTime m_latestTime{};
76 bool m_earliestTimeHasBeenSet = false;
77 bool m_latestTimeHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace RDS
82} // namespace Aws
void SetLatestTime(LatestTimeT &&value)
const Aws::Utils::DateTime & GetLatestTime() const
RestoreWindow & WithEarliestTime(EarliestTimeT &&value)
const Aws::Utils::DateTime & GetEarliestTime() const
AWS_RDS_API RestoreWindow(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetEarliestTime(EarliestTimeT &&value)
AWS_RDS_API RestoreWindow & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
RestoreWindow & WithLatestTime(LatestTimeT &&value)
AWS_RDS_API RestoreWindow()=default
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_ostream< char, std::char_traits< char > > OStream