7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/model/ObjectLockEnabled.h>
9#include <aws/s3/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;
AWS_S3_API ObjectLockConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ObjectLockConfiguration & WithRule(RuleT &&value)
AWS_S3_API ObjectLockConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
ObjectLockEnabled GetObjectLockEnabled() const
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
bool ObjectLockEnabledHasBeenSet() const
bool RuleHasBeenSet() const
void SetObjectLockEnabled(ObjectLockEnabled value)
const ObjectLockRule & GetRule() const
AWS_S3_API ObjectLockConfiguration()=default
ObjectLockConfiguration & WithObjectLockEnabled(ObjectLockEnabled value)
void SetRule(RuleT &&value)