AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace RecycleBin {
20namespace Model {
21
29 public:
30 AWS_RECYCLEBIN_API RetentionPeriod() = default;
31 AWS_RECYCLEBIN_API RetentionPeriod(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RECYCLEBIN_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
42 inline int GetRetentionPeriodValue() const { return m_retentionPeriodValue; }
43 inline bool RetentionPeriodValueHasBeenSet() const { return m_retentionPeriodValueHasBeenSet; }
44 inline void SetRetentionPeriodValue(int value) {
45 m_retentionPeriodValueHasBeenSet = true;
46 m_retentionPeriodValue = value;
47 }
50 return *this;
51 }
53
55
59 inline RetentionPeriodUnit GetRetentionPeriodUnit() const { return m_retentionPeriodUnit; }
60 inline bool RetentionPeriodUnitHasBeenSet() const { return m_retentionPeriodUnitHasBeenSet; }
62 m_retentionPeriodUnitHasBeenSet = true;
63 m_retentionPeriodUnit = value;
64 }
67 return *this;
68 }
70 private:
71 int m_retentionPeriodValue{0};
72
74 bool m_retentionPeriodValueHasBeenSet = false;
75 bool m_retentionPeriodUnitHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace RecycleBin
80} // 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