7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/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;
AWS_S3_API DefaultRetention()=default
DefaultRetention & WithDays(int value)
void SetMode(ObjectLockRetentionMode value)
bool YearsHasBeenSet() const
AWS_S3_API DefaultRetention(const Aws::Utils::Xml::XmlNode &xmlNode)
bool DaysHasBeenSet() const
ObjectLockRetentionMode GetMode() const
AWS_S3_API DefaultRetention & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DefaultRetention & WithYears(int value)
bool ModeHasBeenSet() const
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
DefaultRetention & WithMode(ObjectLockRetentionMode value)