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/iotsitewise/IoTSiteWise_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoTSiteWise
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_IOTSITEWISE_API RetentionPeriod();
34 AWS_IOTSITEWISE_API RetentionPeriod(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTSITEWISE_API RetentionPeriod& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
45 inline int GetNumberOfDays() const{ return m_numberOfDays; }
46 inline bool NumberOfDaysHasBeenSet() const { return m_numberOfDaysHasBeenSet; }
47 inline void SetNumberOfDays(int value) { m_numberOfDaysHasBeenSet = true; m_numberOfDays = value; }
48 inline RetentionPeriod& WithNumberOfDays(int value) { SetNumberOfDays(value); return *this;}
50
52
57 inline bool GetUnlimited() const{ return m_unlimited; }
58 inline bool UnlimitedHasBeenSet() const { return m_unlimitedHasBeenSet; }
59 inline void SetUnlimited(bool value) { m_unlimitedHasBeenSet = true; m_unlimited = value; }
60 inline RetentionPeriod& WithUnlimited(bool value) { SetUnlimited(value); return *this;}
62 private:
63
64 int m_numberOfDays;
65 bool m_numberOfDaysHasBeenSet = false;
66
67 bool m_unlimited;
68 bool m_unlimitedHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace IoTSiteWise
73} // namespace Aws
AWS_IOTSITEWISE_API RetentionPeriod(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTSITEWISE_API RetentionPeriod & operator=(Aws::Utils::Json::JsonView jsonValue)
RetentionPeriod & WithNumberOfDays(int value)
RetentionPeriod & WithUnlimited(bool value)
Aws::Utils::Json::JsonValue JsonValue