AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ObjectLockConfiguration.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3
22{
23namespace Model
24{
25
33 {
34 public:
38
40
41
47 inline const ObjectLockEnabled& GetObjectLockEnabled() const{ return m_objectLockEnabled; }
48
54 inline bool ObjectLockEnabledHasBeenSet() const { return m_objectLockEnabledHasBeenSet; }
55
61 inline void SetObjectLockEnabled(const ObjectLockEnabled& value) { m_objectLockEnabledHasBeenSet = true; m_objectLockEnabled = value; }
62
68 inline void SetObjectLockEnabled(ObjectLockEnabled&& value) { m_objectLockEnabledHasBeenSet = true; m_objectLockEnabled = std::move(value); }
69
76
82 inline ObjectLockConfiguration& WithObjectLockEnabled(ObjectLockEnabled&& value) { SetObjectLockEnabled(std::move(value)); return *this;}
83
84
92 inline const ObjectLockRule& GetRule() const{ return m_rule; }
93
101 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
102
110 inline void SetRule(const ObjectLockRule& value) { m_ruleHasBeenSet = true; m_rule = value; }
111
119 inline void SetRule(ObjectLockRule&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); }
120
128 inline ObjectLockConfiguration& WithRule(const ObjectLockRule& value) { SetRule(value); return *this;}
129
137 inline ObjectLockConfiguration& WithRule(ObjectLockRule&& value) { SetRule(std::move(value)); return *this;}
138
139 private:
140
141 ObjectLockEnabled m_objectLockEnabled;
142 bool m_objectLockEnabledHasBeenSet = false;
143
144 ObjectLockRule m_rule;
145 bool m_ruleHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace S3
150} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
AWS_S3_API ObjectLockConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetObjectLockEnabled(ObjectLockEnabled &&value)
AWS_S3_API ObjectLockConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetObjectLockEnabled(const ObjectLockEnabled &value)
void SetRule(const ObjectLockRule &value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ObjectLockConfiguration & WithRule(ObjectLockRule &&value)
const ObjectLockEnabled & GetObjectLockEnabled() const
ObjectLockConfiguration & WithObjectLockEnabled(const ObjectLockEnabled &value)
ObjectLockConfiguration & WithObjectLockEnabled(ObjectLockEnabled &&value)
ObjectLockConfiguration & WithRule(const ObjectLockRule &value)