AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LifecycleExpiration.h
1
6#pragma once
7#include <aws/s3control/S3Control_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 S3Control
21{
22namespace Model
23{
24
32 {
33 public:
34 AWS_S3CONTROL_API LifecycleExpiration() = default;
35 AWS_S3CONTROL_API LifecycleExpiration(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_S3CONTROL_API LifecycleExpiration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
46 inline const Aws::Utils::DateTime& GetDate() const { return m_date; }
47 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
48 template<typename DateT = Aws::Utils::DateTime>
49 void SetDate(DateT&& value) { m_dateHasBeenSet = true; m_date = std::forward<DateT>(value); }
50 template<typename DateT = Aws::Utils::DateTime>
51 LifecycleExpiration& WithDate(DateT&& value) { SetDate(std::forward<DateT>(value)); return *this;}
53
55
59 inline int GetDays() const { return m_days; }
60 inline bool DaysHasBeenSet() const { return m_daysHasBeenSet; }
61 inline void SetDays(int value) { m_daysHasBeenSet = true; m_days = value; }
62 inline LifecycleExpiration& WithDays(int value) { SetDays(value); return *this;}
64
66
74 inline bool GetExpiredObjectDeleteMarker() const { return m_expiredObjectDeleteMarker; }
75 inline bool ExpiredObjectDeleteMarkerHasBeenSet() const { return m_expiredObjectDeleteMarkerHasBeenSet; }
76 inline void SetExpiredObjectDeleteMarker(bool value) { m_expiredObjectDeleteMarkerHasBeenSet = true; m_expiredObjectDeleteMarker = value; }
79 private:
80
81 Aws::Utils::DateTime m_date{};
82 bool m_dateHasBeenSet = false;
83
84 int m_days{0};
85 bool m_daysHasBeenSet = false;
86
87 bool m_expiredObjectDeleteMarker{false};
88 bool m_expiredObjectDeleteMarkerHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace S3Control
93} // namespace Aws
const Aws::Utils::DateTime & GetDate() const
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
LifecycleExpiration & WithDate(DateT &&value)
AWS_S3CONTROL_API LifecycleExpiration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API LifecycleExpiration()=default
AWS_S3CONTROL_API LifecycleExpiration(const Aws::Utils::Xml::XmlNode &xmlNode)
LifecycleExpiration & WithDays(int value)
LifecycleExpiration & WithExpiredObjectDeleteMarker(bool value)