AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CrossRegionCopyRetainRule.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
35 {
36 public:
37 AWS_DLM_API CrossRegionCopyRetainRule() = default;
41
42
44
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 CrossRegionCopyRetainRule& 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 Aws::Utils::Json::JsonValue Jsonize() const
void SetIntervalUnit(RetentionIntervalUnitValues value)
CrossRegionCopyRetainRule & WithInterval(int value)
CrossRegionCopyRetainRule & WithIntervalUnit(RetentionIntervalUnitValues value)
AWS_DLM_API CrossRegionCopyRetainRule()=default
AWS_DLM_API CrossRegionCopyRetainRule(Aws::Utils::Json::JsonView jsonValue)
RetentionIntervalUnitValues GetIntervalUnit() const
AWS_DLM_API CrossRegionCopyRetainRule & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue