7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/drs/model/PITPolicyRuleUnits.h>
47 inline void SetEnabled(
bool value) { m_enabledHasBeenSet =
true; m_enabled = value; }
57 inline void SetInterval(
int value) { m_intervalHasBeenSet =
true; m_interval = value; }
67 inline void SetRetentionDuration(
int value) { m_retentionDurationHasBeenSet =
true; m_retentionDuration = value; }
75 inline long long GetRuleID()
const {
return m_ruleID; }
77 inline void SetRuleID(
long long value) { m_ruleIDHasBeenSet =
true; m_ruleID = value; }
92 bool m_enabled{
false};
93 bool m_enabledHasBeenSet =
false;
96 bool m_intervalHasBeenSet =
false;
98 int m_retentionDuration{0};
99 bool m_retentionDurationHasBeenSet =
false;
101 long long m_ruleID{0};
102 bool m_ruleIDHasBeenSet =
false;
105 bool m_unitsHasBeenSet =
false;
AWS_DRS_API PITPolicyRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRetentionDuration(int value)
long long GetRuleID() const
PITPolicyRule & WithRuleID(long long value)
bool UnitsHasBeenSet() const
int GetRetentionDuration() const
void SetUnits(PITPolicyRuleUnits value)
void SetInterval(int value)
PITPolicyRuleUnits GetUnits() const
AWS_DRS_API PITPolicyRule()=default
void SetRuleID(long long value)
PITPolicyRule & WithEnabled(bool value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
PITPolicyRule & WithInterval(int value)
PITPolicyRule & WithUnits(PITPolicyRuleUnits value)
bool RetentionDurationHasBeenSet() const
PITPolicyRule & WithRetentionDuration(int value)
bool EnabledHasBeenSet() const
bool RuleIDHasBeenSet() const
void SetEnabled(bool value)
AWS_DRS_API PITPolicyRule(Aws::Utils::Json::JsonView jsonValue)
bool IntervalHasBeenSet() const
Aws::Utils::Json::JsonValue JsonValue