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