AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DLM {
20namespace Model {
21
31 public:
32 AWS_DLM_API CrossRegionCopyRetainRule() = default;
36
38
42 inline int GetInterval() const { return m_interval; }
43 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
44 inline void SetInterval(int value) {
45 m_intervalHasBeenSet = true;
46 m_interval = value;
47 }
49 SetInterval(value);
50 return *this;
51 }
53
55
60 inline RetentionIntervalUnitValues GetIntervalUnit() const { return m_intervalUnit; }
61 inline bool IntervalUnitHasBeenSet() const { return m_intervalUnitHasBeenSet; }
63 m_intervalUnitHasBeenSet = true;
64 m_intervalUnit = value;
65 }
67 SetIntervalUnit(value);
68 return *this;
69 }
71 private:
72 int m_interval{0};
73
75 bool m_intervalHasBeenSet = false;
76 bool m_intervalUnitHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace DLM
81} // 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