AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LifecycleExpiration.h
1
6#pragma once
7#include <aws/s3/S3_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 S3
21{
22namespace Model
23{
24
35 {
36 public:
37 AWS_S3_API LifecycleExpiration() = default;
40
41 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42
43
45
51 inline const Aws::Utils::DateTime& GetDate() const { return m_date; }
52 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
53 template<typename DateT = Aws::Utils::DateTime>
54 void SetDate(DateT&& value) { m_dateHasBeenSet = true; m_date = std::forward<DateT>(value); }
55 template<typename DateT = Aws::Utils::DateTime>
56 LifecycleExpiration& WithDate(DateT&& value) { SetDate(std::forward<DateT>(value)); return *this;}
58
60
64 inline int GetDays() const { return m_days; }
65 inline bool DaysHasBeenSet() const { return m_daysHasBeenSet; }
66 inline void SetDays(int value) { m_daysHasBeenSet = true; m_days = value; }
67 inline LifecycleExpiration& WithDays(int value) { SetDays(value); return *this;}
69
71
79 inline bool GetExpiredObjectDeleteMarker() const { return m_expiredObjectDeleteMarker; }
80 inline bool ExpiredObjectDeleteMarkerHasBeenSet() const { return m_expiredObjectDeleteMarkerHasBeenSet; }
81 inline void SetExpiredObjectDeleteMarker(bool value) { m_expiredObjectDeleteMarkerHasBeenSet = true; m_expiredObjectDeleteMarker = value; }
84 private:
85
86 Aws::Utils::DateTime m_date{};
87 bool m_dateHasBeenSet = false;
88
89 int m_days{0};
90 bool m_daysHasBeenSet = false;
91
92 bool m_expiredObjectDeleteMarker{false};
93 bool m_expiredObjectDeleteMarkerHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace S3
98} // namespace Aws
const Aws::Utils::DateTime & GetDate() const
AWS_S3_API LifecycleExpiration()=default
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
LifecycleExpiration & WithExpiredObjectDeleteMarker(bool value)
AWS_S3_API LifecycleExpiration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API LifecycleExpiration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LifecycleExpiration & WithDate(DateT &&value)
LifecycleExpiration & WithDays(int value)