AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
LifecycleExpiration.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.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
32 {
33 public:
37
39
40
45 inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
46
51 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
52
57 inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
58
63 inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
64
69 inline LifecycleExpiration& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
70
75 inline LifecycleExpiration& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
76
77
82 inline int GetDays() const{ return m_days; }
83
88 inline bool DaysHasBeenSet() const { return m_daysHasBeenSet; }
89
94 inline void SetDays(int value) { m_daysHasBeenSet = true; m_days = value; }
95
100 inline LifecycleExpiration& WithDays(int value) { SetDays(value); return *this;}
101
102
109 inline bool GetExpiredObjectDeleteMarker() const{ return m_expiredObjectDeleteMarker; }
110
117 inline bool ExpiredObjectDeleteMarkerHasBeenSet() const { return m_expiredObjectDeleteMarkerHasBeenSet; }
118
125 inline void SetExpiredObjectDeleteMarker(bool value) { m_expiredObjectDeleteMarkerHasBeenSet = true; m_expiredObjectDeleteMarker = value; }
126
134
135 private:
136
138 bool m_dateHasBeenSet = false;
139
140 int m_days;
141 bool m_daysHasBeenSet = false;
142
143 bool m_expiredObjectDeleteMarker;
144 bool m_expiredObjectDeleteMarkerHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace S3
149} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
const Aws::Utils::DateTime & GetDate() const
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
LifecycleExpiration & WithExpiredObjectDeleteMarker(bool value)
LifecycleExpiration & WithDate(const Aws::Utils::DateTime &value)
LifecycleExpiration & WithDate(Aws::Utils::DateTime &&value)
AWS_S3_API LifecycleExpiration(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDate(const Aws::Utils::DateTime &value)
AWS_S3_API LifecycleExpiration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDate(Aws::Utils::DateTime &&value)
LifecycleExpiration & WithDays(int value)