AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CrossRegionCopyDeprecateRule.h
1
6#pragma once
7#include <aws/dlm/DLM_EXPORTS.h>
8#include <aws/dlm/model/RetentionIntervalUnitValues.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 DLM
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_DLM_API CrossRegionCopyDeprecateRule() = default;
39
40
42
48 inline int GetInterval() const { return m_interval; }
49 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
50 inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
51 inline CrossRegionCopyDeprecateRule& WithInterval(int value) { SetInterval(value); return *this;}
53
55
60 inline RetentionIntervalUnitValues GetIntervalUnit() const { return m_intervalUnit; }
61 inline bool IntervalUnitHasBeenSet() const { return m_intervalUnitHasBeenSet; }
62 inline void SetIntervalUnit(RetentionIntervalUnitValues value) { m_intervalUnitHasBeenSet = true; m_intervalUnit = value; }
65 private:
66
67 int m_interval{0};
68 bool m_intervalHasBeenSet = false;
69
71 bool m_intervalUnitHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace DLM
76} // namespace Aws
AWS_DLM_API CrossRegionCopyDeprecateRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DLM_API CrossRegionCopyDeprecateRule(Aws::Utils::Json::JsonView jsonValue)
CrossRegionCopyDeprecateRule & WithIntervalUnit(RetentionIntervalUnitValues value)
void SetIntervalUnit(RetentionIntervalUnitValues value)
CrossRegionCopyDeprecateRule & WithInterval(int value)
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DLM_API CrossRegionCopyDeprecateRule()=default
Aws::Utils::Json::JsonValue JsonValue