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/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();
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 inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
49 inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
50 inline LifecycleExpiration& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
51 inline LifecycleExpiration& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(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
72 inline bool GetExpiredObjectDeleteMarker() const{ return m_expiredObjectDeleteMarker; }
73 inline bool ExpiredObjectDeleteMarkerHasBeenSet() const { return m_expiredObjectDeleteMarkerHasBeenSet; }
74 inline void SetExpiredObjectDeleteMarker(bool value) { m_expiredObjectDeleteMarkerHasBeenSet = true; m_expiredObjectDeleteMarker = value; }
77 private:
78
80 bool m_dateHasBeenSet = false;
81
82 int m_days;
83 bool m_daysHasBeenSet = false;
84
85 bool m_expiredObjectDeleteMarker;
86 bool m_expiredObjectDeleteMarkerHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace S3Control
91} // namespace Aws
const Aws::Utils::DateTime & GetDate() const
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3CONTROL_API LifecycleExpiration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDate(const Aws::Utils::DateTime &value)
void SetDate(Aws::Utils::DateTime &&value)
AWS_S3CONTROL_API LifecycleExpiration(const Aws::Utils::Xml::XmlNode &xmlNode)
LifecycleExpiration & WithDays(int value)
LifecycleExpiration & WithExpiredObjectDeleteMarker(bool value)
LifecycleExpiration & WithDate(const Aws::Utils::DateTime &value)
LifecycleExpiration & WithDate(Aws::Utils::DateTime &&value)