AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Xml {
15class XmlNode;
16} // namespace Xml
17} // namespace Utils
18namespace S3Control {
19namespace Model {
20
34 public:
35 AWS_S3CONTROL_API S3SetObjectRetentionOperation() = default;
38
39 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
42
46 inline bool GetBypassGovernanceRetention() const { return m_bypassGovernanceRetention; }
47 inline bool BypassGovernanceRetentionHasBeenSet() const { return m_bypassGovernanceRetentionHasBeenSet; }
48 inline void SetBypassGovernanceRetention(bool value) {
49 m_bypassGovernanceRetentionHasBeenSet = true;
50 m_bypassGovernanceRetention = value;
51 }
54 return *this;
55 }
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) {
70 m_retentionHasBeenSet = true;
71 m_retention = std::forward<RetentionT>(value);
72 }
73 template <typename RetentionT = S3Retention>
75 SetRetention(std::forward<RetentionT>(value));
76 return *this;
77 }
79 private:
80 bool m_bypassGovernanceRetention{false};
81
82 S3Retention m_retention;
83 bool m_bypassGovernanceRetentionHasBeenSet = false;
84 bool m_retentionHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace S3Control
89} // 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)