AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
S3SetObjectRetentionOperation.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/model/S3Retention.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
38 {
39 public:
40 AWS_S3CONTROL_API S3SetObjectRetentionOperation() = default;
43
44 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45
46
48
52 inline bool GetBypassGovernanceRetention() const { return m_bypassGovernanceRetention; }
53 inline bool BypassGovernanceRetentionHasBeenSet() const { return m_bypassGovernanceRetentionHasBeenSet; }
54 inline void SetBypassGovernanceRetention(bool value) { m_bypassGovernanceRetentionHasBeenSet = true; m_bypassGovernanceRetention = value; }
57
59
66 inline const S3Retention& GetRetention() const { return m_retention; }
67 inline bool RetentionHasBeenSet() const { return m_retentionHasBeenSet; }
68 template<typename RetentionT = S3Retention>
69 void SetRetention(RetentionT&& value) { m_retentionHasBeenSet = true; m_retention = std::forward<RetentionT>(value); }
70 template<typename RetentionT = S3Retention>
71 S3SetObjectRetentionOperation& WithRetention(RetentionT&& value) { SetRetention(std::forward<RetentionT>(value)); return *this;}
73 private:
74
75 bool m_bypassGovernanceRetention{false};
76 bool m_bypassGovernanceRetentionHasBeenSet = false;
77
78 S3Retention m_retention;
79 bool m_retentionHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace S3Control
84} // namespace Aws
S3SetObjectRetentionOperation & WithRetention(RetentionT &&value)
AWS_S3CONTROL_API S3SetObjectRetentionOperation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API S3SetObjectRetentionOperation(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API S3SetObjectRetentionOperation()=default
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
S3SetObjectRetentionOperation & WithBypassGovernanceRetention(bool value)