AWS SDK for C++  1.8.154
AWS SDK for C++
LifecycleExpiration.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Xml
16 {
17  class XmlNode;
18 } // namespace Xml
19 } // namespace Utils
20 namespace S3Control
21 {
22 namespace Model
23 {
24 
32  {
33  public:
37 
38  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
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 
133  inline LifecycleExpiration& WithExpiredObjectDeleteMarker(bool value) { SetExpiredObjectDeleteMarker(value); return *this;}
134 
135  private:
136 
137  Aws::Utils::DateTime m_date;
138  bool m_dateHasBeenSet;
139 
140  int m_days;
141  bool m_daysHasBeenSet;
142 
143  bool m_expiredObjectDeleteMarker;
144  bool m_expiredObjectDeleteMarkerHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace S3Control
149 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::S3Control::Model::LifecycleExpiration::WithDate
LifecycleExpiration & WithDate(const Aws::Utils::DateTime &value)
Definition: LifecycleExpiration.h:69
Aws::S3Control::Model::LifecycleExpiration
Definition: LifecycleExpiration.h:32
Aws::S3Control::Model::LifecycleExpiration::WithExpiredObjectDeleteMarker
LifecycleExpiration & WithExpiredObjectDeleteMarker(bool value)
Definition: LifecycleExpiration.h:133
Aws::S3Control::Model::LifecycleExpiration::SetExpiredObjectDeleteMarker
void SetExpiredObjectDeleteMarker(bool value)
Definition: LifecycleExpiration.h:125
Aws::S3Control::Model::LifecycleExpiration::GetDate
const Aws::Utils::DateTime & GetDate() const
Definition: LifecycleExpiration.h:45
Aws::S3Control::Model::LifecycleExpiration::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
DateTime.h
Aws::S3Control::Model::LifecycleExpiration::SetDate
void SetDate(const Aws::Utils::DateTime &value)
Definition: LifecycleExpiration.h:57
Aws::S3Control::Model::LifecycleExpiration::WithDays
LifecycleExpiration & WithDays(int value)
Definition: LifecycleExpiration.h:100
Aws::S3Control::Model::LifecycleExpiration::LifecycleExpiration
LifecycleExpiration(const Aws::Utils::Xml::XmlNode &xmlNode)
S3Control_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3Control::Model::LifecycleExpiration::GetExpiredObjectDeleteMarker
bool GetExpiredObjectDeleteMarker() const
Definition: LifecycleExpiration.h:109
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::LifecycleExpiration::DateHasBeenSet
bool DateHasBeenSet() const
Definition: LifecycleExpiration.h:51
Aws::S3Control::Model::LifecycleExpiration::operator=
LifecycleExpiration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::LifecycleExpiration::GetDays
int GetDays() const
Definition: LifecycleExpiration.h:82
Aws::S3Control::Model::LifecycleExpiration::DaysHasBeenSet
bool DaysHasBeenSet() const
Definition: LifecycleExpiration.h:88
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::LifecycleExpiration::SetDate
void SetDate(Aws::Utils::DateTime &&value)
Definition: LifecycleExpiration.h:63
Aws::S3Control::Model::LifecycleExpiration::ExpiredObjectDeleteMarkerHasBeenSet
bool ExpiredObjectDeleteMarkerHasBeenSet() const
Definition: LifecycleExpiration.h:117
Aws::S3Control::Model::LifecycleExpiration::LifecycleExpiration
LifecycleExpiration()
Aws::S3Control::Model::LifecycleExpiration::SetDays
void SetDays(int value)
Definition: LifecycleExpiration.h:94
Aws::S3Control::Model::LifecycleExpiration::WithDate
LifecycleExpiration & WithDate(Aws::Utils::DateTime &&value)
Definition: LifecycleExpiration.h:75