AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeletionProtectionSettings.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_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 AppConfig
20{
21namespace Model
22{
23
38 {
39 public:
40 AWS_APPCONFIG_API DeletionProtectionSettings() = default;
43 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline bool GetEnabled() const { return m_enabled; }
51 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
52 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
53 inline DeletionProtectionSettings& WithEnabled(bool value) { SetEnabled(value); return *this;}
55
57
66 inline int GetProtectionPeriodInMinutes() const { return m_protectionPeriodInMinutes; }
67 inline bool ProtectionPeriodInMinutesHasBeenSet() const { return m_protectionPeriodInMinutesHasBeenSet; }
68 inline void SetProtectionPeriodInMinutes(int value) { m_protectionPeriodInMinutesHasBeenSet = true; m_protectionPeriodInMinutes = value; }
71 private:
72
73 bool m_enabled{false};
74 bool m_enabledHasBeenSet = false;
75
76 int m_protectionPeriodInMinutes{0};
77 bool m_protectionPeriodInMinutesHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace AppConfig
82} // namespace Aws
DeletionProtectionSettings & WithProtectionPeriodInMinutes(int value)
AWS_APPCONFIG_API DeletionProtectionSettings()=default
AWS_APPCONFIG_API DeletionProtectionSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPCONFIG_API DeletionProtectionSettings(Aws::Utils::Json::JsonView jsonValue)
DeletionProtectionSettings & WithEnabled(bool value)
Aws::Utils::Json::JsonValue JsonValue