AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PITPolicyRule.h
1
6#pragma once
7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/drs/model/PITPolicyRuleUnits.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace drs
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_DRS_API PITPolicyRule() = default;
39
40
42
45 inline bool GetEnabled() const { return m_enabled; }
46 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
47 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
48 inline PITPolicyRule& WithEnabled(bool value) { SetEnabled(value); return *this;}
50
52
55 inline int GetInterval() const { return m_interval; }
56 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
57 inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
58 inline PITPolicyRule& WithInterval(int value) { SetInterval(value); return *this;}
60
62
65 inline int GetRetentionDuration() const { return m_retentionDuration; }
66 inline bool RetentionDurationHasBeenSet() const { return m_retentionDurationHasBeenSet; }
67 inline void SetRetentionDuration(int value) { m_retentionDurationHasBeenSet = true; m_retentionDuration = value; }
68 inline PITPolicyRule& WithRetentionDuration(int value) { SetRetentionDuration(value); return *this;}
70
72
75 inline long long GetRuleID() const { return m_ruleID; }
76 inline bool RuleIDHasBeenSet() const { return m_ruleIDHasBeenSet; }
77 inline void SetRuleID(long long value) { m_ruleIDHasBeenSet = true; m_ruleID = value; }
78 inline PITPolicyRule& WithRuleID(long long value) { SetRuleID(value); return *this;}
80
82
85 inline PITPolicyRuleUnits GetUnits() const { return m_units; }
86 inline bool UnitsHasBeenSet() const { return m_unitsHasBeenSet; }
87 inline void SetUnits(PITPolicyRuleUnits value) { m_unitsHasBeenSet = true; m_units = value; }
88 inline PITPolicyRule& WithUnits(PITPolicyRuleUnits value) { SetUnits(value); return *this;}
90 private:
91
92 bool m_enabled{false};
93 bool m_enabledHasBeenSet = false;
94
95 int m_interval{0};
96 bool m_intervalHasBeenSet = false;
97
98 int m_retentionDuration{0};
99 bool m_retentionDurationHasBeenSet = false;
100
101 long long m_ruleID{0};
102 bool m_ruleIDHasBeenSet = false;
103
105 bool m_unitsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace drs
110} // namespace Aws
AWS_DRS_API PITPolicyRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRetentionDuration(int value)
PITPolicyRule & WithRuleID(long long value)
void SetUnits(PITPolicyRuleUnits 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)
PITPolicyRule & WithRetentionDuration(int value)
AWS_DRS_API PITPolicyRule(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue