AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LifecycleExpiration.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/s3/S3_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Xml {
15class XmlNode;
16} // namespace Xml
17} // namespace Utils
18namespace S3 {
19namespace Model {
20
31 public:
32 AWS_S3_API LifecycleExpiration() = default;
35
36 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
37
39
45 inline const Aws::Utils::DateTime& GetDate() const { return m_date; }
46 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
47 template <typename DateT = Aws::Utils::DateTime>
48 void SetDate(DateT&& value) {
49 m_dateHasBeenSet = true;
50 m_date = std::forward<DateT>(value);
51 }
52 template <typename DateT = Aws::Utils::DateTime>
53 LifecycleExpiration& WithDate(DateT&& value) {
54 SetDate(std::forward<DateT>(value));
55 return *this;
56 }
58
60
64 inline int GetDays() const { return m_days; }
65 inline bool DaysHasBeenSet() const { return m_daysHasBeenSet; }
66 inline void SetDays(int value) {
67 m_daysHasBeenSet = true;
68 m_days = value;
69 }
70 inline LifecycleExpiration& WithDays(int value) {
71 SetDays(value);
72 return *this;
73 }
75
77
85 inline bool GetExpiredObjectDeleteMarker() const { return m_expiredObjectDeleteMarker; }
86 inline bool ExpiredObjectDeleteMarkerHasBeenSet() const { return m_expiredObjectDeleteMarkerHasBeenSet; }
87 inline void SetExpiredObjectDeleteMarker(bool value) {
88 m_expiredObjectDeleteMarkerHasBeenSet = true;
89 m_expiredObjectDeleteMarker = value;
90 }
93 return *this;
94 }
96 private:
97 Aws::Utils::DateTime m_date{};
98
99 int m_days{0};
100
101 bool m_expiredObjectDeleteMarker{false};
102 bool m_dateHasBeenSet = false;
103 bool m_daysHasBeenSet = false;
104 bool m_expiredObjectDeleteMarkerHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace S3
109} // 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)