AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RestoreStatus.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3Crt
21{
22namespace Model
23{
24
40 {
41 public:
42 AWS_S3CRT_API RestoreStatus() = default;
43 AWS_S3CRT_API RestoreStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
44 AWS_S3CRT_API RestoreStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45
46 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
47
48
50
60 inline bool GetIsRestoreInProgress() const { return m_isRestoreInProgress; }
61 inline bool IsRestoreInProgressHasBeenSet() const { return m_isRestoreInProgressHasBeenSet; }
62 inline void SetIsRestoreInProgress(bool value) { m_isRestoreInProgressHasBeenSet = true; m_isRestoreInProgress = value; }
63 inline RestoreStatus& WithIsRestoreInProgress(bool value) { SetIsRestoreInProgress(value); return *this;}
65
67
73 inline const Aws::Utils::DateTime& GetRestoreExpiryDate() const { return m_restoreExpiryDate; }
74 inline bool RestoreExpiryDateHasBeenSet() const { return m_restoreExpiryDateHasBeenSet; }
75 template<typename RestoreExpiryDateT = Aws::Utils::DateTime>
76 void SetRestoreExpiryDate(RestoreExpiryDateT&& value) { m_restoreExpiryDateHasBeenSet = true; m_restoreExpiryDate = std::forward<RestoreExpiryDateT>(value); }
77 template<typename RestoreExpiryDateT = Aws::Utils::DateTime>
78 RestoreStatus& WithRestoreExpiryDate(RestoreExpiryDateT&& value) { SetRestoreExpiryDate(std::forward<RestoreExpiryDateT>(value)); return *this;}
80 private:
81
82 bool m_isRestoreInProgress{false};
83 bool m_isRestoreInProgressHasBeenSet = false;
84
85 Aws::Utils::DateTime m_restoreExpiryDate{};
86 bool m_restoreExpiryDateHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace S3Crt
91} // namespace Aws
RestoreStatus & WithIsRestoreInProgress(bool value)
AWS_S3CRT_API RestoreStatus()=default
void SetRestoreExpiryDate(RestoreExpiryDateT &&value)
RestoreStatus & WithRestoreExpiryDate(RestoreExpiryDateT &&value)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3CRT_API RestoreStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetRestoreExpiryDate() const
AWS_S3CRT_API RestoreStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetIsRestoreInProgress(bool value)