AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Options.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/datasync/model/Atime.h>
9#include <aws/datasync/model/Gid.h>
10#include <aws/datasync/model/LogLevel.h>
11#include <aws/datasync/model/Mtime.h>
12#include <aws/datasync/model/ObjectTags.h>
13#include <aws/datasync/model/OverwriteMode.h>
14#include <aws/datasync/model/PosixPermissions.h>
15#include <aws/datasync/model/PreserveDeletedFiles.h>
16#include <aws/datasync/model/PreserveDevices.h>
17#include <aws/datasync/model/SmbSecurityDescriptorCopyFlags.h>
18#include <aws/datasync/model/TaskQueueing.h>
19#include <aws/datasync/model/TransferMode.h>
20#include <aws/datasync/model/Uid.h>
21#include <aws/datasync/model/VerifyMode.h>
22
23#include <utility>
24
25namespace Aws {
26namespace Utils {
27namespace Json {
28class JsonValue;
29class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace DataSync {
33namespace Model {
34
49class Options {
50 public:
51 AWS_DATASYNC_API Options() = default;
52 AWS_DATASYNC_API Options(Aws::Utils::Json::JsonView jsonValue);
53 AWS_DATASYNC_API Options& operator=(Aws::Utils::Json::JsonView jsonValue);
54 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
55
57
86 inline VerifyMode GetVerifyMode() const { return m_verifyMode; }
87 inline bool VerifyModeHasBeenSet() const { return m_verifyModeHasBeenSet; }
88 inline void SetVerifyMode(VerifyMode value) {
89 m_verifyModeHasBeenSet = true;
90 m_verifyMode = value;
91 }
93 SetVerifyMode(value);
94 return *this;
95 }
97
99
112 inline OverwriteMode GetOverwriteMode() const { return m_overwriteMode; }
113 inline bool OverwriteModeHasBeenSet() const { return m_overwriteModeHasBeenSet; }
114 inline void SetOverwriteMode(OverwriteMode value) {
115 m_overwriteModeHasBeenSet = true;
116 m_overwriteMode = value;
117 }
119 SetOverwriteMode(value);
120 return *this;
121 }
123
125
139 inline Atime GetAtime() const { return m_atime; }
140 inline bool AtimeHasBeenSet() const { return m_atimeHasBeenSet; }
141 inline void SetAtime(Atime value) {
142 m_atimeHasBeenSet = true;
143 m_atime = value;
144 }
145 inline Options& WithAtime(Atime value) {
146 SetAtime(value);
147 return *this;
148 }
150
152
164 inline Mtime GetMtime() const { return m_mtime; }
165 inline bool MtimeHasBeenSet() const { return m_mtimeHasBeenSet; }
166 inline void SetMtime(Mtime value) {
167 m_mtimeHasBeenSet = true;
168 m_mtime = value;
169 }
170 inline Options& WithMtime(Mtime value) {
171 SetMtime(value);
172 return *this;
173 }
175
177
185 inline Uid GetUid() const { return m_uid; }
186 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
187 inline void SetUid(Uid value) {
188 m_uidHasBeenSet = true;
189 m_uid = value;
190 }
191 inline Options& WithUid(Uid value) {
192 SetUid(value);
193 return *this;
194 }
196
198
206 inline Gid GetGid() const { return m_gid; }
207 inline bool GidHasBeenSet() const { return m_gidHasBeenSet; }
208 inline void SetGid(Gid value) {
209 m_gidHasBeenSet = true;
210 m_gid = value;
211 }
212 inline Options& WithGid(Gid value) {
213 SetGid(value);
214 return *this;
215 }
217
219
233 inline PreserveDeletedFiles GetPreserveDeletedFiles() const { return m_preserveDeletedFiles; }
234 inline bool PreserveDeletedFilesHasBeenSet() const { return m_preserveDeletedFilesHasBeenSet; }
236 m_preserveDeletedFilesHasBeenSet = true;
237 m_preserveDeletedFiles = value;
238 }
241 return *this;
242 }
244
246
257 inline PreserveDevices GetPreserveDevices() const { return m_preserveDevices; }
258 inline bool PreserveDevicesHasBeenSet() const { return m_preserveDevicesHasBeenSet; }
260 m_preserveDevicesHasBeenSet = true;
261 m_preserveDevices = value;
262 }
264 SetPreserveDevices(value);
265 return *this;
266 }
268
270
281 inline PosixPermissions GetPosixPermissions() const { return m_posixPermissions; }
282 inline bool PosixPermissionsHasBeenSet() const { return m_posixPermissionsHasBeenSet; }
284 m_posixPermissionsHasBeenSet = true;
285 m_posixPermissions = value;
286 }
288 SetPosixPermissions(value);
289 return *this;
290 }
292
294
299 inline long long GetBytesPerSecond() const { return m_bytesPerSecond; }
300 inline bool BytesPerSecondHasBeenSet() const { return m_bytesPerSecondHasBeenSet; }
301 inline void SetBytesPerSecond(long long value) {
302 m_bytesPerSecondHasBeenSet = true;
303 m_bytesPerSecond = value;
304 }
305 inline Options& WithBytesPerSecond(long long value) {
306 SetBytesPerSecond(value);
307 return *this;
308 }
310
312
318 inline TaskQueueing GetTaskQueueing() const { return m_taskQueueing; }
319 inline bool TaskQueueingHasBeenSet() const { return m_taskQueueingHasBeenSet; }
320 inline void SetTaskQueueing(TaskQueueing value) {
321 m_taskQueueingHasBeenSet = true;
322 m_taskQueueing = value;
323 }
325 SetTaskQueueing(value);
326 return *this;
327 }
329
331
341 inline LogLevel GetLogLevel() const { return m_logLevel; }
342 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
343 inline void SetLogLevel(LogLevel value) {
344 m_logLevelHasBeenSet = true;
345 m_logLevel = value;
346 }
348 SetLogLevel(value);
349 return *this;
350 }
352
354
365 inline TransferMode GetTransferMode() const { return m_transferMode; }
366 inline bool TransferModeHasBeenSet() const { return m_transferModeHasBeenSet; }
367 inline void SetTransferMode(TransferMode value) {
368 m_transferModeHasBeenSet = true;
369 m_transferMode = value;
370 }
372 SetTransferMode(value);
373 return *this;
374 }
376
378
409 inline SmbSecurityDescriptorCopyFlags GetSecurityDescriptorCopyFlags() const { return m_securityDescriptorCopyFlags; }
410 inline bool SecurityDescriptorCopyFlagsHasBeenSet() const { return m_securityDescriptorCopyFlagsHasBeenSet; }
412 m_securityDescriptorCopyFlagsHasBeenSet = true;
413 m_securityDescriptorCopyFlags = value;
414 }
417 return *this;
418 }
420
422
428 inline ObjectTags GetObjectTags() const { return m_objectTags; }
429 inline bool ObjectTagsHasBeenSet() const { return m_objectTagsHasBeenSet; }
430 inline void SetObjectTags(ObjectTags value) {
431 m_objectTagsHasBeenSet = true;
432 m_objectTags = value;
433 }
435 SetObjectTags(value);
436 return *this;
437 }
439 private:
440 VerifyMode m_verifyMode{VerifyMode::NOT_SET};
441
442 OverwriteMode m_overwriteMode{OverwriteMode::NOT_SET};
443
444 Atime m_atime{Atime::NOT_SET};
445
446 Mtime m_mtime{Mtime::NOT_SET};
447
448 Uid m_uid{Uid::NOT_SET};
449
450 Gid m_gid{Gid::NOT_SET};
451
453
454 PreserveDevices m_preserveDevices{PreserveDevices::NOT_SET};
455
457
458 long long m_bytesPerSecond{0};
459
460 TaskQueueing m_taskQueueing{TaskQueueing::NOT_SET};
461
462 LogLevel m_logLevel{LogLevel::NOT_SET};
463
464 TransferMode m_transferMode{TransferMode::NOT_SET};
465
467
468 ObjectTags m_objectTags{ObjectTags::NOT_SET};
469 bool m_verifyModeHasBeenSet = false;
470 bool m_overwriteModeHasBeenSet = false;
471 bool m_atimeHasBeenSet = false;
472 bool m_mtimeHasBeenSet = false;
473 bool m_uidHasBeenSet = false;
474 bool m_gidHasBeenSet = false;
475 bool m_preserveDeletedFilesHasBeenSet = false;
476 bool m_preserveDevicesHasBeenSet = false;
477 bool m_posixPermissionsHasBeenSet = false;
478 bool m_bytesPerSecondHasBeenSet = false;
479 bool m_taskQueueingHasBeenSet = false;
480 bool m_logLevelHasBeenSet = false;
481 bool m_transferModeHasBeenSet = false;
482 bool m_securityDescriptorCopyFlagsHasBeenSet = false;
483 bool m_objectTagsHasBeenSet = false;
484};
485
486} // namespace Model
487} // namespace DataSync
488} // namespace Aws
bool TransferModeHasBeenSet() const
Definition Options.h:366
Options & WithSecurityDescriptorCopyFlags(SmbSecurityDescriptorCopyFlags value)
Definition Options.h:415
bool PosixPermissionsHasBeenSet() const
Definition Options.h:282
Options & WithPreserveDevices(PreserveDevices value)
Definition Options.h:263
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
Options & WithPosixPermissions(PosixPermissions value)
Definition Options.h:287
TransferMode GetTransferMode() const
Definition Options.h:365
void SetSecurityDescriptorCopyFlags(SmbSecurityDescriptorCopyFlags value)
Definition Options.h:411
bool SecurityDescriptorCopyFlagsHasBeenSet() const
Definition Options.h:410
Options & WithTransferMode(TransferMode value)
Definition Options.h:371
void SetAtime(Atime value)
Definition Options.h:141
bool LogLevelHasBeenSet() const
Definition Options.h:342
Options & WithObjectTags(ObjectTags value)
Definition Options.h:434
AWS_DATASYNC_API Options(Aws::Utils::Json::JsonView jsonValue)
void SetVerifyMode(VerifyMode value)
Definition Options.h:88
SmbSecurityDescriptorCopyFlags GetSecurityDescriptorCopyFlags() const
Definition Options.h:409
void SetMtime(Mtime value)
Definition Options.h:166
bool ObjectTagsHasBeenSet() const
Definition Options.h:429
Options & WithAtime(Atime value)
Definition Options.h:145
Options & WithMtime(Mtime value)
Definition Options.h:170
bool BytesPerSecondHasBeenSet() const
Definition Options.h:300
Options & WithVerifyMode(VerifyMode value)
Definition Options.h:92
Options & WithUid(Uid value)
Definition Options.h:191
long long GetBytesPerSecond() const
Definition Options.h:299
Options & WithTaskQueueing(TaskQueueing value)
Definition Options.h:324
OverwriteMode GetOverwriteMode() const
Definition Options.h:112
bool PreserveDeletedFilesHasBeenSet() const
Definition Options.h:234
AWS_DATASYNC_API Options & operator=(Aws::Utils::Json::JsonView jsonValue)
ObjectTags GetObjectTags() const
Definition Options.h:428
bool TaskQueueingHasBeenSet() const
Definition Options.h:319
VerifyMode GetVerifyMode() const
Definition Options.h:86
bool PreserveDevicesHasBeenSet() const
Definition Options.h:258
void SetPreserveDeletedFiles(PreserveDeletedFiles value)
Definition Options.h:235
void SetBytesPerSecond(long long value)
Definition Options.h:301
void SetLogLevel(LogLevel value)
Definition Options.h:343
Options & WithGid(Gid value)
Definition Options.h:212
PreserveDeletedFiles GetPreserveDeletedFiles() const
Definition Options.h:233
Options & WithLogLevel(LogLevel value)
Definition Options.h:347
Options & WithOverwriteMode(OverwriteMode value)
Definition Options.h:118
void SetOverwriteMode(OverwriteMode value)
Definition Options.h:114
void SetTransferMode(TransferMode value)
Definition Options.h:367
void SetPosixPermissions(PosixPermissions value)
Definition Options.h:283
void SetTaskQueueing(TaskQueueing value)
Definition Options.h:320
bool VerifyModeHasBeenSet() const
Definition Options.h:87
void SetPreserveDevices(PreserveDevices value)
Definition Options.h:259
void SetObjectTags(ObjectTags value)
Definition Options.h:430
TaskQueueing GetTaskQueueing() const
Definition Options.h:318
Options & WithPreserveDeletedFiles(PreserveDeletedFiles value)
Definition Options.h:239
AWS_DATASYNC_API Options()=default
PreserveDevices GetPreserveDevices() const
Definition Options.h:257
LogLevel GetLogLevel() const
Definition Options.h:341
PosixPermissions GetPosixPermissions() const
Definition Options.h:281
Options & WithBytesPerSecond(long long value)
Definition Options.h:305
bool OverwriteModeHasBeenSet() const
Definition Options.h:113
Aws::Utils::Json::JsonValue JsonValue