AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const RetentionPeriodUnit& GetRetentionPeriodUnit() const{ return m_retentionPeriodUnit; }
58 inline bool RetentionPeriodUnitHasBeenSet() const { return m_retentionPeriodUnitHasBeenSet; }
59 inline void SetRetentionPeriodUnit(const RetentionPeriodUnit& value) { m_retentionPeriodUnitHasBeenSet = true; m_retentionPeriodUnit = value; }
60 inline void SetRetentionPeriodUnit(RetentionPeriodUnit&& value) { m_retentionPeriodUnitHasBeenSet = true; m_retentionPeriodUnit = std::move(value); }
62 inline RetentionPeriod& WithRetentionPeriodUnit(RetentionPeriodUnit&& value) { SetRetentionPeriodUnit(std::move(value)); return *this;}
64 private:
65
66 int m_retentionPeriodValue;
67 bool m_retentionPeriodValueHasBeenSet = false;
68
69 RetentionPeriodUnit m_retentionPeriodUnit;
70 bool m_retentionPeriodUnitHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace RecycleBin
75} // namespace Aws
RetentionPeriod & WithRetentionPeriodUnit(const RetentionPeriodUnit &value)
RetentionPeriod & WithRetentionPeriodUnit(RetentionPeriodUnit &&value)
void SetRetentionPeriodUnit(const RetentionPeriodUnit &value)
AWS_RECYCLEBIN_API RetentionPeriod(Aws::Utils::Json::JsonView jsonValue)
AWS_RECYCLEBIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRetentionPeriodUnit(RetentionPeriodUnit &&value)
RetentionPeriod & WithRetentionPeriodValue(int value)
const RetentionPeriodUnit & GetRetentionPeriodUnit() const
AWS_RECYCLEBIN_API RetentionPeriod & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue