AWS SDK for C++  1.8.157
AWS SDK for C++
S3SetObjectRetentionOperation.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 
36  {
37  public:
41 
42  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43 
44 
49  inline bool GetBypassGovernanceRetention() const{ return m_bypassGovernanceRetention; }
50 
55  inline bool BypassGovernanceRetentionHasBeenSet() const { return m_bypassGovernanceRetentionHasBeenSet; }
56 
61  inline void SetBypassGovernanceRetention(bool value) { m_bypassGovernanceRetentionHasBeenSet = true; m_bypassGovernanceRetention = value; }
62 
67  inline S3SetObjectRetentionOperation& WithBypassGovernanceRetention(bool value) { SetBypassGovernanceRetention(value); return *this;}
68 
69 
77  inline const S3Retention& GetRetention() const{ return m_retention; }
78 
86  inline bool RetentionHasBeenSet() const { return m_retentionHasBeenSet; }
87 
95  inline void SetRetention(const S3Retention& value) { m_retentionHasBeenSet = true; m_retention = value; }
96 
104  inline void SetRetention(S3Retention&& value) { m_retentionHasBeenSet = true; m_retention = std::move(value); }
105 
113  inline S3SetObjectRetentionOperation& WithRetention(const S3Retention& value) { SetRetention(value); return *this;}
114 
122  inline S3SetObjectRetentionOperation& WithRetention(S3Retention&& value) { SetRetention(std::move(value)); return *this;}
123 
124  private:
125 
126  bool m_bypassGovernanceRetention;
127  bool m_bypassGovernanceRetentionHasBeenSet;
128 
129  S3Retention m_retention;
130  bool m_retentionHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace S3Control
135 } // namespace Aws
Aws::S3Control::Model::S3SetObjectRetentionOperation::WithBypassGovernanceRetention
S3SetObjectRetentionOperation & WithBypassGovernanceRetention(bool value)
Definition: S3SetObjectRetentionOperation.h:67
Aws::S3Control::Model::S3SetObjectRetentionOperation::GetRetention
const S3Retention & GetRetention() const
Definition: S3SetObjectRetentionOperation.h:77
Aws::S3Control::Model::S3SetObjectRetentionOperation::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::S3Control::Model::S3SetObjectRetentionOperation::WithRetention
S3SetObjectRetentionOperation & WithRetention(const S3Retention &value)
Definition: S3SetObjectRetentionOperation.h:113
Aws::S3Control::Model::S3SetObjectRetentionOperation::SetRetention
void SetRetention(S3Retention &&value)
Definition: S3SetObjectRetentionOperation.h:104
Aws::S3Control::Model::S3SetObjectRetentionOperation::S3SetObjectRetentionOperation
S3SetObjectRetentionOperation(const Aws::Utils::Xml::XmlNode &xmlNode)
S3Control_EXPORTS.h
S3Retention.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3Control::Model::S3SetObjectRetentionOperation::SetBypassGovernanceRetention
void SetBypassGovernanceRetention(bool value)
Definition: S3SetObjectRetentionOperation.h:61
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::S3SetObjectRetentionOperation::operator=
S3SetObjectRetentionOperation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::S3SetObjectRetentionOperation::RetentionHasBeenSet
bool RetentionHasBeenSet() const
Definition: S3SetObjectRetentionOperation.h:86
Aws::S3Control::Model::S3SetObjectRetentionOperation
Definition: S3SetObjectRetentionOperation.h:36
Aws::S3Control::Model::S3SetObjectRetentionOperation::WithRetention
S3SetObjectRetentionOperation & WithRetention(S3Retention &&value)
Definition: S3SetObjectRetentionOperation.h:122
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::S3Retention
Definition: S3Retention.h:38
Aws::S3Control::Model::S3SetObjectRetentionOperation::BypassGovernanceRetentionHasBeenSet
bool BypassGovernanceRetentionHasBeenSet() const
Definition: S3SetObjectRetentionOperation.h:55
Aws::S3Control::Model::S3SetObjectRetentionOperation::SetRetention
void SetRetention(const S3Retention &value)
Definition: S3SetObjectRetentionOperation.h:95
Aws::S3Control::Model::S3SetObjectRetentionOperation::S3SetObjectRetentionOperation
S3SetObjectRetentionOperation()
Aws::S3Control::Model::S3SetObjectRetentionOperation::GetBypassGovernanceRetention
bool GetBypassGovernanceRetention() const
Definition: S3SetObjectRetentionOperation.h:49