AWS SDK for C++  1.8.154
AWS SDK for C++
S3Retention.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace S3Control
22 {
23 namespace Model
24 {
25 
38  {
39  public:
43 
44  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45 
46 
51  inline const Aws::Utils::DateTime& GetRetainUntilDate() const{ return m_retainUntilDate; }
52 
57  inline bool RetainUntilDateHasBeenSet() const { return m_retainUntilDateHasBeenSet; }
58 
63  inline void SetRetainUntilDate(const Aws::Utils::DateTime& value) { m_retainUntilDateHasBeenSet = true; m_retainUntilDate = value; }
64 
69  inline void SetRetainUntilDate(Aws::Utils::DateTime&& value) { m_retainUntilDateHasBeenSet = true; m_retainUntilDate = std::move(value); }
70 
75  inline S3Retention& WithRetainUntilDate(const Aws::Utils::DateTime& value) { SetRetainUntilDate(value); return *this;}
76 
81  inline S3Retention& WithRetainUntilDate(Aws::Utils::DateTime&& value) { SetRetainUntilDate(std::move(value)); return *this;}
82 
83 
88  inline const S3ObjectLockRetentionMode& GetMode() const{ return m_mode; }
89 
94  inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
95 
100  inline void SetMode(const S3ObjectLockRetentionMode& value) { m_modeHasBeenSet = true; m_mode = value; }
101 
106  inline void SetMode(S3ObjectLockRetentionMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
107 
112  inline S3Retention& WithMode(const S3ObjectLockRetentionMode& value) { SetMode(value); return *this;}
113 
118  inline S3Retention& WithMode(S3ObjectLockRetentionMode&& value) { SetMode(std::move(value)); return *this;}
119 
120  private:
121 
122  Aws::Utils::DateTime m_retainUntilDate;
123  bool m_retainUntilDateHasBeenSet;
124 
126  bool m_modeHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace S3Control
131 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::S3Control::Model::S3Retention::GetMode
const S3ObjectLockRetentionMode & GetMode() const
Definition: S3Retention.h:88
Aws::S3Control::Model::S3ObjectLockRetentionMode
S3ObjectLockRetentionMode
Definition: S3ObjectLockRetentionMode.h:17
Aws::S3Control::Model::S3Retention::S3Retention
S3Retention(const Aws::Utils::Xml::XmlNode &xmlNode)
DateTime.h
Aws::S3Control::Model::S3Retention::GetRetainUntilDate
const Aws::Utils::DateTime & GetRetainUntilDate() const
Definition: S3Retention.h:51
Aws::S3Control::Model::S3Retention::WithRetainUntilDate
S3Retention & WithRetainUntilDate(Aws::Utils::DateTime &&value)
Definition: S3Retention.h:81
S3Control_EXPORTS.h
Aws::S3Control::Model::S3Retention::S3Retention
S3Retention()
Aws::S3Control::Model::S3Retention::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::S3Retention::RetainUntilDateHasBeenSet
bool RetainUntilDateHasBeenSet() const
Definition: S3Retention.h:57
Aws::S3Control::Model::S3Retention::ModeHasBeenSet
bool ModeHasBeenSet() const
Definition: S3Retention.h:94
Aws::S3Control::Model::S3Retention::SetMode
void SetMode(const S3ObjectLockRetentionMode &value)
Definition: S3Retention.h:100
S3ObjectLockRetentionMode.h
Aws::S3Control::Model::S3Retention::WithMode
S3Retention & WithMode(S3ObjectLockRetentionMode &&value)
Definition: S3Retention.h:118
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::S3Retention::SetRetainUntilDate
void SetRetainUntilDate(Aws::Utils::DateTime &&value)
Definition: S3Retention.h:69
Aws::S3Control::Model::S3Retention::SetRetainUntilDate
void SetRetainUntilDate(const Aws::Utils::DateTime &value)
Definition: S3Retention.h:63
Aws::S3Control::Model::S3Retention
Definition: S3Retention.h:38
Aws::S3Control::Model::S3Retention::WithMode
S3Retention & WithMode(const S3ObjectLockRetentionMode &value)
Definition: S3Retention.h:112
Aws::S3Control::Model::S3Retention::operator=
S3Retention & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::S3Retention::WithRetainUntilDate
S3Retention & WithRetainUntilDate(const Aws::Utils::DateTime &value)
Definition: S3Retention.h:75
Aws::S3Control::Model::S3Retention::SetMode
void SetMode(S3ObjectLockRetentionMode &&value)
Definition: S3Retention.h:106