AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Options.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/datasync/model/VerifyMode.h>
9#include <aws/datasync/model/OverwriteMode.h>
10#include <aws/datasync/model/Atime.h>
11#include <aws/datasync/model/Mtime.h>
12#include <aws/datasync/model/Uid.h>
13#include <aws/datasync/model/Gid.h>
14#include <aws/datasync/model/PreserveDeletedFiles.h>
15#include <aws/datasync/model/PreserveDevices.h>
16#include <aws/datasync/model/PosixPermissions.h>
17#include <aws/datasync/model/TaskQueueing.h>
18#include <aws/datasync/model/LogLevel.h>
19#include <aws/datasync/model/TransferMode.h>
20#include <aws/datasync/model/SmbSecurityDescriptorCopyFlags.h>
21#include <aws/datasync/model/ObjectTags.h>
22#include <utility>
23
24namespace Aws
25{
26namespace Utils
27{
28namespace Json
29{
30 class JsonValue;
31 class JsonView;
32} // namespace Json
33} // namespace Utils
34namespace DataSync
35{
36namespace Model
37{
38
53 class Options
54 {
55 public:
56 AWS_DATASYNC_API Options() = default;
57 AWS_DATASYNC_API Options(Aws::Utils::Json::JsonView jsonValue);
58 AWS_DATASYNC_API Options& operator=(Aws::Utils::Json::JsonView jsonValue);
59 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
60
61
63
92 inline VerifyMode GetVerifyMode() const { return m_verifyMode; }
93 inline bool VerifyModeHasBeenSet() const { return m_verifyModeHasBeenSet; }
94 inline void SetVerifyMode(VerifyMode value) { m_verifyModeHasBeenSet = true; m_verifyMode = value; }
95 inline Options& WithVerifyMode(VerifyMode value) { SetVerifyMode(value); return *this;}
97
99
112 inline OverwriteMode GetOverwriteMode() const { return m_overwriteMode; }
113 inline bool OverwriteModeHasBeenSet() const { return m_overwriteModeHasBeenSet; }
114 inline void SetOverwriteMode(OverwriteMode value) { m_overwriteModeHasBeenSet = true; m_overwriteMode = value; }
115 inline Options& WithOverwriteMode(OverwriteMode value) { SetOverwriteMode(value); return *this;}
117
119
133 inline Atime GetAtime() const { return m_atime; }
134 inline bool AtimeHasBeenSet() const { return m_atimeHasBeenSet; }
135 inline void SetAtime(Atime value) { m_atimeHasBeenSet = true; m_atime = value; }
136 inline Options& WithAtime(Atime value) { SetAtime(value); return *this;}
138
140
152 inline Mtime GetMtime() const { return m_mtime; }
153 inline bool MtimeHasBeenSet() const { return m_mtimeHasBeenSet; }
154 inline void SetMtime(Mtime value) { m_mtimeHasBeenSet = true; m_mtime = value; }
155 inline Options& WithMtime(Mtime value) { SetMtime(value); return *this;}
157
159
167 inline Uid GetUid() const { return m_uid; }
168 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
169 inline void SetUid(Uid value) { m_uidHasBeenSet = true; m_uid = value; }
170 inline Options& WithUid(Uid value) { SetUid(value); return *this;}
172
174
182 inline Gid GetGid() const { return m_gid; }
183 inline bool GidHasBeenSet() const { return m_gidHasBeenSet; }
184 inline void SetGid(Gid value) { m_gidHasBeenSet = true; m_gid = value; }
185 inline Options& WithGid(Gid value) { SetGid(value); return *this;}
187
189
203 inline PreserveDeletedFiles GetPreserveDeletedFiles() const { return m_preserveDeletedFiles; }
204 inline bool PreserveDeletedFilesHasBeenSet() const { return m_preserveDeletedFilesHasBeenSet; }
205 inline void SetPreserveDeletedFiles(PreserveDeletedFiles value) { m_preserveDeletedFilesHasBeenSet = true; m_preserveDeletedFiles = value; }
208
210
221 inline PreserveDevices GetPreserveDevices() const { return m_preserveDevices; }
222 inline bool PreserveDevicesHasBeenSet() const { return m_preserveDevicesHasBeenSet; }
223 inline void SetPreserveDevices(PreserveDevices value) { m_preserveDevicesHasBeenSet = true; m_preserveDevices = value; }
224 inline Options& WithPreserveDevices(PreserveDevices value) { SetPreserveDevices(value); return *this;}
226
228
239 inline PosixPermissions GetPosixPermissions() const { return m_posixPermissions; }
240 inline bool PosixPermissionsHasBeenSet() const { return m_posixPermissionsHasBeenSet; }
241 inline void SetPosixPermissions(PosixPermissions value) { m_posixPermissionsHasBeenSet = true; m_posixPermissions = value; }
242 inline Options& WithPosixPermissions(PosixPermissions value) { SetPosixPermissions(value); return *this;}
244
246
253 inline long long GetBytesPerSecond() const { return m_bytesPerSecond; }
254 inline bool BytesPerSecondHasBeenSet() const { return m_bytesPerSecondHasBeenSet; }
255 inline void SetBytesPerSecond(long long value) { m_bytesPerSecondHasBeenSet = true; m_bytesPerSecond = value; }
256 inline Options& WithBytesPerSecond(long long value) { SetBytesPerSecond(value); return *this;}
258
260
266 inline TaskQueueing GetTaskQueueing() const { return m_taskQueueing; }
267 inline bool TaskQueueingHasBeenSet() const { return m_taskQueueingHasBeenSet; }
268 inline void SetTaskQueueing(TaskQueueing value) { m_taskQueueingHasBeenSet = true; m_taskQueueing = value; }
269 inline Options& WithTaskQueueing(TaskQueueing value) { SetTaskQueueing(value); return *this;}
271
273
283 inline LogLevel GetLogLevel() const { return m_logLevel; }
284 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
285 inline void SetLogLevel(LogLevel value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
286 inline Options& WithLogLevel(LogLevel value) { SetLogLevel(value); return *this;}
288
290
301 inline TransferMode GetTransferMode() const { return m_transferMode; }
302 inline bool TransferModeHasBeenSet() const { return m_transferModeHasBeenSet; }
303 inline void SetTransferMode(TransferMode value) { m_transferModeHasBeenSet = true; m_transferMode = value; }
304 inline Options& WithTransferMode(TransferMode value) { SetTransferMode(value); return *this;}
306
308
339 inline SmbSecurityDescriptorCopyFlags GetSecurityDescriptorCopyFlags() const { return m_securityDescriptorCopyFlags; }
340 inline bool SecurityDescriptorCopyFlagsHasBeenSet() const { return m_securityDescriptorCopyFlagsHasBeenSet; }
341 inline void SetSecurityDescriptorCopyFlags(SmbSecurityDescriptorCopyFlags value) { m_securityDescriptorCopyFlagsHasBeenSet = true; m_securityDescriptorCopyFlags = value; }
344
346
352 inline ObjectTags GetObjectTags() const { return m_objectTags; }
353 inline bool ObjectTagsHasBeenSet() const { return m_objectTagsHasBeenSet; }
354 inline void SetObjectTags(ObjectTags value) { m_objectTagsHasBeenSet = true; m_objectTags = value; }
355 inline Options& WithObjectTags(ObjectTags value) { SetObjectTags(value); return *this;}
357 private:
358
359 VerifyMode m_verifyMode{VerifyMode::NOT_SET};
360 bool m_verifyModeHasBeenSet = false;
361
362 OverwriteMode m_overwriteMode{OverwriteMode::NOT_SET};
363 bool m_overwriteModeHasBeenSet = false;
364
365 Atime m_atime{Atime::NOT_SET};
366 bool m_atimeHasBeenSet = false;
367
368 Mtime m_mtime{Mtime::NOT_SET};
369 bool m_mtimeHasBeenSet = false;
370
371 Uid m_uid{Uid::NOT_SET};
372 bool m_uidHasBeenSet = false;
373
374 Gid m_gid{Gid::NOT_SET};
375 bool m_gidHasBeenSet = false;
376
378 bool m_preserveDeletedFilesHasBeenSet = false;
379
380 PreserveDevices m_preserveDevices{PreserveDevices::NOT_SET};
381 bool m_preserveDevicesHasBeenSet = false;
382
384 bool m_posixPermissionsHasBeenSet = false;
385
386 long long m_bytesPerSecond{0};
387 bool m_bytesPerSecondHasBeenSet = false;
388
389 TaskQueueing m_taskQueueing{TaskQueueing::NOT_SET};
390 bool m_taskQueueingHasBeenSet = false;
391
392 LogLevel m_logLevel{LogLevel::NOT_SET};
393 bool m_logLevelHasBeenSet = false;
394
395 TransferMode m_transferMode{TransferMode::NOT_SET};
396 bool m_transferModeHasBeenSet = false;
397
399 bool m_securityDescriptorCopyFlagsHasBeenSet = false;
400
401 ObjectTags m_objectTags{ObjectTags::NOT_SET};
402 bool m_objectTagsHasBeenSet = false;
403 };
404
405} // namespace Model
406} // namespace DataSync
407} // namespace Aws
bool TransferModeHasBeenSet() const
Definition Options.h:302
Options & WithSecurityDescriptorCopyFlags(SmbSecurityDescriptorCopyFlags value)
Definition Options.h:342
bool PosixPermissionsHasBeenSet() const
Definition Options.h:240
Options & WithPreserveDevices(PreserveDevices value)
Definition Options.h:224
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
Options & WithPosixPermissions(PosixPermissions value)
Definition Options.h:242
TransferMode GetTransferMode() const
Definition Options.h:301
void SetSecurityDescriptorCopyFlags(SmbSecurityDescriptorCopyFlags value)
Definition Options.h:341
bool SecurityDescriptorCopyFlagsHasBeenSet() const
Definition Options.h:340
Options & WithTransferMode(TransferMode value)
Definition Options.h:304
void SetAtime(Atime value)
Definition Options.h:135
bool LogLevelHasBeenSet() const
Definition Options.h:284
Options & WithObjectTags(ObjectTags value)
Definition Options.h:355
AWS_DATASYNC_API Options(Aws::Utils::Json::JsonView jsonValue)
void SetVerifyMode(VerifyMode value)
Definition Options.h:94
SmbSecurityDescriptorCopyFlags GetSecurityDescriptorCopyFlags() const
Definition Options.h:339
void SetMtime(Mtime value)
Definition Options.h:154
bool ObjectTagsHasBeenSet() const
Definition Options.h:353
Options & WithAtime(Atime value)
Definition Options.h:136
Options & WithMtime(Mtime value)
Definition Options.h:155
bool BytesPerSecondHasBeenSet() const
Definition Options.h:254
Options & WithVerifyMode(VerifyMode value)
Definition Options.h:95
Options & WithUid(Uid value)
Definition Options.h:170
long long GetBytesPerSecond() const
Definition Options.h:253
Options & WithTaskQueueing(TaskQueueing value)
Definition Options.h:269
OverwriteMode GetOverwriteMode() const
Definition Options.h:112
bool PreserveDeletedFilesHasBeenSet() const
Definition Options.h:204
AWS_DATASYNC_API Options & operator=(Aws::Utils::Json::JsonView jsonValue)
ObjectTags GetObjectTags() const
Definition Options.h:352
bool TaskQueueingHasBeenSet() const
Definition Options.h:267
VerifyMode GetVerifyMode() const
Definition Options.h:92
bool PreserveDevicesHasBeenSet() const
Definition Options.h:222
void SetPreserveDeletedFiles(PreserveDeletedFiles value)
Definition Options.h:205
void SetBytesPerSecond(long long value)
Definition Options.h:255
void SetLogLevel(LogLevel value)
Definition Options.h:285
Options & WithGid(Gid value)
Definition Options.h:185
PreserveDeletedFiles GetPreserveDeletedFiles() const
Definition Options.h:203
Options & WithLogLevel(LogLevel value)
Definition Options.h:286
Options & WithOverwriteMode(OverwriteMode value)
Definition Options.h:115
void SetOverwriteMode(OverwriteMode value)
Definition Options.h:114
void SetTransferMode(TransferMode value)
Definition Options.h:303
void SetPosixPermissions(PosixPermissions value)
Definition Options.h:241
void SetTaskQueueing(TaskQueueing value)
Definition Options.h:268
bool VerifyModeHasBeenSet() const
Definition Options.h:93
void SetPreserveDevices(PreserveDevices value)
Definition Options.h:223
void SetObjectTags(ObjectTags value)
Definition Options.h:354
TaskQueueing GetTaskQueueing() const
Definition Options.h:266
Options & WithPreserveDeletedFiles(PreserveDeletedFiles value)
Definition Options.h:206
AWS_DATASYNC_API Options()=default
PreserveDevices GetPreserveDevices() const
Definition Options.h:221
LogLevel GetLogLevel() const
Definition Options.h:283
PosixPermissions GetPosixPermissions() const
Definition Options.h:239
Options & WithBytesPerSecond(long long value)
Definition Options.h:256
bool OverwriteModeHasBeenSet() const
Definition Options.h:113
Aws::Utils::Json::JsonValue JsonValue