AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const PITPolicyRuleUnits& GetUnits() const{ return m_units; }
86 inline bool UnitsHasBeenSet() const { return m_unitsHasBeenSet; }
87 inline void SetUnits(const PITPolicyRuleUnits& value) { m_unitsHasBeenSet = true; m_units = value; }
88 inline void SetUnits(PITPolicyRuleUnits&& value) { m_unitsHasBeenSet = true; m_units = std::move(value); }
89 inline PITPolicyRule& WithUnits(const PITPolicyRuleUnits& value) { SetUnits(value); return *this;}
90 inline PITPolicyRule& WithUnits(PITPolicyRuleUnits&& value) { SetUnits(std::move(value)); return *this;}
92 private:
93
94 bool m_enabled;
95 bool m_enabledHasBeenSet = false;
96
97 int m_interval;
98 bool m_intervalHasBeenSet = false;
99
100 int m_retentionDuration;
101 bool m_retentionDurationHasBeenSet = false;
102
103 long long m_ruleID;
104 bool m_ruleIDHasBeenSet = false;
105
106 PITPolicyRuleUnits m_units;
107 bool m_unitsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace drs
112} // namespace Aws
AWS_DRS_API PITPolicyRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUnits(const PITPolicyRuleUnits &value)
void SetRetentionDuration(int value)
PITPolicyRule & WithUnits(const PITPolicyRuleUnits &value)
void SetUnits(PITPolicyRuleUnits &&value)
PITPolicyRule & WithRuleID(long long value)
const PITPolicyRuleUnits & GetUnits() const
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