7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/model/ObjectLockRetentionMode.h>
65 inline int GetDays()
const{
return m_days; }
67 inline void SetDays(
int value) { m_daysHasBeenSet =
true; m_days = value; }
78 inline void SetYears(
int value) { m_yearsHasBeenSet =
true; m_years = value; }
84 bool m_modeHasBeenSet =
false;
87 bool m_daysHasBeenSet =
false;
90 bool m_yearsHasBeenSet =
false;
DefaultRetention & WithYears(int value)
bool YearsHasBeenSet() const
DefaultRetention & WithMode(const ObjectLockRetentionMode &value)
DefaultRetention & WithMode(ObjectLockRetentionMode &&value)
bool ModeHasBeenSet() const
AWS_S3CRT_API DefaultRetention(const Aws::Utils::Xml::XmlNode &xmlNode)
DefaultRetention & WithDays(int value)
AWS_S3CRT_API DefaultRetention()
void SetMode(const ObjectLockRetentionMode &value)
const ObjectLockRetentionMode & GetMode() const
AWS_S3CRT_API DefaultRetention & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool DaysHasBeenSet() const
void SetMode(ObjectLockRetentionMode &&value)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const