AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const VerifyMode& GetVerifyMode() const{ return m_verifyMode; }
93 inline bool VerifyModeHasBeenSet() const { return m_verifyModeHasBeenSet; }
94 inline void SetVerifyMode(const VerifyMode& value) { m_verifyModeHasBeenSet = true; m_verifyMode = value; }
95 inline void SetVerifyMode(VerifyMode&& value) { m_verifyModeHasBeenSet = true; m_verifyMode = std::move(value); }
96 inline Options& WithVerifyMode(const VerifyMode& value) { SetVerifyMode(value); return *this;}
97 inline Options& WithVerifyMode(VerifyMode&& value) { SetVerifyMode(std::move(value)); return *this;}
99
101
114 inline const OverwriteMode& GetOverwriteMode() const{ return m_overwriteMode; }
115 inline bool OverwriteModeHasBeenSet() const { return m_overwriteModeHasBeenSet; }
116 inline void SetOverwriteMode(const OverwriteMode& value) { m_overwriteModeHasBeenSet = true; m_overwriteMode = value; }
117 inline void SetOverwriteMode(OverwriteMode&& value) { m_overwriteModeHasBeenSet = true; m_overwriteMode = std::move(value); }
118 inline Options& WithOverwriteMode(const OverwriteMode& value) { SetOverwriteMode(value); return *this;}
119 inline Options& WithOverwriteMode(OverwriteMode&& value) { SetOverwriteMode(std::move(value)); return *this;}
121
123
137 inline const Atime& GetAtime() const{ return m_atime; }
138 inline bool AtimeHasBeenSet() const { return m_atimeHasBeenSet; }
139 inline void SetAtime(const Atime& value) { m_atimeHasBeenSet = true; m_atime = value; }
140 inline void SetAtime(Atime&& value) { m_atimeHasBeenSet = true; m_atime = std::move(value); }
141 inline Options& WithAtime(const Atime& value) { SetAtime(value); return *this;}
142 inline Options& WithAtime(Atime&& value) { SetAtime(std::move(value)); return *this;}
144
146
158 inline const Mtime& GetMtime() const{ return m_mtime; }
159 inline bool MtimeHasBeenSet() const { return m_mtimeHasBeenSet; }
160 inline void SetMtime(const Mtime& value) { m_mtimeHasBeenSet = true; m_mtime = value; }
161 inline void SetMtime(Mtime&& value) { m_mtimeHasBeenSet = true; m_mtime = std::move(value); }
162 inline Options& WithMtime(const Mtime& value) { SetMtime(value); return *this;}
163 inline Options& WithMtime(Mtime&& value) { SetMtime(std::move(value)); return *this;}
165
167
175 inline const Uid& GetUid() const{ return m_uid; }
176 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
177 inline void SetUid(const Uid& value) { m_uidHasBeenSet = true; m_uid = value; }
178 inline void SetUid(Uid&& value) { m_uidHasBeenSet = true; m_uid = std::move(value); }
179 inline Options& WithUid(const Uid& value) { SetUid(value); return *this;}
180 inline Options& WithUid(Uid&& value) { SetUid(std::move(value)); return *this;}
182
184
192 inline const Gid& GetGid() const{ return m_gid; }
193 inline bool GidHasBeenSet() const { return m_gidHasBeenSet; }
194 inline void SetGid(const Gid& value) { m_gidHasBeenSet = true; m_gid = value; }
195 inline void SetGid(Gid&& value) { m_gidHasBeenSet = true; m_gid = std::move(value); }
196 inline Options& WithGid(const Gid& value) { SetGid(value); return *this;}
197 inline Options& WithGid(Gid&& value) { SetGid(std::move(value)); return *this;}
199
201
215 inline const PreserveDeletedFiles& GetPreserveDeletedFiles() const{ return m_preserveDeletedFiles; }
216 inline bool PreserveDeletedFilesHasBeenSet() const { return m_preserveDeletedFilesHasBeenSet; }
217 inline void SetPreserveDeletedFiles(const PreserveDeletedFiles& value) { m_preserveDeletedFilesHasBeenSet = true; m_preserveDeletedFiles = value; }
218 inline void SetPreserveDeletedFiles(PreserveDeletedFiles&& value) { m_preserveDeletedFilesHasBeenSet = true; m_preserveDeletedFiles = std::move(value); }
220 inline Options& WithPreserveDeletedFiles(PreserveDeletedFiles&& value) { SetPreserveDeletedFiles(std::move(value)); return *this;}
222
224
235 inline const PreserveDevices& GetPreserveDevices() const{ return m_preserveDevices; }
236 inline bool PreserveDevicesHasBeenSet() const { return m_preserveDevicesHasBeenSet; }
237 inline void SetPreserveDevices(const PreserveDevices& value) { m_preserveDevicesHasBeenSet = true; m_preserveDevices = value; }
238 inline void SetPreserveDevices(PreserveDevices&& value) { m_preserveDevicesHasBeenSet = true; m_preserveDevices = std::move(value); }
239 inline Options& WithPreserveDevices(const PreserveDevices& value) { SetPreserveDevices(value); return *this;}
240 inline Options& WithPreserveDevices(PreserveDevices&& value) { SetPreserveDevices(std::move(value)); return *this;}
242
244
255 inline const PosixPermissions& GetPosixPermissions() const{ return m_posixPermissions; }
256 inline bool PosixPermissionsHasBeenSet() const { return m_posixPermissionsHasBeenSet; }
257 inline void SetPosixPermissions(const PosixPermissions& value) { m_posixPermissionsHasBeenSet = true; m_posixPermissions = value; }
258 inline void SetPosixPermissions(PosixPermissions&& value) { m_posixPermissionsHasBeenSet = true; m_posixPermissions = std::move(value); }
259 inline Options& WithPosixPermissions(const PosixPermissions& value) { SetPosixPermissions(value); return *this;}
260 inline Options& WithPosixPermissions(PosixPermissions&& value) { SetPosixPermissions(std::move(value)); return *this;}
262
264
271 inline long long GetBytesPerSecond() const{ return m_bytesPerSecond; }
272 inline bool BytesPerSecondHasBeenSet() const { return m_bytesPerSecondHasBeenSet; }
273 inline void SetBytesPerSecond(long long value) { m_bytesPerSecondHasBeenSet = true; m_bytesPerSecond = value; }
274 inline Options& WithBytesPerSecond(long long value) { SetBytesPerSecond(value); return *this;}
276
278
284 inline const TaskQueueing& GetTaskQueueing() const{ return m_taskQueueing; }
285 inline bool TaskQueueingHasBeenSet() const { return m_taskQueueingHasBeenSet; }
286 inline void SetTaskQueueing(const TaskQueueing& value) { m_taskQueueingHasBeenSet = true; m_taskQueueing = value; }
287 inline void SetTaskQueueing(TaskQueueing&& value) { m_taskQueueingHasBeenSet = true; m_taskQueueing = std::move(value); }
288 inline Options& WithTaskQueueing(const TaskQueueing& value) { SetTaskQueueing(value); return *this;}
289 inline Options& WithTaskQueueing(TaskQueueing&& value) { SetTaskQueueing(std::move(value)); return *this;}
291
293
303 inline const LogLevel& GetLogLevel() const{ return m_logLevel; }
304 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
305 inline void SetLogLevel(const LogLevel& value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
306 inline void SetLogLevel(LogLevel&& value) { m_logLevelHasBeenSet = true; m_logLevel = std::move(value); }
307 inline Options& WithLogLevel(const LogLevel& value) { SetLogLevel(value); return *this;}
308 inline Options& WithLogLevel(LogLevel&& value) { SetLogLevel(std::move(value)); return *this;}
310
312
323 inline const TransferMode& GetTransferMode() const{ return m_transferMode; }
324 inline bool TransferModeHasBeenSet() const { return m_transferModeHasBeenSet; }
325 inline void SetTransferMode(const TransferMode& value) { m_transferModeHasBeenSet = true; m_transferMode = value; }
326 inline void SetTransferMode(TransferMode&& value) { m_transferModeHasBeenSet = true; m_transferMode = std::move(value); }
327 inline Options& WithTransferMode(const TransferMode& value) { SetTransferMode(value); return *this;}
328 inline Options& WithTransferMode(TransferMode&& value) { SetTransferMode(std::move(value)); return *this;}
330
332
363 inline const SmbSecurityDescriptorCopyFlags& GetSecurityDescriptorCopyFlags() const{ return m_securityDescriptorCopyFlags; }
364 inline bool SecurityDescriptorCopyFlagsHasBeenSet() const { return m_securityDescriptorCopyFlagsHasBeenSet; }
365 inline void SetSecurityDescriptorCopyFlags(const SmbSecurityDescriptorCopyFlags& value) { m_securityDescriptorCopyFlagsHasBeenSet = true; m_securityDescriptorCopyFlags = value; }
366 inline void SetSecurityDescriptorCopyFlags(SmbSecurityDescriptorCopyFlags&& value) { m_securityDescriptorCopyFlagsHasBeenSet = true; m_securityDescriptorCopyFlags = std::move(value); }
370
372
378 inline const ObjectTags& GetObjectTags() const{ return m_objectTags; }
379 inline bool ObjectTagsHasBeenSet() const { return m_objectTagsHasBeenSet; }
380 inline void SetObjectTags(const ObjectTags& value) { m_objectTagsHasBeenSet = true; m_objectTags = value; }
381 inline void SetObjectTags(ObjectTags&& value) { m_objectTagsHasBeenSet = true; m_objectTags = std::move(value); }
382 inline Options& WithObjectTags(const ObjectTags& value) { SetObjectTags(value); return *this;}
383 inline Options& WithObjectTags(ObjectTags&& value) { SetObjectTags(std::move(value)); return *this;}
385 private:
386
387 VerifyMode m_verifyMode;
388 bool m_verifyModeHasBeenSet = false;
389
390 OverwriteMode m_overwriteMode;
391 bool m_overwriteModeHasBeenSet = false;
392
393 Atime m_atime;
394 bool m_atimeHasBeenSet = false;
395
396 Mtime m_mtime;
397 bool m_mtimeHasBeenSet = false;
398
399 Uid m_uid;
400 bool m_uidHasBeenSet = false;
401
402 Gid m_gid;
403 bool m_gidHasBeenSet = false;
404
405 PreserveDeletedFiles m_preserveDeletedFiles;
406 bool m_preserveDeletedFilesHasBeenSet = false;
407
408 PreserveDevices m_preserveDevices;
409 bool m_preserveDevicesHasBeenSet = false;
410
411 PosixPermissions m_posixPermissions;
412 bool m_posixPermissionsHasBeenSet = false;
413
414 long long m_bytesPerSecond;
415 bool m_bytesPerSecondHasBeenSet = false;
416
417 TaskQueueing m_taskQueueing;
418 bool m_taskQueueingHasBeenSet = false;
419
420 LogLevel m_logLevel;
421 bool m_logLevelHasBeenSet = false;
422
423 TransferMode m_transferMode;
424 bool m_transferModeHasBeenSet = false;
425
426 SmbSecurityDescriptorCopyFlags m_securityDescriptorCopyFlags;
427 bool m_securityDescriptorCopyFlagsHasBeenSet = false;
428
429 ObjectTags m_objectTags;
430 bool m_objectTagsHasBeenSet = false;
431 };
432
433} // namespace Model
434} // namespace DataSync
435} // namespace Aws
void SetPreserveDevices(PreserveDevices &&value)
Definition Options.h:238
bool TransferModeHasBeenSet() const
Definition Options.h:324
void SetTaskQueueing(const TaskQueueing &value)
Definition Options.h:286
void SetMtime(Mtime &&value)
Definition Options.h:161
const Mtime & GetMtime() const
Definition Options.h:158
Options & WithPreserveDevices(PreserveDevices &&value)
Definition Options.h:240
bool PosixPermissionsHasBeenSet() const
Definition Options.h:256
void SetPreserveDeletedFiles(const PreserveDeletedFiles &value)
Definition Options.h:217
const OverwriteMode & GetOverwriteMode() const
Definition Options.h:114
void SetSecurityDescriptorCopyFlags(SmbSecurityDescriptorCopyFlags &&value)
Definition Options.h:366
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
Options & WithTransferMode(TransferMode &&value)
Definition Options.h:328
bool SecurityDescriptorCopyFlagsHasBeenSet() const
Definition Options.h:364
bool LogLevelHasBeenSet() const
Definition Options.h:304
void SetMtime(const Mtime &value)
Definition Options.h:160
void SetOverwriteMode(OverwriteMode &&value)
Definition Options.h:117
void SetUid(Uid &&value)
Definition Options.h:178
Options & WithUid(const Uid &value)
Definition Options.h:179
AWS_DATASYNC_API Options(Aws::Utils::Json::JsonView jsonValue)
void SetTransferMode(const TransferMode &value)
Definition Options.h:325
Options & WithPreserveDeletedFiles(const PreserveDeletedFiles &value)
Definition Options.h:219
Options & WithTransferMode(const TransferMode &value)
Definition Options.h:327
bool ObjectTagsHasBeenSet() const
Definition Options.h:379
Options & WithUid(Uid &&value)
Definition Options.h:180
Options & WithSecurityDescriptorCopyFlags(SmbSecurityDescriptorCopyFlags &&value)
Definition Options.h:368
bool BytesPerSecondHasBeenSet() const
Definition Options.h:272
Options & WithPosixPermissions(PosixPermissions &&value)
Definition Options.h:260
Options & WithMtime(Mtime &&value)
Definition Options.h:163
void SetObjectTags(ObjectTags &&value)
Definition Options.h:381
const TransferMode & GetTransferMode() const
Definition Options.h:323
Options & WithObjectTags(const ObjectTags &value)
Definition Options.h:382
long long GetBytesPerSecond() const
Definition Options.h:271
Options & WithLogLevel(const LogLevel &value)
Definition Options.h:307
const VerifyMode & GetVerifyMode() const
Definition Options.h:92
void SetAtime(Atime &&value)
Definition Options.h:140
bool PreserveDeletedFilesHasBeenSet() const
Definition Options.h:216
const ObjectTags & GetObjectTags() const
Definition Options.h:378
void SetGid(Gid &&value)
Definition Options.h:195
void SetPosixPermissions(PosixPermissions &&value)
Definition Options.h:258
Options & WithOverwriteMode(OverwriteMode &&value)
Definition Options.h:119
Options & WithObjectTags(ObjectTags &&value)
Definition Options.h:383
void SetTransferMode(TransferMode &&value)
Definition Options.h:326
AWS_DATASYNC_API Options & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLogLevel(LogLevel &&value)
Definition Options.h:306
Options & WithLogLevel(LogLevel &&value)
Definition Options.h:308
void SetObjectTags(const ObjectTags &value)
Definition Options.h:380
bool TaskQueueingHasBeenSet() const
Definition Options.h:285
AWS_DATASYNC_API Options()
Options & WithTaskQueueing(TaskQueueing &&value)
Definition Options.h:289
const Atime & GetAtime() const
Definition Options.h:137
const LogLevel & GetLogLevel() const
Definition Options.h:303
Options & WithPreserveDevices(const PreserveDevices &value)
Definition Options.h:239
bool PreserveDevicesHasBeenSet() const
Definition Options.h:236
Options & WithVerifyMode(const VerifyMode &value)
Definition Options.h:96
Options & WithMtime(const Mtime &value)
Definition Options.h:162
void SetBytesPerSecond(long long value)
Definition Options.h:273
const SmbSecurityDescriptorCopyFlags & GetSecurityDescriptorCopyFlags() const
Definition Options.h:363
void SetPosixPermissions(const PosixPermissions &value)
Definition Options.h:257
void SetVerifyMode(const VerifyMode &value)
Definition Options.h:94
void SetLogLevel(const LogLevel &value)
Definition Options.h:305
void SetTaskQueueing(TaskQueueing &&value)
Definition Options.h:287
Options & WithAtime(Atime &&value)
Definition Options.h:142
Options & WithSecurityDescriptorCopyFlags(const SmbSecurityDescriptorCopyFlags &value)
Definition Options.h:367
const Gid & GetGid() const
Definition Options.h:192
void SetPreserveDevices(const PreserveDevices &value)
Definition Options.h:237
Options & WithAtime(const Atime &value)
Definition Options.h:141
void SetOverwriteMode(const OverwriteMode &value)
Definition Options.h:116
Options & WithOverwriteMode(const OverwriteMode &value)
Definition Options.h:118
Options & WithVerifyMode(VerifyMode &&value)
Definition Options.h:97
Options & WithPreserveDeletedFiles(PreserveDeletedFiles &&value)
Definition Options.h:220
Options & WithGid(const Gid &value)
Definition Options.h:196
const PreserveDevices & GetPreserveDevices() const
Definition Options.h:235
Options & WithTaskQueueing(const TaskQueueing &value)
Definition Options.h:288
Options & WithGid(Gid &&value)
Definition Options.h:197
void SetVerifyMode(VerifyMode &&value)
Definition Options.h:95
const PosixPermissions & GetPosixPermissions() const
Definition Options.h:255
bool VerifyModeHasBeenSet() const
Definition Options.h:93
const Uid & GetUid() const
Definition Options.h:175
const PreserveDeletedFiles & GetPreserveDeletedFiles() const
Definition Options.h:215
void SetSecurityDescriptorCopyFlags(const SmbSecurityDescriptorCopyFlags &value)
Definition Options.h:365
void SetAtime(const Atime &value)
Definition Options.h:139
void SetUid(const Uid &value)
Definition Options.h:177
Options & WithPosixPermissions(const PosixPermissions &value)
Definition Options.h:259
const TaskQueueing & GetTaskQueueing() const
Definition Options.h:284
void SetGid(const Gid &value)
Definition Options.h:194
Options & WithBytesPerSecond(long long value)
Definition Options.h:274
bool OverwriteModeHasBeenSet() const
Definition Options.h:115
void SetPreserveDeletedFiles(PreserveDeletedFiles &&value)
Definition Options.h:218
Aws::Utils::Json::JsonValue JsonValue