7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/model/ObjectLockEnabled.h>
9#include <aws/s3-crt/model/ObjectLockRule.h>
45 m_objectLockEnabledHasBeenSet =
true;
46 m_objectLockEnabled = value;
64 template <
typename RuleT = ObjectLockRule>
66 m_ruleHasBeenSet =
true;
67 m_rule = std::forward<RuleT>(value);
69 template <
typename RuleT = ObjectLockRule>
71 SetRule(std::forward<RuleT>(value));
77 bool m_objectLockEnabledHasBeenSet =
false;
79 ObjectLockRule m_rule;
80 bool m_ruleHasBeenSet =
false;
ObjectLockEnabled GetObjectLockEnabled() const
AWS_S3CRT_API ObjectLockConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CRT_API ObjectLockConfiguration()=default
ObjectLockConfiguration & WithRule(RuleT &&value)
void SetRule(RuleT &&value)
void SetObjectLockEnabled(ObjectLockEnabled value)
ObjectLockConfiguration & WithObjectLockEnabled(ObjectLockEnabled value)
bool ObjectLockEnabledHasBeenSet() const
AWS_S3CRT_API ObjectLockConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const ObjectLockRule & GetRule() const
bool RuleHasBeenSet() const
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const