AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ObjectLockConfiguration.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/model/ObjectLockEnabled.h>
9#include <aws/s3/model/ObjectLockRule.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
39 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
48 inline const ObjectLockEnabled& GetObjectLockEnabled() const{ return m_objectLockEnabled; }
49 inline bool ObjectLockEnabledHasBeenSet() const { return m_objectLockEnabledHasBeenSet; }
50 inline void SetObjectLockEnabled(const ObjectLockEnabled& value) { m_objectLockEnabledHasBeenSet = true; m_objectLockEnabled = value; }
51 inline void SetObjectLockEnabled(ObjectLockEnabled&& value) { m_objectLockEnabledHasBeenSet = true; m_objectLockEnabled = std::move(value); }
53 inline ObjectLockConfiguration& WithObjectLockEnabled(ObjectLockEnabled&& value) { SetObjectLockEnabled(std::move(value)); return *this;}
55
57
64 inline const ObjectLockRule& GetRule() const{ return m_rule; }
65 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
66 inline void SetRule(const ObjectLockRule& value) { m_ruleHasBeenSet = true; m_rule = value; }
67 inline void SetRule(ObjectLockRule&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); }
68 inline ObjectLockConfiguration& WithRule(const ObjectLockRule& value) { SetRule(value); return *this;}
69 inline ObjectLockConfiguration& WithRule(ObjectLockRule&& value) { SetRule(std::move(value)); return *this;}
71 private:
72
73 ObjectLockEnabled m_objectLockEnabled;
74 bool m_objectLockEnabledHasBeenSet = false;
75
76 ObjectLockRule m_rule;
77 bool m_ruleHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace S3
82} // namespace Aws
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)