93 inline int GetDays()
const{
return m_days; }
105 inline void SetDays(
int value) { m_daysHasBeenSet =
true; m_days = value; }
130 inline void SetYears(
int value) { m_yearsHasBeenSet =
true; m_years = value; }
141 bool m_modeHasBeenSet =
false;
144 bool m_daysHasBeenSet =
false;
147 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