AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRetention(const S3Retention& value) { m_retentionHasBeenSet = true; m_retention = value; }
69 inline void SetRetention(S3Retention&& value) { m_retentionHasBeenSet = true; m_retention = std::move(value); }
70 inline S3SetObjectRetentionOperation& WithRetention(const S3Retention& value) { SetRetention(value); return *this;}
71 inline S3SetObjectRetentionOperation& WithRetention(S3Retention&& value) { SetRetention(std::move(value)); return *this;}
73 private:
74
75 bool m_bypassGovernanceRetention;
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(const S3Retention &value)
AWS_S3CONTROL_API S3SetObjectRetentionOperation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
S3SetObjectRetentionOperation & WithRetention(S3Retention &&value)
AWS_S3CONTROL_API S3SetObjectRetentionOperation(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
S3SetObjectRetentionOperation & WithBypassGovernanceRetention(bool value)