AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
40 {
41 public:
42 AWS_APPCONFIG_API DeletionProtectionSettings();
45 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline bool GetEnabled() const{ return m_enabled; }
53 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
54 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
55 inline DeletionProtectionSettings& WithEnabled(bool value) { SetEnabled(value); return *this;}
57
59
68 inline int GetProtectionPeriodInMinutes() const{ return m_protectionPeriodInMinutes; }
69 inline bool ProtectionPeriodInMinutesHasBeenSet() const { return m_protectionPeriodInMinutesHasBeenSet; }
70 inline void SetProtectionPeriodInMinutes(int value) { m_protectionPeriodInMinutesHasBeenSet = true; m_protectionPeriodInMinutes = value; }
73 private:
74
75 bool m_enabled;
76 bool m_enabledHasBeenSet = false;
77
78 int m_protectionPeriodInMinutes;
79 bool m_protectionPeriodInMinutesHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace AppConfig
84} // namespace Aws
DeletionProtectionSettings & WithProtectionPeriodInMinutes(int value)
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