AWS SDK for C++

AWS SDK for C++ Version 1.11.921

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/ObjectMetadata.h>
13#include <aws/datasync/model/ObjectTags.h>
14#include <aws/datasync/model/OverwriteMode.h>
15#include <aws/datasync/model/PosixPermissions.h>
16#include <aws/datasync/model/PreserveDeletedFiles.h>
17#include <aws/datasync/model/PreserveDevices.h>
18#include <aws/datasync/model/SmbSecurityDescriptorCopyFlags.h>
19#include <aws/datasync/model/TaskQueueing.h>
20#include <aws/datasync/model/TransferMode.h>
21#include <aws/datasync/model/Uid.h>
22#include <aws/datasync/model/VerifyMode.h>
23
24#include <utility>
25
26namespace Aws {
27namespace Utils {
28namespace Json {
29class JsonValue;
30class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace DataSync {
34namespace Model {
35
50class Options {
51 public:
52 AWS_DATASYNC_API Options() = default;
53 AWS_DATASYNC_API Options(Aws::Utils::Json::JsonView jsonValue);
54 AWS_DATASYNC_API Options& operator=(Aws::Utils::Json::JsonView jsonValue);
55 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
56
58
87 inline VerifyMode GetVerifyMode() const { return m_verifyMode; }
88 inline bool VerifyModeHasBeenSet() const { return m_verifyModeHasBeenSet; }
89 inline void SetVerifyMode(VerifyMode value) {
90 m_verifyModeHasBeenSet = true;
91 m_verifyMode = value;
92 }
94 SetVerifyMode(value);
95 return *this;
96 }
98
100
113 inline OverwriteMode GetOverwriteMode() const { return m_overwriteMode; }
114 inline bool OverwriteModeHasBeenSet() const { return m_overwriteModeHasBeenSet; }
115 inline void SetOverwriteMode(OverwriteMode value) {
116 m_overwriteModeHasBeenSet = true;
117 m_overwriteMode = value;
118 }
120 SetOverwriteMode(value);
121 return *this;
122 }
124
126
142 inline Atime GetAtime() const { return m_atime; }
143 inline bool AtimeHasBeenSet() const { return m_atimeHasBeenSet; }
144 inline void SetAtime(Atime value) {
145 m_atimeHasBeenSet = true;
146 m_atime = value;
147 }
148 inline Options& WithAtime(Atime value) {
149 SetAtime(value);
150 return *this;
151 }
153
155
169 inline Mtime GetMtime() const { return m_mtime; }
170 inline bool MtimeHasBeenSet() const { return m_mtimeHasBeenSet; }
171 inline void SetMtime(Mtime value) {
172 m_mtimeHasBeenSet = true;
173 m_mtime = value;
174 }
175 inline Options& WithMtime(Mtime value) {
176 SetMtime(value);
177 return *this;
178 }
180
182
190 inline Uid GetUid() const { return m_uid; }
191 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
192 inline void SetUid(Uid value) {
193 m_uidHasBeenSet = true;
194 m_uid = value;
195 }
196 inline Options& WithUid(Uid value) {
197 SetUid(value);
198 return *this;
199 }
201
203
211 inline Gid GetGid() const { return m_gid; }
212 inline bool GidHasBeenSet() const { return m_gidHasBeenSet; }
213 inline void SetGid(Gid value) {
214 m_gidHasBeenSet = true;
215 m_gid = value;
216 }
217 inline Options& WithGid(Gid value) {
218 SetGid(value);
219 return *this;
220 }
222
224
238 inline PreserveDeletedFiles GetPreserveDeletedFiles() const { return m_preserveDeletedFiles; }
239 inline bool PreserveDeletedFilesHasBeenSet() const { return m_preserveDeletedFilesHasBeenSet; }
241 m_preserveDeletedFilesHasBeenSet = true;
242 m_preserveDeletedFiles = value;
243 }
246 return *this;
247 }
249
251
262 inline PreserveDevices GetPreserveDevices() const { return m_preserveDevices; }
263 inline bool PreserveDevicesHasBeenSet() const { return m_preserveDevicesHasBeenSet; }
265 m_preserveDevicesHasBeenSet = true;
266 m_preserveDevices = value;
267 }
269 SetPreserveDevices(value);
270 return *this;
271 }
273
275
286 inline PosixPermissions GetPosixPermissions() const { return m_posixPermissions; }
287 inline bool PosixPermissionsHasBeenSet() const { return m_posixPermissionsHasBeenSet; }
289 m_posixPermissionsHasBeenSet = true;
290 m_posixPermissions = value;
291 }
293 SetPosixPermissions(value);
294 return *this;
295 }
297
299
304 inline long long GetBytesPerSecond() const { return m_bytesPerSecond; }
305 inline bool BytesPerSecondHasBeenSet() const { return m_bytesPerSecondHasBeenSet; }
306 inline void SetBytesPerSecond(long long value) {
307 m_bytesPerSecondHasBeenSet = true;
308 m_bytesPerSecond = value;
309 }
310 inline Options& WithBytesPerSecond(long long value) {
311 SetBytesPerSecond(value);
312 return *this;
313 }
315
317
323 inline TaskQueueing GetTaskQueueing() const { return m_taskQueueing; }
324 inline bool TaskQueueingHasBeenSet() const { return m_taskQueueingHasBeenSet; }
325 inline void SetTaskQueueing(TaskQueueing value) {
326 m_taskQueueingHasBeenSet = true;
327 m_taskQueueing = value;
328 }
330 SetTaskQueueing(value);
331 return *this;
332 }
334
336
346 inline LogLevel GetLogLevel() const { return m_logLevel; }
347 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
348 inline void SetLogLevel(LogLevel value) {
349 m_logLevelHasBeenSet = true;
350 m_logLevel = value;
351 }
353 SetLogLevel(value);
354 return *this;
355 }
357
359
370 inline TransferMode GetTransferMode() const { return m_transferMode; }
371 inline bool TransferModeHasBeenSet() const { return m_transferModeHasBeenSet; }
372 inline void SetTransferMode(TransferMode value) {
373 m_transferModeHasBeenSet = true;
374 m_transferMode = value;
375 }
377 SetTransferMode(value);
378 return *this;
379 }
381
383
414 inline SmbSecurityDescriptorCopyFlags GetSecurityDescriptorCopyFlags() const { return m_securityDescriptorCopyFlags; }
415 inline bool SecurityDescriptorCopyFlagsHasBeenSet() const { return m_securityDescriptorCopyFlagsHasBeenSet; }
417 m_securityDescriptorCopyFlagsHasBeenSet = true;
418 m_securityDescriptorCopyFlags = value;
419 }
422 return *this;
423 }
425
427
433 inline ObjectTags GetObjectTags() const { return m_objectTags; }
434 inline bool ObjectTagsHasBeenSet() const { return m_objectTagsHasBeenSet; }
435 inline void SetObjectTags(ObjectTags value) {
436 m_objectTagsHasBeenSet = true;
437 m_objectTags = value;
438 }
440 SetObjectTags(value);
441 return *this;
442 }
444
446
453 inline ObjectMetadata GetObjectMetadata() const { return m_objectMetadata; }
454 inline bool ObjectMetadataHasBeenSet() const { return m_objectMetadataHasBeenSet; }
456 m_objectMetadataHasBeenSet = true;
457 m_objectMetadata = value;
458 }
460 SetObjectMetadata(value);
461 return *this;
462 }
464 private:
465 VerifyMode m_verifyMode{VerifyMode::NOT_SET};
466
467 OverwriteMode m_overwriteMode{OverwriteMode::NOT_SET};
468
469 Atime m_atime{Atime::NOT_SET};
470
471 Mtime m_mtime{Mtime::NOT_SET};
472
473 Uid m_uid{Uid::NOT_SET};
474
475 Gid m_gid{Gid::NOT_SET};
476
478
479 PreserveDevices m_preserveDevices{PreserveDevices::NOT_SET};
480
482
483 long long m_bytesPerSecond{0};
484
485 TaskQueueing m_taskQueueing{TaskQueueing::NOT_SET};
486
487 LogLevel m_logLevel{LogLevel::NOT_SET};
488
489 TransferMode m_transferMode{TransferMode::NOT_SET};
490
492
493 ObjectTags m_objectTags{ObjectTags::NOT_SET};
494
495 ObjectMetadata m_objectMetadata{ObjectMetadata::NOT_SET};
496 bool m_verifyModeHasBeenSet = false;
497 bool m_overwriteModeHasBeenSet = false;
498 bool m_atimeHasBeenSet = false;
499 bool m_mtimeHasBeenSet = false;
500 bool m_uidHasBeenSet = false;
501 bool m_gidHasBeenSet = false;
502 bool m_preserveDeletedFilesHasBeenSet = false;
503 bool m_preserveDevicesHasBeenSet = false;
504 bool m_posixPermissionsHasBeenSet = false;
505 bool m_bytesPerSecondHasBeenSet = false;
506 bool m_taskQueueingHasBeenSet = false;
507 bool m_logLevelHasBeenSet = false;
508 bool m_transferModeHasBeenSet = false;
509 bool m_securityDescriptorCopyFlagsHasBeenSet = false;
510 bool m_objectTagsHasBeenSet = false;
511 bool m_objectMetadataHasBeenSet = false;
512};
513
514} // namespace Model
515} // namespace DataSync
516} // namespace Aws
bool TransferModeHasBeenSet() const
Definition Options.h:371
void SetObjectMetadata(ObjectMetadata value)
Definition Options.h:455
Options & WithSecurityDescriptorCopyFlags(SmbSecurityDescriptorCopyFlags value)
Definition Options.h:420
bool PosixPermissionsHasBeenSet() const
Definition Options.h:287
Options & WithPreserveDevices(PreserveDevices value)
Definition Options.h:268
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
Options & WithPosixPermissions(PosixPermissions value)
Definition Options.h:292
bool ObjectMetadataHasBeenSet() const
Definition Options.h:454
TransferMode GetTransferMode() const
Definition Options.h:370
void SetSecurityDescriptorCopyFlags(SmbSecurityDescriptorCopyFlags value)
Definition Options.h:416
bool SecurityDescriptorCopyFlagsHasBeenSet() const
Definition Options.h:415
Options & WithTransferMode(TransferMode value)
Definition Options.h:376
void SetAtime(Atime value)
Definition Options.h:144
bool LogLevelHasBeenSet() const
Definition Options.h:347
Options & WithObjectTags(ObjectTags value)
Definition Options.h:439
AWS_DATASYNC_API Options(Aws::Utils::Json::JsonView jsonValue)
void SetVerifyMode(VerifyMode value)
Definition Options.h:89
SmbSecurityDescriptorCopyFlags GetSecurityDescriptorCopyFlags() const
Definition Options.h:414
void SetMtime(Mtime value)
Definition Options.h:171
bool ObjectTagsHasBeenSet() const
Definition Options.h:434
Options & WithAtime(Atime value)
Definition Options.h:148
Options & WithMtime(Mtime value)
Definition Options.h:175
bool BytesPerSecondHasBeenSet() const
Definition Options.h:305
Options & WithVerifyMode(VerifyMode value)
Definition Options.h:93
Options & WithUid(Uid value)
Definition Options.h:196
long long GetBytesPerSecond() const
Definition Options.h:304
Options & WithTaskQueueing(TaskQueueing value)
Definition Options.h:329
OverwriteMode GetOverwriteMode() const
Definition Options.h:113
bool PreserveDeletedFilesHasBeenSet() const
Definition Options.h:239
AWS_DATASYNC_API Options & operator=(Aws::Utils::Json::JsonView jsonValue)
ObjectTags GetObjectTags() const
Definition Options.h:433
bool TaskQueueingHasBeenSet() const
Definition Options.h:324
VerifyMode GetVerifyMode() const
Definition Options.h:87
ObjectMetadata GetObjectMetadata() const
Definition Options.h:453
bool PreserveDevicesHasBeenSet() const
Definition Options.h:263
void SetPreserveDeletedFiles(PreserveDeletedFiles value)
Definition Options.h:240
void SetBytesPerSecond(long long value)
Definition Options.h:306
void SetLogLevel(LogLevel value)
Definition Options.h:348
Options & WithObjectMetadata(ObjectMetadata value)
Definition Options.h:459
Options & WithGid(Gid value)
Definition Options.h:217
PreserveDeletedFiles GetPreserveDeletedFiles() const
Definition Options.h:238
Options & WithLogLevel(LogLevel value)
Definition Options.h:352
Options & WithOverwriteMode(OverwriteMode value)
Definition Options.h:119
void SetOverwriteMode(OverwriteMode value)
Definition Options.h:115
void SetTransferMode(TransferMode value)
Definition Options.h:372
void SetPosixPermissions(PosixPermissions value)
Definition Options.h:288
void SetTaskQueueing(TaskQueueing value)
Definition Options.h:325
bool VerifyModeHasBeenSet() const
Definition Options.h:88
void SetPreserveDevices(PreserveDevices value)
Definition Options.h:264
void SetObjectTags(ObjectTags value)
Definition Options.h:435
TaskQueueing GetTaskQueueing() const
Definition Options.h:323
Options & WithPreserveDeletedFiles(PreserveDeletedFiles value)
Definition Options.h:244
AWS_DATASYNC_API Options()=default
PreserveDevices GetPreserveDevices() const
Definition Options.h:262
LogLevel GetLogLevel() const
Definition Options.h:346
PosixPermissions GetPosixPermissions() const
Definition Options.h:286
Options & WithBytesPerSecond(long long value)
Definition Options.h:310
bool OverwriteModeHasBeenSet() const
Definition Options.h:114
Aws::Utils::Json::JsonValue JsonValue