AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
DeletionProtectionSettings.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace AppConfig {
17namespace Model {
18
33 public:
34 AWS_APPCONFIG_API DeletionProtectionSettings() = default;
37 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline bool GetEnabled() const { return m_enabled; }
44 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
45 inline void SetEnabled(bool value) {
46 m_enabledHasBeenSet = true;
47 m_enabled = value;
48 }
50 SetEnabled(value);
51 return *this;
52 }
54
56
65 inline int GetProtectionPeriodInMinutes() const { return m_protectionPeriodInMinutes; }
66 inline bool ProtectionPeriodInMinutesHasBeenSet() const { return m_protectionPeriodInMinutesHasBeenSet; }
67 inline void SetProtectionPeriodInMinutes(int value) {
68 m_protectionPeriodInMinutesHasBeenSet = true;
69 m_protectionPeriodInMinutes = value;
70 }
73 return *this;
74 }
76 private:
77 bool m_enabled{false};
78
79 int m_protectionPeriodInMinutes{0};
80 bool m_enabledHasBeenSet = false;
81 bool m_protectionPeriodInMinutesHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace AppConfig
86} // 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