AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateSnaplockConfiguration.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/fsx/model/AutocommitPeriod.h>
9#include <aws/fsx/model/PrivilegedDelete.h>
10#include <aws/fsx/model/SnaplockRetentionPeriod.h>
11#include <aws/fsx/model/SnaplockType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace FSx
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_FSX_API CreateSnaplockConfiguration() = default;
42
43
45
54 inline bool GetAuditLogVolume() const { return m_auditLogVolume; }
55 inline bool AuditLogVolumeHasBeenSet() const { return m_auditLogVolumeHasBeenSet; }
56 inline void SetAuditLogVolume(bool value) { m_auditLogVolumeHasBeenSet = true; m_auditLogVolume = value; }
57 inline CreateSnaplockConfiguration& WithAuditLogVolume(bool value) { SetAuditLogVolume(value); return *this;}
59
61
65 inline const AutocommitPeriod& GetAutocommitPeriod() const { return m_autocommitPeriod; }
66 inline bool AutocommitPeriodHasBeenSet() const { return m_autocommitPeriodHasBeenSet; }
67 template<typename AutocommitPeriodT = AutocommitPeriod>
68 void SetAutocommitPeriod(AutocommitPeriodT&& value) { m_autocommitPeriodHasBeenSet = true; m_autocommitPeriod = std::forward<AutocommitPeriodT>(value); }
69 template<typename AutocommitPeriodT = AutocommitPeriod>
70 CreateSnaplockConfiguration& WithAutocommitPeriod(AutocommitPeriodT&& value) { SetAutocommitPeriod(std::forward<AutocommitPeriodT>(value)); return *this;}
72
74
84 inline PrivilegedDelete GetPrivilegedDelete() const { return m_privilegedDelete; }
85 inline bool PrivilegedDeleteHasBeenSet() const { return m_privilegedDeleteHasBeenSet; }
86 inline void SetPrivilegedDelete(PrivilegedDelete value) { m_privilegedDeleteHasBeenSet = true; m_privilegedDelete = value; }
89
91
94 inline const SnaplockRetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
95 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
96 template<typename RetentionPeriodT = SnaplockRetentionPeriod>
97 void SetRetentionPeriod(RetentionPeriodT&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::forward<RetentionPeriodT>(value); }
98 template<typename RetentionPeriodT = SnaplockRetentionPeriod>
99 CreateSnaplockConfiguration& WithRetentionPeriod(RetentionPeriodT&& value) { SetRetentionPeriod(std::forward<RetentionPeriodT>(value)); return *this;}
101
103
121 inline SnaplockType GetSnaplockType() const { return m_snaplockType; }
122 inline bool SnaplockTypeHasBeenSet() const { return m_snaplockTypeHasBeenSet; }
123 inline void SetSnaplockType(SnaplockType value) { m_snaplockTypeHasBeenSet = true; m_snaplockType = value; }
126
128
136 inline bool GetVolumeAppendModeEnabled() const { return m_volumeAppendModeEnabled; }
137 inline bool VolumeAppendModeEnabledHasBeenSet() const { return m_volumeAppendModeEnabledHasBeenSet; }
138 inline void SetVolumeAppendModeEnabled(bool value) { m_volumeAppendModeEnabledHasBeenSet = true; m_volumeAppendModeEnabled = value; }
141 private:
142
143 bool m_auditLogVolume{false};
144 bool m_auditLogVolumeHasBeenSet = false;
145
146 AutocommitPeriod m_autocommitPeriod;
147 bool m_autocommitPeriodHasBeenSet = false;
148
150 bool m_privilegedDeleteHasBeenSet = false;
151
152 SnaplockRetentionPeriod m_retentionPeriod;
153 bool m_retentionPeriodHasBeenSet = false;
154
155 SnaplockType m_snaplockType{SnaplockType::NOT_SET};
156 bool m_snaplockTypeHasBeenSet = false;
157
158 bool m_volumeAppendModeEnabled{false};
159 bool m_volumeAppendModeEnabledHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace FSx
164} // namespace Aws
CreateSnaplockConfiguration & WithPrivilegedDelete(PrivilegedDelete value)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
CreateSnaplockConfiguration & WithSnaplockType(SnaplockType value)
AWS_FSX_API CreateSnaplockConfiguration()=default
CreateSnaplockConfiguration & WithRetentionPeriod(RetentionPeriodT &&value)
AWS_FSX_API CreateSnaplockConfiguration(Aws::Utils::Json::JsonView jsonValue)
CreateSnaplockConfiguration & WithAutocommitPeriod(AutocommitPeriodT &&value)
AWS_FSX_API CreateSnaplockConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const SnaplockRetentionPeriod & GetRetentionPeriod() const
CreateSnaplockConfiguration & WithVolumeAppendModeEnabled(bool value)
CreateSnaplockConfiguration & WithAuditLogVolume(bool value)
Aws::Utils::Json::JsonValue JsonValue