7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/model/ObjectLockEnabled.h>
9#include <aws/s3-crt/model/ObjectLockRule.h>
64 template<
typename RuleT = ObjectLockRule>
65 void SetRule(RuleT&& value) { m_ruleHasBeenSet =
true; m_rule = std::forward<RuleT>(value); }
66 template<
typename RuleT = ObjectLockRule>
72 bool m_objectLockEnabledHasBeenSet =
false;
74 ObjectLockRule m_rule;
75 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