AWS SDK for C++

AWS SDK for C++ Version 1.11.851

Loading...
Searching...
No Matches
DeletionProtectionConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/EnabledOrDisabledState.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BedrockAgent {
20namespace Model {
21
28 public:
29 AWS_BEDROCKAGENT_API DeletionProtectionConfiguration() = default;
32 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline EnabledOrDisabledState GetDeletionProtectionStatus() const { return m_deletionProtectionStatus; }
39 inline bool DeletionProtectionStatusHasBeenSet() const { return m_deletionProtectionStatusHasBeenSet; }
41 m_deletionProtectionStatusHasBeenSet = true;
42 m_deletionProtectionStatus = value;
43 }
46 return *this;
47 }
49
51
57 inline int GetDeletionProtectionThreshold() const { return m_deletionProtectionThreshold; }
58 inline bool DeletionProtectionThresholdHasBeenSet() const { return m_deletionProtectionThresholdHasBeenSet; }
59 inline void SetDeletionProtectionThreshold(int value) {
60 m_deletionProtectionThresholdHasBeenSet = true;
61 m_deletionProtectionThreshold = value;
62 }
65 return *this;
66 }
68 private:
70
71 int m_deletionProtectionThreshold{0};
72 bool m_deletionProtectionStatusHasBeenSet = false;
73 bool m_deletionProtectionThresholdHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace BedrockAgent
78} // namespace Aws
DeletionProtectionConfiguration & WithDeletionProtectionThreshold(int value)
AWS_BEDROCKAGENT_API DeletionProtectionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API DeletionProtectionConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API DeletionProtectionConfiguration()=default
DeletionProtectionConfiguration & WithDeletionProtectionStatus(EnabledOrDisabledState value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue