AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RetentionPeriod.h
1
6#pragma once
7#include <aws/rbin/RecycleBin_EXPORTS.h>
8#include <aws/rbin/model/RetentionPeriodUnit.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 RecycleBin
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_RECYCLEBIN_API RetentionPeriod() = default;
36 AWS_RECYCLEBIN_API RetentionPeriod(Aws::Utils::Json::JsonView jsonValue);
38 AWS_RECYCLEBIN_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline int GetRetentionPeriodValue() const { return m_retentionPeriodValue; }
47 inline bool RetentionPeriodValueHasBeenSet() const { return m_retentionPeriodValueHasBeenSet; }
48 inline void SetRetentionPeriodValue(int value) { m_retentionPeriodValueHasBeenSet = true; m_retentionPeriodValue = value; }
49 inline RetentionPeriod& WithRetentionPeriodValue(int value) { SetRetentionPeriodValue(value); return *this;}
51
53
57 inline RetentionPeriodUnit GetRetentionPeriodUnit() const { return m_retentionPeriodUnit; }
58 inline bool RetentionPeriodUnitHasBeenSet() const { return m_retentionPeriodUnitHasBeenSet; }
59 inline void SetRetentionPeriodUnit(RetentionPeriodUnit value) { m_retentionPeriodUnitHasBeenSet = true; m_retentionPeriodUnit = value; }
62 private:
63
64 int m_retentionPeriodValue{0};
65 bool m_retentionPeriodValueHasBeenSet = false;
66
68 bool m_retentionPeriodUnitHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace RecycleBin
73} // namespace Aws
AWS_RECYCLEBIN_API RetentionPeriod(Aws::Utils::Json::JsonView jsonValue)
AWS_RECYCLEBIN_API Aws::Utils::Json::JsonValue Jsonize() const
RetentionPeriod & WithRetentionPeriodUnit(RetentionPeriodUnit value)
AWS_RECYCLEBIN_API RetentionPeriod()=default
void SetRetentionPeriodUnit(RetentionPeriodUnit value)
RetentionPeriod & WithRetentionPeriodValue(int value)
AWS_RECYCLEBIN_API RetentionPeriod & operator=(Aws::Utils::Json::JsonView jsonValue)
RetentionPeriodUnit GetRetentionPeriodUnit() const
Aws::Utils::Json::JsonValue JsonValue