Job constructor

Job({
  1. String? id,
  2. String? projectId,
  3. String? name,
  4. JobType? type,
  5. Environment? environment,
  6. JobState? currentState,
  7. Timestamp? currentStateTime,
  8. JobState? requestedState,
  9. JobExecutionInfo? executionInfo,
  10. Timestamp? createTime,
  11. String? replaceJobId,
  12. String? clientRequestId,
  13. String? replacedByJobId,
  14. Iterable<String>? tempFiles,
  15. Map<String, String>? labels,
  16. String? location,
  17. Iterable<ExecutionStageState>? stageStates,
  18. JobMetadata? jobMetadata,
  19. Timestamp? startTime,
  20. String? createdFromSnapshotId,
  21. String? stepsLocation,
  22. bool? satisfiesPzs,
})

Implementation

factory Job({
  $core.String? id,
  $core.String? projectId,
  $core.String? name,
  JobType? type,
  Environment? environment,
  JobState? currentState,
  $2.Timestamp? currentStateTime,
  JobState? requestedState,
  JobExecutionInfo? executionInfo,
  $2.Timestamp? createTime,
  $core.String? replaceJobId,
  $core.String? clientRequestId,
  $core.String? replacedByJobId,
  $core.Iterable<$core.String>? tempFiles,
  $core.Map<$core.String, $core.String>? labels,
  $core.String? location,
  $core.Iterable<ExecutionStageState>? stageStates,
  JobMetadata? jobMetadata,
  $2.Timestamp? startTime,
  $core.String? createdFromSnapshotId,
  $core.String? stepsLocation,
  $core.bool? satisfiesPzs,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (projectId != null) {
    $result.projectId = projectId;
  }
  if (name != null) {
    $result.name = name;
  }
  if (type != null) {
    $result.type = type;
  }
  if (environment != null) {
    $result.environment = environment;
  }
  if (currentState != null) {
    $result.currentState = currentState;
  }
  if (currentStateTime != null) {
    $result.currentStateTime = currentStateTime;
  }
  if (requestedState != null) {
    $result.requestedState = requestedState;
  }
  if (executionInfo != null) {
    $result.executionInfo = executionInfo;
  }
  if (createTime != null) {
    $result.createTime = createTime;
  }
  if (replaceJobId != null) {
    $result.replaceJobId = replaceJobId;
  }
  if (clientRequestId != null) {
    $result.clientRequestId = clientRequestId;
  }
  if (replacedByJobId != null) {
    $result.replacedByJobId = replacedByJobId;
  }
  if (tempFiles != null) {
    $result.tempFiles.addAll(tempFiles);
  }
  if (labels != null) {
    $result.labels.addAll(labels);
  }
  if (location != null) {
    $result.location = location;
  }
  if (stageStates != null) {
    $result.stageStates.addAll(stageStates);
  }
  if (jobMetadata != null) {
    $result.jobMetadata = jobMetadata;
  }
  if (startTime != null) {
    $result.startTime = startTime;
  }
  if (createdFromSnapshotId != null) {
    $result.createdFromSnapshotId = createdFromSnapshotId;
  }
  if (stepsLocation != null) {
    $result.stepsLocation = stepsLocation;
  }
  if (satisfiesPzs != null) {
    $result.satisfiesPzs = satisfiesPzs;
  }
  return $result;
}