RecoverShardSnapshotRequest constructor

RecoverShardSnapshotRequest({
  1. String? collectionName,
  2. int? shardId,
  3. ShardSnapshotLocation? snapshotLocation,
  4. ShardSnapshotPriority? snapshotPriority,
  5. String? checksum,
  6. String? apiKey,
})

Implementation

factory RecoverShardSnapshotRequest({
  $core.String? collectionName,
  $core.int? shardId,
  ShardSnapshotLocation? snapshotLocation,
  ShardSnapshotPriority? snapshotPriority,
  $core.String? checksum,
  $core.String? apiKey,
}) {
  final $result = create();
  if (collectionName != null) {
    $result.collectionName = collectionName;
  }
  if (shardId != null) {
    $result.shardId = shardId;
  }
  if (snapshotLocation != null) {
    $result.snapshotLocation = snapshotLocation;
  }
  if (snapshotPriority != null) {
    $result.snapshotPriority = snapshotPriority;
  }
  if (checksum != null) {
    $result.checksum = checksum;
  }
  if (apiKey != null) {
    $result.apiKey = apiKey;
  }
  return $result;
}