AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LifecycleExpiration.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
35 {
36 public:
37 AWS_S3CRT_API LifecycleExpiration();
38 AWS_S3CRT_API LifecycleExpiration(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42
43
45
49 inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
50 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
51 inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
52 inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
53 inline LifecycleExpiration& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
54 inline LifecycleExpiration& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
56
58
62 inline int GetDays() const{ return m_days; }
63 inline bool DaysHasBeenSet() const { return m_daysHasBeenSet; }
64 inline void SetDays(int value) { m_daysHasBeenSet = true; m_days = value; }
65 inline LifecycleExpiration& WithDays(int value) { SetDays(value); return *this;}
67
69
75 inline bool GetExpiredObjectDeleteMarker() const{ return m_expiredObjectDeleteMarker; }
76 inline bool ExpiredObjectDeleteMarkerHasBeenSet() const { return m_expiredObjectDeleteMarkerHasBeenSet; }
77 inline void SetExpiredObjectDeleteMarker(bool value) { m_expiredObjectDeleteMarkerHasBeenSet = true; m_expiredObjectDeleteMarker = value; }
80 private:
81
83 bool m_dateHasBeenSet = false;
84
85 int m_days;
86 bool m_daysHasBeenSet = false;
87
88 bool m_expiredObjectDeleteMarker;
89 bool m_expiredObjectDeleteMarkerHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace S3Crt
94} // namespace Aws
LifecycleExpiration & WithDate(Aws::Utils::DateTime &&value)
LifecycleExpiration & WithExpiredObjectDeleteMarker(bool value)
const Aws::Utils::DateTime & GetDate() const
void SetDate(const Aws::Utils::DateTime &value)
AWS_S3CRT_API LifecycleExpiration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CRT_API LifecycleExpiration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
LifecycleExpiration & WithDate(const Aws::Utils::DateTime &value)
LifecycleExpiration & WithDays(int value)
void SetDate(Aws::Utils::DateTime &&value)