AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RetentionArchiveTier.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
41 {
42 public:
43 AWS_DLM_API RetentionArchiveTier();
47
48
50
57 inline int GetCount() const{ return m_count; }
58 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
59 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
60 inline RetentionArchiveTier& WithCount(int value) { SetCount(value); return *this;}
62
64
68 inline int GetInterval() const{ return m_interval; }
69 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
70 inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
71 inline RetentionArchiveTier& WithInterval(int value) { SetInterval(value); return *this;}
73
75
80 inline const RetentionIntervalUnitValues& GetIntervalUnit() const{ return m_intervalUnit; }
81 inline bool IntervalUnitHasBeenSet() const { return m_intervalUnitHasBeenSet; }
82 inline void SetIntervalUnit(const RetentionIntervalUnitValues& value) { m_intervalUnitHasBeenSet = true; m_intervalUnit = value; }
83 inline void SetIntervalUnit(RetentionIntervalUnitValues&& value) { m_intervalUnitHasBeenSet = true; m_intervalUnit = std::move(value); }
85 inline RetentionArchiveTier& WithIntervalUnit(RetentionIntervalUnitValues&& value) { SetIntervalUnit(std::move(value)); return *this;}
87 private:
88
89 int m_count;
90 bool m_countHasBeenSet = false;
91
92 int m_interval;
93 bool m_intervalHasBeenSet = false;
94
95 RetentionIntervalUnitValues m_intervalUnit;
96 bool m_intervalUnitHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace DLM
101} // namespace Aws
RetentionArchiveTier & WithInterval(int value)
RetentionArchiveTier & WithCount(int value)
void SetIntervalUnit(const RetentionIntervalUnitValues &value)
RetentionArchiveTier & WithIntervalUnit(const RetentionIntervalUnitValues &value)
AWS_DLM_API RetentionArchiveTier(Aws::Utils::Json::JsonView jsonValue)
void SetIntervalUnit(RetentionIntervalUnitValues &&value)
AWS_DLM_API RetentionArchiveTier & operator=(Aws::Utils::Json::JsonView jsonValue)
RetentionArchiveTier & WithIntervalUnit(RetentionIntervalUnitValues &&value)
const RetentionIntervalUnitValues & GetIntervalUnit() const
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue