MaintenancePolicy constructor

MaintenancePolicy({
  1. Timestamp? createTime,
  2. Timestamp? updateTime,
  3. String? description,
  4. Iterable<WeeklyMaintenanceWindow>? weeklyMaintenanceWindow,
})

Implementation

factory MaintenancePolicy({
  $2.Timestamp? createTime,
  $2.Timestamp? updateTime,
  $core.String? description,
  $core.Iterable<WeeklyMaintenanceWindow>? weeklyMaintenanceWindow,
}) {
  final $result = create();
  if (createTime != null) {
    $result.createTime = createTime;
  }
  if (updateTime != null) {
    $result.updateTime = updateTime;
  }
  if (description != null) {
    $result.description = description;
  }
  if (weeklyMaintenanceWindow != null) {
    $result.weeklyMaintenanceWindow.addAll(weeklyMaintenanceWindow);
  }
  return $result;
}