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