AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetAutocommitPeriod(const AutocommitPeriod& value) { m_autocommitPeriodHasBeenSet = true; m_autocommitPeriod = value; }
68 inline void SetAutocommitPeriod(AutocommitPeriod&& value) { m_autocommitPeriodHasBeenSet = true; m_autocommitPeriod = std::move(value); }
70 inline CreateSnaplockConfiguration& WithAutocommitPeriod(AutocommitPeriod&& value) { SetAutocommitPeriod(std::move(value)); return *this;}
72
74
84 inline const PrivilegedDelete& GetPrivilegedDelete() const{ return m_privilegedDelete; }
85 inline bool PrivilegedDeleteHasBeenSet() const { return m_privilegedDeleteHasBeenSet; }
86 inline void SetPrivilegedDelete(const PrivilegedDelete& value) { m_privilegedDeleteHasBeenSet = true; m_privilegedDelete = value; }
87 inline void SetPrivilegedDelete(PrivilegedDelete&& value) { m_privilegedDeleteHasBeenSet = true; m_privilegedDelete = std::move(value); }
89 inline CreateSnaplockConfiguration& WithPrivilegedDelete(PrivilegedDelete&& value) { SetPrivilegedDelete(std::move(value)); return *this;}
91
93
96 inline const SnaplockRetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; }
97 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
98 inline void SetRetentionPeriod(const SnaplockRetentionPeriod& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
99 inline void SetRetentionPeriod(SnaplockRetentionPeriod&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::move(value); }
103
105
123 inline const SnaplockType& GetSnaplockType() const{ return m_snaplockType; }
124 inline bool SnaplockTypeHasBeenSet() const { return m_snaplockTypeHasBeenSet; }
125 inline void SetSnaplockType(const SnaplockType& value) { m_snaplockTypeHasBeenSet = true; m_snaplockType = value; }
126 inline void SetSnaplockType(SnaplockType&& value) { m_snaplockTypeHasBeenSet = true; m_snaplockType = std::move(value); }
127 inline CreateSnaplockConfiguration& WithSnaplockType(const SnaplockType& value) { SetSnaplockType(value); return *this;}
128 inline CreateSnaplockConfiguration& WithSnaplockType(SnaplockType&& value) { SetSnaplockType(std::move(value)); return *this;}
130
132
140 inline bool GetVolumeAppendModeEnabled() const{ return m_volumeAppendModeEnabled; }
141 inline bool VolumeAppendModeEnabledHasBeenSet() const { return m_volumeAppendModeEnabledHasBeenSet; }
142 inline void SetVolumeAppendModeEnabled(bool value) { m_volumeAppendModeEnabledHasBeenSet = true; m_volumeAppendModeEnabled = value; }
145 private:
146
147 bool m_auditLogVolume;
148 bool m_auditLogVolumeHasBeenSet = false;
149
150 AutocommitPeriod m_autocommitPeriod;
151 bool m_autocommitPeriodHasBeenSet = false;
152
153 PrivilegedDelete m_privilegedDelete;
154 bool m_privilegedDeleteHasBeenSet = false;
155
156 SnaplockRetentionPeriod m_retentionPeriod;
157 bool m_retentionPeriodHasBeenSet = false;
158
159 SnaplockType m_snaplockType;
160 bool m_snaplockTypeHasBeenSet = false;
161
162 bool m_volumeAppendModeEnabled;
163 bool m_volumeAppendModeEnabledHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace FSx
168} // namespace Aws
CreateSnaplockConfiguration & WithSnaplockType(const SnaplockType &value)
void SetAutocommitPeriod(const AutocommitPeriod &value)
void SetRetentionPeriod(const SnaplockRetentionPeriod &value)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPrivilegedDelete(const PrivilegedDelete &value)
CreateSnaplockConfiguration & WithRetentionPeriod(SnaplockRetentionPeriod &&value)
CreateSnaplockConfiguration & WithPrivilegedDelete(PrivilegedDelete &&value)
CreateSnaplockConfiguration & WithAutocommitPeriod(const AutocommitPeriod &value)
AWS_FSX_API CreateSnaplockConfiguration(Aws::Utils::Json::JsonView jsonValue)
CreateSnaplockConfiguration & WithAutocommitPeriod(AutocommitPeriod &&value)
CreateSnaplockConfiguration & WithSnaplockType(SnaplockType &&value)
CreateSnaplockConfiguration & WithRetentionPeriod(const SnaplockRetentionPeriod &value)
CreateSnaplockConfiguration & WithPrivilegedDelete(const PrivilegedDelete &value)
AWS_FSX_API CreateSnaplockConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const SnaplockRetentionPeriod & GetRetentionPeriod() const
CreateSnaplockConfiguration & WithVolumeAppendModeEnabled(bool value)
CreateSnaplockConfiguration & WithAuditLogVolume(bool value)
void SetRetentionPeriod(SnaplockRetentionPeriod &&value)
Aws::Utils::Json::JsonValue JsonValue