AWS SDK for C++

AWS SDK for C++ Version 1.11.870

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
141 inline Atime GetAtime() const { return m_atime; }
142 inline bool AtimeHasBeenSet() const { return m_atimeHasBeenSet; }
143 inline void SetAtime(Atime value) {
144 m_atimeHasBeenSet = true;
145 m_atime = value;
146 }
147 inline Options& WithAtime(Atime value) {
148 SetAtime(value);
149 return *this;
150 }
152
154
168 inline Mtime GetMtime() const { return m_mtime; }
169 inline bool MtimeHasBeenSet() const { return m_mtimeHasBeenSet; }
170 inline void SetMtime(Mtime value) {
171 m_mtimeHasBeenSet = true;
172 m_mtime = value;
173 }
174 inline Options& WithMtime(Mtime value) {
175 SetMtime(value);
176 return *this;
177 }
179
181
189 inline Uid GetUid() const { return m_uid; }
190 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
191 inline void SetUid(Uid value) {
192 m_uidHasBeenSet = true;
193 m_uid = value;
194 }
195 inline Options& WithUid(Uid value) {
196 SetUid(value);
197 return *this;
198 }
200
202
210 inline Gid GetGid() const { return m_gid; }
211 inline bool GidHasBeenSet() const { return m_gidHasBeenSet; }
212 inline void SetGid(Gid value) {
213 m_gidHasBeenSet = true;
214 m_gid = value;
215 }
216 inline Options& WithGid(Gid value) {
217 SetGid(value);
218 return *this;
219 }
221
223
237 inline PreserveDeletedFiles GetPreserveDeletedFiles() const { return m_preserveDeletedFiles; }
238 inline bool PreserveDeletedFilesHasBeenSet() const { return m_preserveDeletedFilesHasBeenSet; }
240 m_preserveDeletedFilesHasBeenSet = true;
241 m_preserveDeletedFiles = value;
242 }
245 return *this;
246 }
248
250
261 inline PreserveDevices GetPreserveDevices() const { return m_preserveDevices; }
262 inline bool PreserveDevicesHasBeenSet() const { return m_preserveDevicesHasBeenSet; }
264 m_preserveDevicesHasBeenSet = true;
265 m_preserveDevices = value;
266 }
268 SetPreserveDevices(value);
269 return *this;
270 }
272
274
285 inline PosixPermissions GetPosixPermissions() const { return m_posixPermissions; }
286 inline bool PosixPermissionsHasBeenSet() const { return m_posixPermissionsHasBeenSet; }
288 m_posixPermissionsHasBeenSet = true;
289 m_posixPermissions = value;
290 }
292 SetPosixPermissions(value);
293 return *this;
294 }
296
298
303 inline long long GetBytesPerSecond() const { return m_bytesPerSecond; }
304 inline bool BytesPerSecondHasBeenSet() const { return m_bytesPerSecondHasBeenSet; }
305 inline void SetBytesPerSecond(long long value) {
306 m_bytesPerSecondHasBeenSet = true;
307 m_bytesPerSecond = value;
308 }
309 inline Options& WithBytesPerSecond(long long value) {
310 SetBytesPerSecond(value);
311 return *this;
312 }
314
316
322 inline TaskQueueing GetTaskQueueing() const { return m_taskQueueing; }
323 inline bool TaskQueueingHasBeenSet() const { return m_taskQueueingHasBeenSet; }
324 inline void SetTaskQueueing(TaskQueueing value) {
325 m_taskQueueingHasBeenSet = true;
326 m_taskQueueing = value;
327 }
329 SetTaskQueueing(value);
330 return *this;
331 }
333
335
345 inline LogLevel GetLogLevel() const { return m_logLevel; }
346 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
347 inline void SetLogLevel(LogLevel value) {
348 m_logLevelHasBeenSet = true;
349 m_logLevel = value;
350 }
352 SetLogLevel(value);
353 return *this;
354 }
356
358
369 inline TransferMode GetTransferMode() const { return m_transferMode; }
370 inline bool TransferModeHasBeenSet() const { return m_transferModeHasBeenSet; }
371 inline void SetTransferMode(TransferMode value) {
372 m_transferModeHasBeenSet = true;
373 m_transferMode = value;
374 }
376 SetTransferMode(value);
377 return *this;
378 }
380
382
413 inline SmbSecurityDescriptorCopyFlags GetSecurityDescriptorCopyFlags() const { return m_securityDescriptorCopyFlags; }
414 inline bool SecurityDescriptorCopyFlagsHasBeenSet() const { return m_securityDescriptorCopyFlagsHasBeenSet; }
416 m_securityDescriptorCopyFlagsHasBeenSet = true;
417 m_securityDescriptorCopyFlags = value;
418 }
421 return *this;
422 }
424
426
432 inline ObjectTags GetObjectTags() const { return m_objectTags; }
433 inline bool ObjectTagsHasBeenSet() const { return m_objectTagsHasBeenSet; }
434 inline void SetObjectTags(ObjectTags value) {
435 m_objectTagsHasBeenSet = true;
436 m_objectTags = value;
437 }
439 SetObjectTags(value);
440 return *this;
441 }
443 private:
444 VerifyMode m_verifyMode{VerifyMode::NOT_SET};
445
446 OverwriteMode m_overwriteMode{OverwriteMode::NOT_SET};
447
448 Atime m_atime{Atime::NOT_SET};
449
450 Mtime m_mtime{Mtime::NOT_SET};
451
452 Uid m_uid{Uid::NOT_SET};
453
454 Gid m_gid{Gid::NOT_SET};
455
457
458 PreserveDevices m_preserveDevices{PreserveDevices::NOT_SET};
459
461
462 long long m_bytesPerSecond{0};
463
464 TaskQueueing m_taskQueueing{TaskQueueing::NOT_SET};
465
466 LogLevel m_logLevel{LogLevel::NOT_SET};
467
468 TransferMode m_transferMode{TransferMode::NOT_SET};
469
471
472 ObjectTags m_objectTags{ObjectTags::NOT_SET};
473 bool m_verifyModeHasBeenSet = false;
474 bool m_overwriteModeHasBeenSet = false;
475 bool m_atimeHasBeenSet = false;
476 bool m_mtimeHasBeenSet = false;
477 bool m_uidHasBeenSet = false;
478 bool m_gidHasBeenSet = false;
479 bool m_preserveDeletedFilesHasBeenSet = false;
480 bool m_preserveDevicesHasBeenSet = false;
481 bool m_posixPermissionsHasBeenSet = false;
482 bool m_bytesPerSecondHasBeenSet = false;
483 bool m_taskQueueingHasBeenSet = false;
484 bool m_logLevelHasBeenSet = false;
485 bool m_transferModeHasBeenSet = false;
486 bool m_securityDescriptorCopyFlagsHasBeenSet = false;
487 bool m_objectTagsHasBeenSet = false;
488};
489
490} // namespace Model
491} // namespace DataSync
492} // namespace Aws
bool TransferModeHasBeenSet() const
Definition Options.h:370
Options & WithSecurityDescriptorCopyFlags(SmbSecurityDescriptorCopyFlags value)
Definition Options.h:419
bool PosixPermissionsHasBeenSet() const
Definition Options.h:286
Options & WithPreserveDevices(PreserveDevices value)
Definition Options.h:267
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
Options & WithPosixPermissions(PosixPermissions value)
Definition Options.h:291
TransferMode GetTransferMode() const
Definition Options.h:369
void SetSecurityDescriptorCopyFlags(SmbSecurityDescriptorCopyFlags value)
Definition Options.h:415
bool SecurityDescriptorCopyFlagsHasBeenSet() const
Definition Options.h:414
Options & WithTransferMode(TransferMode value)
Definition Options.h:375
void SetAtime(Atime value)
Definition Options.h:143
bool LogLevelHasBeenSet() const
Definition Options.h:346
Options & WithObjectTags(ObjectTags value)
Definition Options.h:438
AWS_DATASYNC_API Options(Aws::Utils::Json::JsonView jsonValue)
void SetVerifyMode(VerifyMode value)
Definition Options.h:88
SmbSecurityDescriptorCopyFlags GetSecurityDescriptorCopyFlags() const
Definition Options.h:413
void SetMtime(Mtime value)
Definition Options.h:170
bool ObjectTagsHasBeenSet() const
Definition Options.h:433
Options & WithAtime(Atime value)
Definition Options.h:147
Options & WithMtime(Mtime value)
Definition Options.h:174
bool BytesPerSecondHasBeenSet() const
Definition Options.h:304
Options & WithVerifyMode(VerifyMode value)
Definition Options.h:92
Options & WithUid(Uid value)
Definition Options.h:195
long long GetBytesPerSecond() const
Definition Options.h:303
Options & WithTaskQueueing(TaskQueueing value)
Definition Options.h:328
OverwriteMode GetOverwriteMode() const
Definition Options.h:112
bool PreserveDeletedFilesHasBeenSet() const
Definition Options.h:238
AWS_DATASYNC_API Options & operator=(Aws::Utils::Json::JsonView jsonValue)
ObjectTags GetObjectTags() const
Definition Options.h:432
bool TaskQueueingHasBeenSet() const
Definition Options.h:323
VerifyMode GetVerifyMode() const
Definition Options.h:86
bool PreserveDevicesHasBeenSet() const
Definition Options.h:262
void SetPreserveDeletedFiles(PreserveDeletedFiles value)
Definition Options.h:239
void SetBytesPerSecond(long long value)
Definition Options.h:305
void SetLogLevel(LogLevel value)
Definition Options.h:347
Options & WithGid(Gid value)
Definition Options.h:216
PreserveDeletedFiles GetPreserveDeletedFiles() const
Definition Options.h:237
Options & WithLogLevel(LogLevel value)
Definition Options.h:351
Options & WithOverwriteMode(OverwriteMode value)
Definition Options.h:118
void SetOverwriteMode(OverwriteMode value)
Definition Options.h:114
void SetTransferMode(TransferMode value)
Definition Options.h:371
void SetPosixPermissions(PosixPermissions value)
Definition Options.h:287
void SetTaskQueueing(TaskQueueing value)
Definition Options.h:324
bool VerifyModeHasBeenSet() const
Definition Options.h:87
void SetPreserveDevices(PreserveDevices value)
Definition Options.h:263
void SetObjectTags(ObjectTags value)
Definition Options.h:434
TaskQueueing GetTaskQueueing() const
Definition Options.h:322
Options & WithPreserveDeletedFiles(PreserveDeletedFiles value)
Definition Options.h:243
AWS_DATASYNC_API Options()=default
PreserveDevices GetPreserveDevices() const
Definition Options.h:261
LogLevel GetLogLevel() const
Definition Options.h:345
PosixPermissions GetPosixPermissions() const
Definition Options.h:285
Options & WithBytesPerSecond(long long value)
Definition Options.h:309
bool OverwriteModeHasBeenSet() const
Definition Options.h:113
Aws::Utils::Json::JsonValue JsonValue